Mint:Build Podman From Source:修订间差异

来自WHY42
Riguz留言 | 贡献
Created page with " = Build and Run Dependencies = <syntaxhighlight lang="bash"> 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 </syntaxhighlight> Category:Li..."
 
Riguz留言 | 贡献
 
第24行: 第24行:
   pkg-config \
   pkg-config \
   uidmap
   uidmap
</syntaxhighlight>
Note: go need to be manually installed:
<syntaxhighlight lang="bash">
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
</syntaxhighlight>
=Build=
<syntaxhighlight lang="bash">
git clone https://github.com/containers/podman/
cd podman
make BUILDTAGS="selinux seccomp" PREFIX=/usr
sudo -i
make install PREFIX=/usr
</syntaxhighlight>
</syntaxhighlight>


[[Category:Linux/Unix]]
[[Category:Linux/Unix]]

2023年10月10日 (二) 13:20的最新版本

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