Replicating packages in a new install

Asked by nokangaroo

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

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:

This question was reopened

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

Check out my blog article on how to save/restore your installed package selections: http://smackerelofopinion.blogspot.com/2009/08/cloning-my-installed-packages.html

Hope that helps!

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

Thanks Colin King, that solved my question.

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

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 :
#4

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.