Skip to content

Commit

Permalink
installation.md: simplify build-from-source for rpm distros
Browse files Browse the repository at this point in the history
RPM distros can simply run `dnf builddep` on `rpm/podman.spec`. That
specfile already handles dependencies for all supported versions of
Fedora and CentOS Stream so it's a lot simpler and easier to maintain
than duplicating dependency specification in the documentation.

Resolves: containers#157

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Jul 12, 2023
1 parent 12454cb commit f2fffb1
Showing 1 changed file with 6 additions and 23 deletions.
29 changes: 6 additions & 23 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,32 +283,15 @@ sudo dnf install podman

**Required**

Fedora, CentOS, RHEL, and related distributions you should try to run
`make package-install` which will install dependencies, build the source,
On Fedora, CentOS Stream, RHEL, and related distributions you should run
the following steps which will install dependencies, build the source,
produce rpms for the current platform and install them in the end.

```bash
sudo yum install -y \
btrfs-progs-devel \
conmon \
containernetworking-plugins \
containers-common \
crun \
device-mapper-devel \
git \
glib2-devel \
glibc-devel \
glibc-static \
go \
golang-github-cpuguy83-md2man \
gpgme-devel \
iptables \
libassuan-devel \
libgpg-error-devel \
libseccomp-devel \
libselinux-devel \
make \
pkgconfig
sudo dnf -y builddep rpm/podman.spec
sudo dnf -y install git-archive-all
make rpm
sudo make rpm-install
```

Debian, Ubuntu, and related distributions:
Expand Down

0 comments on commit f2fffb1

Please sign in to comment.