Sponsored Content
Full Discussion: Comparing packages
Top Forums Shell Programming and Scripting Comparing packages Post 302393915 by Avatar Gixxer on Wednesday 10th of February 2010 02:17:52 AM
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...
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
GRUB-MKIMAGE(1) 						   User Commands						   GRUB-MKIMAGE(1)

NAME
grub-mkimage - make a bootable image of GRUB SYNOPSIS
grub-mkimage [OPTION...] [OPTION]... [MODULES] DESCRIPTION
Make a bootable image of GRUB. -c, --config=FILE embed FILE as an early config -C, --compression=(xz|none|auto) choose the compression to use for core image -d, --directory=DIR use images and modules under DIR [default=/usr/lib/grub/<platform>] -k, --pubkey=FILE embed FILE as public key for signature checking -m, --memdisk=FILE embed FILE as a memdisk image Implies `-p (memdisk)/boot/grub' and overrides any prefix supplied previously, but the prefix itself can be overridden by later options -n, --note add NOTE segment for CHRP IEEE1275 -o, --output=FILE output a generated image to FILE [default=stdout] -O, --format=FORMAT generate an image in FORMAT available formats: i386-coreboot, i386-multiboot, i386-pc, i386-pc-pxe, i386-pc-eltorito, i386-efi, i386-ieee1275, i386-qemu, x86_64-efi, i386-xen, x86_64-xen, mipsel-yeeloong-flash, mipsel-fuloong2f-flash, mipsel-loongson-elf, pow- erpc-ieee1275, sparc64-ieee1275-raw, sparc64-ieee1275-cdcore, sparc64-ieee1275-aout, ia64-efi, mips-arc, mipsel-arc, mipsel-qemu_mips-elf, mips-qemu_mips-flash, mipsel-qemu_mips-flash, mips-qemu_mips-elf, arm-uboot, arm-efi, arm64-efi -p, --prefix=DIR set prefix directory -v, --verbose print verbose messages. -?, --help give this help list --usage give a short usage message -V, --version print program version Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options. REPORTING BUGS
Report bugs to <bug-grub@gnu.org>. SEE ALSO
grub-install(8), grub-mkrescue(1), grub-mknetdir(8) The full documentation for grub-mkimage is maintained as a Texinfo manual. If the info and grub-mkimage programs are properly installed at your site, the command info grub-mkimage should give you access to the complete manual. grub-mkimage (GRUB) 2.02-2ubuntu8.3 July 2018 GRUB-MKIMAGE(1)
All times are GMT -4. The time now is 11:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy