Mint:Build Podman From Source

来自WHY42
Riguz留言 | 贡献2023年10月10日 (二) 13:20的版本 →‎Build and Run Dependencies
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Build and Run Dependencies

sudo apt-get install \
  btrfs-progs \
  crun \
  git \
  golang-go \
  go-md2man \
  iptables \
  libassuan-dev \
  libbtrfs-dev \
  libc6-dev \
  libdevmapper-dev \
  libglib2.0-dev \
  libgpgme-dev \
  libgpg-error-dev \
  libprotobuf-dev \
  libprotobuf-c-dev \
  libseccomp-dev \
  libselinux1-dev \
  libsystemd-dev \
  containernetworking-plugins \
  pkg-config \
  uidmap

Note: go need to be manually installed:

wget https://go.dev/dl/go1.21.2.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.21.2.linux-amd64.tar.gz

sudo apt remove golang-go
~/.profile
export PATH=$PATH:/usr/local/go/bin

Build

git clone https://github.com/containers/podman/
cd podman
make BUILDTAGS="selinux seccomp" PREFIX=/usr
sudo -i
make install PREFIX=/usr