Ubuntu: clone installed packages to a new system

apt-clone:

On the source system, do the following:

apt-get install apt-clone
apt-clone clone 

Copy \<systemname>.apt-clone.tar.gz to the new machine and run:

apt-get install apt-clone
apt-clone restore .apt-clone.tar.gz

dselect:

source system:

dpkg --get-selections > ~/Package.list

target system:

apt-get update
apt-get install dselect
dselect update
dpkg --set-selections < ~/Package.list
apt-get dselect-upgrade -y

Leave a Comment