如何在 Alpine Linux 上安装 bup

要在 Alpine Linux 上安装 bup 备份软件,你目前必须自己编译它。

首先,安装先决条件:

apk add bash make g++ python3-dev git automake autoconf par2cmdline py3-pip && pip install -U wheel && pip install -U pyxattr

how-to-install-bup-on-alpine-linux.sh
apk add bash make g++ python3-dev git automake autoconf par2cmdline py3-pip && pip install -U wheel && pip install -U pyxattr

现在我们可以克隆 bup

git clone -b 0.33 –depth 1 https://github.com/bup/bup

git_clone_bup.sh
git clone -b 0.33 --depth 1 https://github.com/bup/bup

并构建:

build_install_bup.sh
cd bup && ./configure && make -j4 install PREFIX=/usr

之后,bup 应该安装在 /usr/bin/bup。我们在第一步创建的 bup 克隆目录不再需要。


Check out similar posts by category: Alpine Linux, Bup