Robinson Tiemuqinke
2007-May-02 18:44 UTC
[CentOS] 'exclude' option failed for yum on centos 5
Hi, 'exclude' option fails for yum on centos 5. I tried to yum install a group on a x86_64 machine, but it installs both ix86 version and x86_64 version. So I added the following line to /etc/yum.conf, clears /var/cache/yum/, then run 'yum groupinstall Ruby', but it reports that ix86 version packages will be installed still. Any one know what's the correct syntax to exclude one or more 'arch' from group installation on centos 5? Please help. The following are from my /etc/yum.conf: ... exclude='*.i386 *.i486 *.i586 *.i686 *.athelon' ... The following are from the output: ... Dependencies Resolved ============================================================================ Package Arch Version Repository Size ============================================================================Installing: ruby x86_64 1.8.5-5.el5 base 278 k ruby-devel x86_64 1.8.5-5.el5 base 562 k ruby-devel i386 1.8.5-5.el5 base 554 k ruby-mode x86_64 1.8.5-5.el5 base 52 k Installing for dependencies: device-mapper i386 1.02.13-1.el5 base 582 k e2fsprogs-libs i386 1.39-8.el5 base 112 k ... __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Karanbir Singh
2007-May-04 00:14 UTC
[CentOS] Re: [Yum] 'exclude' option failed for yum on centos 5
Robinson Tiemuqinke wrote:> exclude='*.i386 *.i486 *.i586 *.i686 *.athelon'1. you dont need to quote it 2. its athlon, and not athelon - also there are no athlon pkgs in centos-5 3. you can use globs, so this should work as well : exclude=*.i?86 4. Cross posting is considered bad, dont do it - KB -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq