FetchDebian 是一个用于从 Debian 存储库下载软件包的工具
安装 FetchDebian:
在终端中运行以下命令以安装 FetchDebian:
sudo apt-get update
sudo apt-get install fetchdebian
配置 FetchDebian:
创建一个名为 ~/.fetchdebian.conf 的配置文件,以便根据您的需求定制 FetchDebian 的行为。例如,您可以设置下载目录、选择特定的 Debian 版本等。
mkdir -p ~/.fetchdebian
touch ~/.fetchdebian.conf
使用文本编辑器打开 ~/.fetchdebian.conf 文件,然后根据需要进行配置。以下是一些示例配置选项:
# 设置下载目录
download_dir = "/path/to/download/directory"
# 选择特定的 Debian 版本(例如,buster, bullseye, bookworm)
suite = "buster"
# 是否下载源代码包
source = true
# 是否下载 dsc(源代码包控制文件)
dsc = true
# 是否下载 Debian 安装镜像
mirror = true
# 是否下载 Debian 安全更新
security_updates = true
使用 FetchDebian 下载软件包:
使用 FetchDebian 下载单个软件包:
fetchdebian package_name
使用 FetchDebian 下载整个软件源:
fetchdebian --suite buster --source --dsc --mirror --security-updates
安全注意事项:
遵循以上步骤,您可以在 Debian 中安全地使用 FetchDebian。