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

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
2009-11-02
Last reply:
2009-11-02

This question was reopened

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!

Thanks Colin King, that solved my question.

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).

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.