Install the same packages on 2 Debian systems
Ever wanted to get 2 Debian system with the same packages installed on both. I came across this situation just this very day. Trying to install perl-blead on the
toughbook
using
perlbrew
and the tests kept failing on POSIX math. It worked fine on the
Toshiba
so I had to assume there was a package missing that caused the problem because
prove -t ../ext/POSIX/t/math.t told me so.
I digress! To match the packages do:
dpkg --get-selections > /tmp/packagelist.txt
scp /tmp/packagelist user@host:filelocation
On the machine from which you want to get the package list.
Do:
sudo dpkg --set-selections < packagelist.txt
sudo apt-get -y update
sudo apt-get dselect-upgrade
and you should have a full matched pair of computers...
In my case the toshiba is x64 and the toughbook is x86 so I had to edit the packagelist.txt file to remove x64
packages but there was only 6..
Sadly it didn't resolve the issue at hand!
Back