RPM tricks for dealing with multiarch machinesWhy do we need some new RPM tricks for dealing with multiarch machines? Simple: ; rpm -q glibc glibc-2.5-10.fc6 glibc-2.5-10.fc6 That's not an error, that's just my machine having both the 32-bit and
the 64-bit glibc RPMs installed. On a multiarch machine it's routine
to have RPMs with identical names, and The big RPM trick for dealing with a multiarch machine is to know that you can pick out a specific architecture's RPM by putting the name of the architecture on the end of the name of the RPM: ; rpm -q glibc.x86_64 glibc-2.5-10.fc6 (You can use this format with The other trick is using RPM query formats to actually show you which architecture a specific RPM is for. Query formats are sufficiently complicated that a full explanation is well beyond the scope of this entry, but the basics are reasonably simple:
The normal ' (And the '\n' is important. Many a time I've accidentally left it out and gotten all of the output smashed together into one line.) There is probably something you can set up in your
; cat rpmq
#!/bin/sh
exec rpm --qf '%{N}-%{V}-%{R}.%{ARCH}\n' "$@"
(My fingers are busy telling me that this should also supply the ' |
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |