Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm setting up a new machine, and I need to make sure it has all the same packages as one in England being used for a similar project. To that end, I have the results of a dpkg -l call from the machine I want to imitate, but I've been having trouble ensuring that this machine gets the right packages installed. I've tried the second answer from here: How to list all installed packages?

as it seems to be essentially what I want to do, but it seems that after the dselect-upgrade finishes and I reboot the kernel is gone, and I end up having to re-install ubuntu again.

Long story short, I'm looking for a way to get all the packages from the list I got from the dpkg -l call installed on this new machine, preferably without deleting the kernel and forcing me to re-install...

Note: As --set-selections requires the package list to be in the format of --get-selections, not --list, I've made a new text file that consists of the --list results in the proper format (eg abiword install rather than ii abiword 2.9.2+svn20120213-1 efficient, featureful word processor with collaboration). It does run the set-selections from this file, so that makes me think that the format is fine.

share|improve this question
There's no clear question here. Please edit your question to include a statement about the kind of help you are looking for. –  chaskes Jun 27 '13 at 17:22
Is that better? –  StephenTG Jun 27 '13 at 17:27
Yes, that's better. :) –  chaskes Jun 27 '13 at 17:30
The output of dpkg -l does not include whether the package was installed automatically (being a dependency of another) or that it was installed manually (picked by the user). Because of this, it's not the best way to make sure the state of the package management is in the same state. If possible, get access on the first machine and copy the package list properly. –  gertvdijk Jun 27 '13 at 17:31
Is there a better method? If there is, I can check in with the people in England to see if they can send me the package list in a better format, although that correspondence might take a little while (not that I'm going to be winning any medals for speed, having reinstalled Ubuntu 3 or 4 times already today...) –  StephenTG Jun 27 '13 at 17:35
show 1 more comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.