[clug] Determining installed RPM subarchitecture

Andrew Pollock andrew-clug at andrew.net.au
Mon Sep 15 11:08:59 EST 2003


On Thu, Sep 11, 2003 at 09:01:28AM +1000, Andrew Pollock wrote:
> Hi,
> 
> Continuing on my quest to be able to update a Red Hat system sans the RHN,
> I am writing a script that compares the versions of the contents of the
> updates directory of a Red Hat 7.3 mirror against the versions of the 
> installed packages.
> 
> The only stumbing block I have come across so far is subarchitectures.

[snip]

I discovered that:

rpm -qa --queryformat '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm\n'

will spit back pretty much what the original filename of a package would 
have been, which helps me in my quest to compare the contents of a Red Hat 
7.3 updates mirror against an installed system.

Andrew



More information about the linux mailing list