Recovery
A quick way of backing up a list of programs is to run this:
dpkg --get-selection s > ~/Package.list
sudo cp /etc/apt/source s.list ~/sources.list
sudo apt-key exportall > ~/Repo.keys
A quick way of backing up a list of programs is to run this:
dpkg --get-selection
sudo cp /etc/apt/source
sudo apt-key exportall > ~/Repo.keys
***********
It will back them up in a format that dpkg can read for after your reinstall, like this:
sudo apt-key add ~/Repo.keys
sudo cp ~/sources.list /etc/apt/source s.list
sudo apt-get update
sudo apt-get install dselect
sudo dpkg --set-selection s < ~/Package.list
sudo apt-get dselect-upgrade -y
sudo apt-key add ~/Repo.keys
sudo cp ~/sources.list /etc/apt/source
sudo apt-get update
sudo apt-get install dselect
sudo dpkg --set-selection
sudo apt-get dselect-upgrade -y
本文介绍了一种简便的方法来备份当前系统中的已安装软件包列表,并提供了详细的步骤来实现这一过程。通过几个简单的命令即可完成备份,再利用这些备份文件进行系统重新安装后的软件恢复。
196

被折叠的 条评论
为什么被折叠?



