本文以基于Debian系统.更适合于Ubuntu.
你是否有遇到过要重装ubuntu,但是你的软件都要重新去找去安装.你不觉的是一件很烦恼的事情呢.那现在这里有一个更好的解决方法.从一个新的系统上快速来安装你以前安装过的软件包.然后你可以快速的恢复系统.
#dpkg –get-selections | grep -v deinstall > ubuntu-files
你现在有一个清单.你可以保存在其他分区上.或是你的文件比较小.那么你可以发送到你的邮件上.
这个命令直接将该列表文件发到邮箱中
#dpkg –get-selections | grep -v deinstall > ubuntu-files; cat ubuntu-files | mailx -s “ubuntu-files” admin@ptubuntu.com
// admin@ptubuntu.com 换回你自己的邮件地址
快速安装:
#sudo apt-get update
#sudo apt-get dist-upgrade
#dpkg –set-selections < ubuntu-files
#sudo dselect
原文如下:
Now you’ve told your system what it needs to install, so let’s install it all.
//#sudo dselect
This will open up a dselect session. Type ‘I‘ and allow dselect to install of the the packages listed in your ubuntu-files document. When it’s finished, type ‘Q‘ and hit the ENTER key to exit dselect.
你是否有遇到过要重装ubuntu,但是你的软件都要重新去找去安装.你不觉的是一件很烦恼的事情呢.那现在这里有一个更好的解决方法.从一个新的系统上快速来安装你以前安装过的软件包.然后你可以快速的恢复系统.
#dpkg –get-selections | grep -v deinstall > ubuntu-files
你现在有一个清单.你可以保存在其他分区上.或是你的文件比较小.那么你可以发送到你的邮件上.
这个命令直接将该列表文件发到邮箱中
#dpkg –get-selections | grep -v deinstall > ubuntu-files; cat ubuntu-files | mailx -s “ubuntu-files” admin@ptubuntu.com
// admin@ptubuntu.com 换回你自己的邮件地址
快速安装:
#sudo apt-get update
#sudo apt-get dist-upgrade
#dpkg –set-selections < ubuntu-files
#sudo dselect
原文如下:
Now you’ve told your system what it needs to install, so let’s install it all.
//#sudo dselect
This will open up a dselect session. Type ‘I‘ and allow dselect to install of the the packages listed in your ubuntu-files document. When it’s finished, type ‘Q‘ and hit the ENTER key to exit dselect.