<div dir="ltr">It's very easy, just do this next steps:<div><br></div><div># <span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(17, 0, 0); line-height: 20px; white-space: pre; ">sudo dpkg --get-selections > installed-applications.txt</span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(17, 0, 0); line-height: 20px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(17, 0, 0); line-height: 20px; white-space: pre; ">On new system do this: </span></div>
<div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(17, 0, 0); line-height: 20px; white-space: pre; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: 12px; color: rgb(17, 0, 0); line-height: 20px; white-space: pre; "># sudo dpkg --set-selections < installed-applications.txt</span></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: Arial, Verdana, Helvetica, sans-serif; font-size: 14px; color: rgb(17, 0, 0); line-height: 20px; "><pre class="" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; width: auto; clear: none; overflow-x: visible; overflow-y: visible; font-size: 12px; line-height: 1,333; white-space: pre; font-family: monospace; ">
# sudo apt-get -y update
# sudo apt-get dselect-upgrade</pre></span><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>Thats all, good luck!<br><div><br><div class="gmail_quote">2010/4/14 Tom H <span dir="ltr"><<a href="mailto:tomh0665@gmail.com">tomh0665@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Wed, Apr 14, 2010 at 2:46 PM, Rashkae <<a href="mailto:ubuntu@tigershaunt.com">ubuntu@tigershaunt.com</a>> wrote:<br>

> Maxime Alarie wrote:<br>
><br>
>> Im just  curious if there is a way to reinstall a system from  the<br>
>> output of dpkg -list<br>
>><br>
>> Let's say I have a crash, I reinstall the base system and then want to<br>
>> reinstall all the packages I had  before the crash... I, like many<br>
>> others I'm sure,  usually Install a system then proceed to install other<br>
>> packages  along the way to suit  my  needs. But we do not keep a trace<br>
>> of those  small packages installed for this dependency or that small<br>
>> program we want to try..<br>
<br>
</div><div class="im">> <a href="http://www.linuxforums.org/forum/debian-linux-help/40955-need-list-installed-packages.html" target="_blank">http://www.linuxforums.org/forum/debian-linux-help/40955-need-list-installed-packages.html</a><br>

<br>
</div>You can use "dpkg -l" as shown in the link above or<br>
Dump the package selection states to a file with<br>
dpkg --get-selections > instselect.txt<br>
Transfer that file to the new box and install the packages with<br>
dpkg --clear-selections<br>
dpkg --set-selections < instselect.txt<br>
<br>
AFAIK, these two methods do not preserve the status<br>
automatically-installed packages; everything ends up being registered<br>
as a manual install.<br>
<br>
I have not tried the following but it should preserve the automatic states.<br>
<br>
Select the packages that are installed but not installed automatically with<br>
aptitude search -F "%p" '~i!~M' > instman.txt<br>
Transfer that file to the new box  and install the packages with<br>
aptitude install `cat  instman.txt`<br>
The previously-automatically-installed packages should be pulled in<br>
automatically.<br>
<div><div></div><div class="h5"><br>
--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
</div></div></blockquote></div><br></div></div></div>