Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.


  • want to move from 32-bit to 64-bit environment (taking advantage of >4GB RAM)
  • bought new HDD and installed new OS
  • mounted old HDD as a secondary device


  • How can I determine all package I had installed (irrespective of platform - I'll install proper platform on the new install)?
share|improve this question
related question about services – warren May 9 '13 at 15:57

1 Answer 1

up vote 4 down vote accepted

A method to automate the new installation and have it install anything you had on your old system would be:

dpkg --get-selections > installed-software

Back that file up and after installation do...

dpkg --get-selections < installed-software

If needed you can edit the text file and remove, alter the name of, or include packages.


cat /var/log/apt/history.log

shows a list of what you did using apt-get.

apt-mark showmanual

will list packagas that where installed manually.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.