detecting 32-bit verses 64-bit RPMs

Dave Mitchell davem at iabyn.com
Tue Dec 6 17:51:49 UTC 2005


On Tue, Dec 06, 2005 at 04:38:39PM +0000, Paul Howarth wrote:
> Dave Mitchell wrote:
> >How can I select just one of them? For example,
> >    rpm -ql mysql-4.1.15-1.FC4.1
> >appears to list both 32-bit and 64-bit files.
> 
> $ rpm -ql mysql-4.1.15-1.FC4.1.i386
> $ rpm -ql mysql-4.1.15-1.FC4.1.x86_64

Thanks.

This then leads me to wonder how both RPMs can co-exist on my
system when they share common files? eg

    $ rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' mysql
    mysql-4.1.15-1.FC4.1.i386
    mysql-4.1.15-1.FC4.1.x86_64

    $ rpm -ql mysql-4.1.15-1.FC4.1.x86_64 | head -4
    /etc/ld.so.conf.d/mysql-x86_64.conf
    /etc/my.cnf
    /usr/bin/msql2mysql
    /usr/bin/mysql

    $ rpm -ql mysql-4.1.15-1.FC4.1.i386 | head -4
    /etc/ld.so.conf.d/mysql-i386.conf
    /etc/my.cnf
    /usr/bin/msql2mysql
    /usr/bin/mysql

    $ file /usr/bin/mysql
    /usr/bin/mysql: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped
    $

/usr/bin/mysql is contained in both rpms, but only the 64-bit version is
installed.

-- 
This is a great day for France!
    -- Nixon at Charles De Gaulle's funeral




More information about the users mailing list