From 20cb85bca5549a08619299664451b7344851f0e5 Mon Sep 17 00:00:00 2001 From: Lokesh Mandvekar Date: Wed, 12 Jul 2023 15:00:28 -0400 Subject: [PATCH] installation.md: simplify build-from-source for rpm distros 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 than explicitly specifying all dependencies. Resolves: #157 Signed-off-by: Lokesh Mandvekar --- docs/installation.md | 28 +++++----------------------- 1 file changed, 5 insertions(+), 23 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 22c1e3ab6..61fe35dff 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -283,32 +283,14 @@ 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 try to run +`make rpm-install` 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 builddep -y rpm/podman.spec +make rpm +sudo make rpm-install ``` Debian, Ubuntu, and related distributions: