<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000099">
    <br>
    <br>
    (2011/07/13 12:07), Edo wrote:
    <blockquote cite="mid:DECA533328CB4324AE02FCB770E20693@gmail.com"
      type="cite">
      <pre wrap="">Hi,


On Wednesday, July 13, 2011 at 1:50 PM, Nguyen Vu Hung (VNC) wrote:

</pre>
      <blockquote type="cite">
        <pre wrap=""> 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.
</pre>
      </blockquote>
      <pre wrap="">
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.
</pre>
    </blockquote>
    <br>
    This is what I did and observed.<br>
    <br>
    1. Add "exclude = *.i?86" to /etc/yum.conf<br>
       cf.
<a class="moz-txt-link-freetext" href="http://wiki.centos.org/FAQ/General#head-357346ff0bf7c14b0849c3bcce39677aaca528e9">http://wiki.centos.org/FAQ/General#head-357346ff0bf7c14b0849c3bcce39677aaca528e9</a><br>
    <br>
    2. Query<br>
        yum search ncurses-devel<br>
       Query result: Two ncurses-devel are *still* there!<br>
    <br>
    3. Try to uninstall<br>
         rpm -e `rpm -q --queryformat "%{name}.%{arch}\n" ncurses-devel`<br>
         It works like charm,  "rpm -qa | grep ncurses-devel" <br>
       <br>
    4. Reinstall <br>
        sudo yum -y install ncurses-devel<br>
        Well, this time only 64 bit one was installed.<br>
       -> ncurses-devel-5.5-24.20060715.x86_64.rpm <br>
    <br>
    # 5. Other "duplicated" rpms<br>
    #    rpm -qa --queryformat='%{n}-%{v}-%{r}.%{arch}\n' | grep
    '\.i[3456]86$' | sort<br>
    <br>
    Thank you,<br>
    <br>
  </body>
</html>