Replicating packages in a new install

Asked by nokangaroo on 2009-10-31

Is there an automated way to apt-get exactly the same packages after a reinstall, for instance by copying etc/apt (or whatever file is relevant) to the new install and instructing synaptic or aptitude to use it? I am just going to install karmic for the third time (the second time was to get rid of grub2, the third will be to get 32bit back) and it would be tedious to reinstall every single item by hand.

Question information

English Edit question
Ubuntu Edit question
No assignee Edit question
Last query:
Last reply:

This question was reopened

Revision history for this message
Colin Ian King (colin-king) said :

Check out my blog article on how to save/restore your installed package selections:

Hope that helps!

Revision history for this message
nokangaroo (nokangaroo-deactivatedaccount-deactivatedaccount) said :

Thanks Colin King, that solved my question.

Revision history for this message
nokangaroo (nokangaroo-deactivatedaccount-deactivatedaccount) said :

Sorry, did not help. The command I found on your blog did not install anything. At the moment I have other worries anyway (trying to get grub legacy back).

Revision history for this message
zvacet (ivicakolic) said :

Type in terminal

aptitude --display-format '%p' search '?installed!?automatic' > ~/my-packages

You will find tex file in your home directory.Pu it somewhere in safe (usb,mail it to yourself) and after reinstall put that file in home directory and run in terminal

sudo xargs aptitude --schedule-only install < my-packages
sudo aptitude install

Can you help with this problem?

Provide an answer of your own, or ask nokangaroo for more information if necessary.

To post a message you must log in.