[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: package manager for RHEL?



On Wed, Oct 24, 2007 at 02:49:59PM +0200, Olaf Zaplinski wrote:

> # rpm -qa | grep audit-libs | xargs rpm -e --allmatches
> error: package audit-libs_1.3.1-1.el5.i386 is not installed
> error: package audit-libs_1.3.1-1.el5.x86_64 is not installed
> 
> 
> Perhaps because of a bash alias?
> 
> alias rpm='rpm --qf '\''%{name}_%{version}-%{release}.%{arch}\n'\'''

Yes, make it:

alias rpm='rpm --qf '\''%{name}-%{version}-%{release}.%{arch}\n'\'''

This is just wrong (the underscore).

> I had to install this because RHEL5 has a big bug: when you run rpm
> directly, it produces this funny output:
> 
> # rpm -q audit-libs
> audit-libs-1.3.1-1.el5
> audit-libs-1.3.1-1.el5

This is perfectly ok.  It just does not list the architecture,
as rpm never did, and it is not implemented because of backwards
compatibility reasons.

> RHEL4 has no problem like this.

RHEL4 behaves exactly the same, but you might not have
installed two architectures of that package.

-- 
--    Jos Vos <jos xos nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]