From 146fac593b87654e2a23f570673de2cf6d410f41 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` to fetch build dependencies. 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. Most of the runtime dependencies are handled in the containers-common-extra package, which simplifies things further for the user. Resolves: #157 Signed-off-by: Lokesh Mandvekar --- docs/installation.md | 43 ++++++++++++++++++------------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 22c1e3ab6..4d9a788ed 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -277,38 +277,31 @@ sudo dnf copr enable rhcontainerbot/podman-next -y sudo dnf install podman ``` -## Building from scratch +## Building from Source ### Build and Run Dependencies **Required** -Fedora, CentOS, RHEL, and related distributions you should try to run -`make package-install` which will install dependencies, build the source, -produce rpms for the current platform and install them in the end. +On Fedora: ```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 +# Install build dependencies +sudo dnf -y builddep rpm/podman.spec + +# Install runtime dependencies +sudo dnf -y install catatonit conmon containers-common-extra +``` + +On CentOS Stream, RHEL and related distributions, first enable the appstream +and/or crb repositories and then run: + +```bash +# Install build dependencies +sudo dnf -y builddep rpm/podman.spec + +# Install runtime dependencies +sudo dnf -y install catatonit conmon containers-common ``` Debian, Ubuntu, and related distributions: