[CentOS] centos 64 bit

Wed Jul 13 06:42:05 UTC 2011
Nguyen Vu Hung (VNC) <vuhung at vinicorp.com.vn>


(2011/07/13 12:07), Edo wrote:
> Hi,
>
>
> On Wednesday, July 13, 2011 at 1:50 PM, Nguyen Vu Hung (VNC) wrote:
>
>>   Hello all,
>>
>>   I am running CentOS 5.6 64 bit.
>>
>>   When running "yum -y install ncurses-devel",
>>   I expect that only ncurses 64 bit version will be installed.
> Try: yum -y install ncurses-devel.x86_64
>
> Or, add “exclude=*.i?86” in your /etc/yum.conf before running the same command you did earlier.

This is what I did and observed.

1. Add "exclude = *.i?86" to /etc/yum.conf
    cf. 
http://wiki.centos.org/FAQ/General#head-357346ff0bf7c14b0849c3bcce39677aaca528e9

2. Query
     yum search ncurses-devel
    Query result: Two ncurses-devel are *still* there!

3. Try to uninstall
      rpm -e `rpm -q --queryformat "%{name}.%{arch}\n" ncurses-devel`
      It works like charm,  "rpm -qa | grep ncurses-devel"

4. Reinstall
     sudo yum -y install ncurses-devel
     Well, this time only 64 bit one was installed.
    -> ncurses-devel-5.5-24.20060715.x86_64.rpm

# 5. Other "duplicated" rpms
#    rpm -qa --queryformat='%{n}-%{v}-%{r}.%{arch}\n' | grep 
'\.i[3456]86$' | sort

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20110713/8987c1d8/attachment-0005.html>