生成一个ubuntu安装的软件包清单,并快速重装

本文以基于Debian系统.更适合于Ubuntu.

你是否有遇到过要重装ubuntu,但是你的软件都要重新去找去安装.你不觉的是一件很烦恼的事情呢.那现在这里有一个更好的解决方法.从一个新的系统上快速来安装你以前安装过的软件包.然后你可以快速的恢复系统.

#dpkg –get-selections | grep -v deinstall > -files

你现在有一个清单.你可以保存在其他分区上.或是你的文件比较小.那么你可以发送到你的邮件上.以Gmail为例.

#sudo apt-get update
#sudo apt-get dist-upgrade
#dpkg –set-selections < ubuntu-files

特摘原文如下:

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.

Now you’re a lot closer to where you were before.

这个命令直接将该列表文件发到邮箱中

#dpkg –get-selections | grep -v deinstall > ubuntu-files; cat ubuntu-files | mailx -s “ubuntu-files” admin@ptubuntu.com

//  admin@ptubuntu.com  换回你自己的邮件地址

原创文章,转载请注明: 转载自PT Ubuntu Blog

本文链接地址: http://www.ptubuntu.com/2009/01/1379.html

Share

发表评论

电子邮件地址不会被公开。 必填项已用 * 标注

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Verify Code   If you cannot see the CheckCode image,please refresh the page again!