Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am moving to a new laptop with Ubuntu Lucid from an old laptop that has Ubuntu Karmic.

I want to look at the list of all the packages and selectively install them all on the new laptop.

What is the best method to go about doing this?

share|improve this question
    
What an excellent question! –  marcusw Apr 30 '10 at 19:47

2 Answers 2

up vote 2 down vote accepted

Use

  dpkg --get-selections > package.list

to write the list of packages to the file package.list and edit it if you want

On the new machine use

  sudo dpkg --set-selections < package.list
  sudo apt-get dselect-upgrade

to install the packages

share|improve this answer
    
You can also use dpkg -l to show all installed packages with their descriptions so you can decide which ones you want. Just edit package.list as you see fit. –  stillinbeta Apr 30 '10 at 18:41

A better list is obtained from:

aptitude search '~i !~M'
share|improve this answer

Your Answer

 
discard

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.