溫馨提示×

FetchDebian如何定制下載設置

小樊
52
2025-08-12 09:20:51
欄目: 智能運維

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 即可按定制設置下載。

0
亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女