Mar 20, 2008

Synchronize Ubuntu packages

Most of the time I have more than one computer that I use. One problem is to have all installed applications synchronized. This is quite useful if you develop scripts which need special applications to run. So from time to time I synchronize /etc/apt/source.list first followed by:
apt-get clean all
apt-get update
apt-get dist-upgrade
The next step is to get a list of all installed applications:
dpkg --get-selections "*" > /tmp/deb-list.txt
Now I distribute the generated file to my second box and run:
dpkg --set-selections < /tmp/deb-list.txt
apt-get dselect-upgrade
The result is, I have all applications that I have installed on my first box also installed on my second box.

2 comments:

Timo John said...

And HOW do I do that on a windows box?? (dont ask questions like WHY Windows.. take it as given by god)

Or also for the Firefox plugins this would be great...

Unknown said...

I will explain it in a separate post. There are some workarounds for Windows, for Firefox I need to check.