FetchDebian 是用于下载 Debian 软件包或镜像的工具,以下是使用教程:
sudo apt update
sudo apt install fetchdebian
git clone https://github.com/fetchdebian/fetchdebian.git
cd fetchdebian
sudo apt install build-essential git python3-pip
./autogen.sh ./configure make sudo make install
安装后通过 fetchdebian --version
验证。fetchdebian -b <包名>
例:fetchdebian -b vim
。fetchdebian -s <包名>
例:fetchdebian -s nginx
。fetchdebian -d /path/to/dir <包名>
例:fetchdebian -b apache2 -d /tmp
。fetchdebian list-mirrors
~/.fetchdebianrc
文件,添加:mirror = https://deb.debian.org/debian
```。
export http_proxy="http://proxy_ip:port"
export https_proxy="http://proxy_ip:port"
/etc/environment
,添加代理配置后执行 source /etc/environment
。build-essential
等)。更多选项可通过 fetchdebian --help
查看。