阅读量:2
FetchDebian 是用于下载 Debian 软件包或镜像的工具,以下是使用教程:
一、安装 FetchDebian
- 使用 APT 安装(推荐)
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 installfetchdebian --version验证。
二、常用功能及命令
1. 下载软件包
- 下载二进制文件
例:fetchdebian -b <包名>fetchdebian -b vim。 - 下载源代码
例:fetchdebian -s <包名>fetchdebian -s nginx。 - 指定下载目录
例:fetchdebian -d /path/to/dir <包名>fetchdebian -b apache2 -d /tmp。
2. 镜像相关操作(部分版本支持)
- 列出可用镜像
fetchdebian list-mirrors - 设置默认镜像
编辑~/.fetchdebianrc文件,添加:mirror = https://deb.debian.org/debian ```。
3. 代理设置(网络受限时)
- 临时代理
export http_proxy="http://proxy_ip:port" export https_proxy="http://proxy_ip:port" - 永久代理
编辑/etc/environment,添加代理配置后执行source /etc/environment。
三、注意事项
- 确保网络连接正常,部分镜像源需科学上网。
- 手动安装时需安装依赖(
build-essential等)。 - 若命令无效,可能是工具未正确安装或非官方版本,建议优先使用 APT 安装。
更多选项可通过 fetchdebian --help 查看。
以上就是关于“FetchDebian使用教程是什么”的相关介绍,筋斗云是国内较早的云主机应用的服务商,拥有10余年行业经验,提供丰富的云服务器、租用服务器等相关产品服务。云服务器资源弹性伸缩,主机vCPU、内存性能强悍、超高I/O速度、故障秒级恢复;电子化备案,提交快速,专业团队7×24小时服务支持!
简单好用、高性价比云服务器租用链接:https://www.jindouyun.cn/product/cvm