Shell Script - Compare packages. rpm

Tiago Dias tux.tiago at gmail.com
Tue Jan 27 10:22:06 UTC 2009


Thanks for help!

2009/1/26 Geofrey Rainey <Geofrey.Rainey at tvnz.co.nz>

> I would do something like this:
>
> Use the rpm queryformat functionality of rpm to print out the version
> of the package:
>
>  rpm -q --queryformat '%{VERSION}' glibc-devel-2.3.4-2.39
>
> This will print out the version, something like:
>
> 2.3.4-2.39
>
> Which can then be compared against a newer version (for this part you
> Would need to get update.out filename list into a similar format).
>
>
> Geofrey Rainey
> Systems Engineer
> D. 64 9 916 7178
> M. 64 21 563 106
> geofrey.rainey at tvnz.co.nz
>
>
>
-- 
Tiago Dias da Silva
Administrador de Sistemas GNU/Linux
HomePage: www.dias.eti.br
Email: tiago at dias.eti.br

"A mente que se abre a uma nova idéia jamais voltará ao seu tamanho
original"

(Albert Einstein)



More information about the redhat-list mailing list