Identical Package-list

Sundar Nagarajan sundar.personal at gmail.com
Sat Aug 25 01:43:38 UTC 2007


das ??? wrote:
> If I want to install the identical-package list in another machine, what
> is the way to do it?
> 
> --
> das
> 
> 


On the original machine (source) type:
dpkg --get-selections | grep -v deinstall > ubuntu-files

Save the output file to a location / disk that will be accessible in the 
new (target) machine.

On the new machine, do a minimal install. Once you have booted into the 
new machine, do the following:

    sudo apt-get update

    sudo apt-get dist-upgrade

    dpkg --set-selections < ubuntu-files

where ubuntu-files is the original output file that you saved.

Now your new system's package management subsystem "knows" what you want 
installed. Just use dselect to install it all. Type the following:

    sudo dselect

This will open up a dselect session. Type '/I/' and allow dselect to 
install of the the packages listed in your ubuntu-files document. When 
it's finished, type '/Q/' and hit the/ ENTER/ key to exit dselect.

You should have an identical package list (or close enough).





More information about the ubuntu-users mailing list