FetchDebian可通過配置文件和命令行參數定制下載設置,具體如下:
/etc/fetchdebian.conf(或 ~/.fetchdebianrc),設置鏡像源、版本、組件等選項,例如:mirror = https://mirrors.ustc.edu.cn/debian/ # 鏡像源(如中科大源)
distribution = bullseye # Debian版本
components = main contrib non-free # 組件
architecture = amd64 # 架構
output = /var/cache/fetchdebian # 輸出目錄
threads = 4 # 下載線程數
fetchdebian --mirror https://mirrors.ustc.edu.cn/debian/ --distribution bullseye --components main --output /path/to/save
/etc/environment 或 /etc/apt/apt.conf 中配置HTTP/HTTPS代理。保存配置后,運行 sudo fetchdebian 即可按定制設置下載。