一、安装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
命令完成,以确保所有依赖项正确处理。