备份当前系统安装的所有包的列表
#dpkg –get-selections | grep -v deinstall > ~/somefile从上面备份的安装包的列表文件恢复所有包
#dpkg –set-selections < ~/somefile sudo dselect清理旧版本的软件缓存
#sudo apt-get autoclean清理所有软件缓存
#sudo apt-get clean删除系统不再使用的孤立软件
#sudo apt-get autoremove查看包在服务器上面的地址
#apt-get -qq –print-uris install ssh | cut -d"’ -f2