June 2010
We 've got two lengthy Debian package lists, obtained by running on each host:
user@host:~$ COLUMNS=200 dpkg -l|awk '{print $2}' > packages.
host
Let's call them packages.left
and packages.right
.
The easiest way to compare them is like this:
user@host:~$ grep -wvf packages.left packages.right > packages.onlyin.right
user@host:~$ grep -wvf packages.right packages.left > packages.onlyin.left
user@host:~$