Comparing packages


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Comparing packages
# 1  
Old 02-10-2010
Comparing packages

Hi,

I used the following command to retrieve a list of packages and saved them into a file:

Code:
rpm -q --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH}) \n" binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel-2.5 libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat > output.txt

I want to compare these packages in the output.txt file to those on another server.
The packages on the other server must be at least the same version or higher.

The output of my output.txt file looks like this:
Code:
binutils-2.17.50.0.6-2.el5 (x86_64)
compat-libstdc++-33-3.2.3-61 (i386)
compat-libstdc++-33-3.2.3-61 (x86_64)
elfutils-libelf-0.125-3.el5 (x86_64)
elfutils-libelf-devel-0.125-3.el5 (x86_64)
gcc-4.1.1-52.el5 (x86_64)
gcc-c++-4.1.1-52.el5 (x86_64)
glibc-2.5-12 (i686)
glibc-2.5-12 (x86_64)
glibc-common-2.5-12 (x86_64)
glibc-devel-2.5-12 (x86_64)
glibc-devel-2.5-12 (i386)
libaio-0.3.106-3.2 (x86_64)
libaio-0.3.106-3.2 (i386)
libaio-devel-0.3.106-3.2 (x86_64)
libgcc-4.1.1-52.el5 (x86_64)
libgcc-4.1.1-52.el5 (i386)
libstdc++-4.1.1-52.el5 (x86_64)
libstdc++-4.1.1-52.el5 (i386)
libstdc++-devel-4.1.1-52.el5 (x86_64)
make-3.81-1.1 (x86_64)
sysstat-7.0.0-3.el5 (x86_64)

As you can see there are 32-bit and 64-bit packages of the same rpms and further more I've noticed that on other servers the order in which the 32-bit and 64-bit packages are written to the file may vary.

Can someone please help me with a script to check this as I have over 40 servers to do this on and a script will simplify the process a lot!!!

Thanks in advance.

Last edited by pludi; 02-10-2010 at 03:24 AM.. Reason: code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris 10 packages

Hi all, Does anyone know where you can get solaris 10 packages these days? It seems that sunfreeware have now started charging you to download them, which is good. I have found opencsw, but that seems to rely on you hooking the machine into the interenet and at the moment I am trying to... (3 Replies)
Discussion started by: callmebob
3 Replies

2. HP-UX

HPux 11.23: packages?

This site,with good packages drop support for 11.23 HP-UX Porting and Archiving Centre | What´s New? Someone know a good site with packages? Thanks (0 Replies)
Discussion started by: Linusolaradm1
0 Replies

3. Solaris

Packages in zones

hello, I have this problem. I'm trying to setup 2 zones on my server with different packages. I want one zone to have the package SUNlldap and the other zone to not have it. I don't care what's on the global zone. This package seems to be set to SUNW_PKG_ALLZONES=true. So It seems, that I have... (2 Replies)
Discussion started by: bitlord
2 Replies

4. Slackware

Find Slackware Packages - packages.acl.org.ua

Hi! Let me introduce a project for find and download Slackware packages and browse Slackware repositories. The site provides following features: * Large, daily updated database with RPM, DEB, TGZ, TXZ packages for well-known repositories of the Slackware, Fedora, CentOS, RHEL, Debian,... (2 Replies)
Discussion started by: lystor
2 Replies

5. UNIX for Dummies Questions & Answers

installing packages

hi Guys, relatively new to Unix. i have a list of Unix packages to install... how do i install only what is on that list? can someone help? Kind regards Brian (1 Reply)
Discussion started by: brian112
1 Replies

6. Solaris

Packages

Hi there i wonder if someone can help, i have 2 servers (serverA and serverB). on A i have 147 packages, on server B i have 714 packages installed. i need server A to have the same packages as server B. how do i compile a list of only the packages i need? so in other words the list should be... (2 Replies)
Discussion started by: brian112
2 Replies

7. UNIX for Dummies Questions & Answers

packages

Hi there i wonder if someone can help, i have 2 servers (serverA and serverB). on A i have 147 packages, on server B i have 714 packages installed. i need server A to have the same packages as server B. how do i compile a list of only the packages i need? so in other words the list should be... (0 Replies)
Discussion started by: brian112
0 Replies

8. Solaris

Which packages contain?

Cannot find which packages install: The executable: sharemgr The service: smb/server Anyone knows? Background, I want to setup CIFS on ZFS. Solaris 10. (1 Reply)
Discussion started by: sb008
1 Replies

9. Red Hat

how to update packages?

How to I get package updates if I just have the red hat EL 3 media but no subscription to the RHN? (4 Replies)
Discussion started by: BG_JrAdmin
4 Replies

10. UNIX for Dummies Questions & Answers

Repository of HP-UX 10.20 packages

Hello, What the adresses of ftps or websites the packages depots to HP-UX 10.20 I am search and google I did not get success. Thanks :D (1 Reply)
Discussion started by: markos
1 Replies
Login or Register to Ask a Question