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。