一、安裝FetchDebian
在使用FetchDebian前,需先通過系統包管理器安裝該工具。打開終端,依次執行以下命令更新本地軟件包列表并安裝FetchDebian:
sudo apt update
sudo apt install fetchdebian
此步驟確保系統具備FetchDebian工具,為后續更新操作奠定基礎。
二、配置FetchDebian(可選但推薦)
若需自定義更新行為(如更新頻率、通知方式、同步鏡像等),可編輯其配置文件。默認配置文件路徑為/etc/fetchdebian.conf
,使用文本編輯器(如nano)打開:
sudo nano /etc/fetchdebian.conf
常見配置項說明:
daily
表示每天更新);mail
發送郵件提醒、desktop
觸發桌面通知);https://deb.debian.org/debian/
);bookworm
代表當前穩定版);main contrib non-free
覆蓋不同授權類型)。三、使用FetchDebian更新軟件
sudo fetchdebian update
sudo fetchdebian upgrade
fetchdebian check
fetchdebian changelog
此命令會顯示近期更新的日志信息,幫助評估更新的影響。四、注意事項
/etc
目錄下的自定義配置),防止更新過程中出現意外導致數據丟失。sudo apt full-upgrade
命令完成,以確保所有依賴項正確處理。