1

I want to recreate the list of installed packages I had in my 11.10 installation into my new 12.04 one. I updated to 12.04 at the same time I bought a new HD, so I can mount the old HD where the old 11.10 system was installed, read the list of installed packages in 11.10 somewhere, and do an apt-get install for each of them. How can I produce the list of installed packages from the mounted HD where my 11.10 was installed?

I can't run commands on the 11.10 system since I have already changed the HD, but if the list is somewhere in /var/cache/apt/archives I can look at the mounted HD, that would be the solution for me.

719016
  • 6,467

1 Answers1

0

sudo dpkg --get-selections.

If you want these packages to be installed on 12.04, do the following

  1. On your 11.10

sudo dpkg --get-selections "*" > packages

  1. Transfer the file 'packages' to 12.04 and do

sudo apt-get update

sudo dpkg --set-selections < packages

sudo apt-get -u dselect-upgrade

You can refer to this : http://sosaysharis.wordpress.com/2012/05/02/upgrading-to-ubuntu-12-04-the-way-i-did-it/