I need to display a list of Linux software packages that are 'build machine' and 'developer machine' May be different from time to time.
I get "dpkg -l" to get the text dump of packages installed on other vs. Vs. Gold VM and then things like "diff" or "awk grep" on two lists, but I wonder Is that already a tool that works better than writing scripts for jobs?
How do you people do it?
Jean-Pier
I just coded this script, which is comparisons Also package version:
Usage:
1) Generate package list in both computers, such as:
apt-installed list | Tail-n + 2 & gt; That_server.lst
2) Perform Perl script:
./ compare_ubuntu_apt.pl this_server.lst that_server.lst
Result: (example)
------------------------- --------- Defender ---------------------------------- @ Epamera: 2.8.95 ~ 2430-0 Buntu 5.2 - & gt; 2.8.95 ~ 2430-0 Buntu 5.3 apt: 1.0.1ubuntu2.8 - & gt; 1.0.1ubuntu2.10 @ apt-transport-https: 1.0.1ubuntu2.8 - & gt; 1.0.1ubuntu2.10 @ apt-utils: 1.0.1ubuntu2.8 - & gt; 1.0.1ubuntu2.10 @ Base-Files: 7.2 Ubuntu 5.2 - & gt; 7.2ubuntu5.3 @bash-completion: 1: 2.1-4 - & gt; 1: 2.1-4ubuntu0.1 ---------------------------------- erasing in this server_lists - - ---------------------- + + ACL: 2.2.52-1 + ACPID: 1: 2.0.21-1 Buntu 2 + Update: 2.14.1-0 Buntu 3.11 + upport-symptom: 0.20 + A: 3.1.14-1 Buntu 1 + et-Spie 2-Core: 2.10.2.is.2.10.1-0ubuntu1 + attr: 1: 2.4 .47 Tibbnut 1 + Autotools-dev: 20130810.1 ---------------------------------- Finishing that _server.lst ----- ----------------------------- - apcupsd: 3.14.10-2build1 - apcupsd-doc: 3.14.10 -2build1 - Beep: 1.3-3 - BTFFS-Tools: 3.12-1 - Discover: 2.1.2-5.2ubuntu1
Comments
Post a Comment