[CentOS] Yum updates packages for other arch too

Wed Aug 30 20:37:17 UTC 2006
Johnny Hughes <mailing-lists at hughesjr.com>

On Wed, 2006-08-30 at 22:29 +0200, Christian Huegel wrote:
> Hi,
> 
> I have the x86_64 arch on my server so therfore i expect that yum
> updates only x86_64 packages.
> With the last *yum update* i´ve noticed a strange behaviour while
> retrieving the needed packeges. As you you see, yum wants install
> packages for different architectures:
> 
> glibc      x86_64     2.3.4-2.25       base             4.9 M
> glibc      i686       2.3.4-2.25       base              5.1 M
> .
> .
> .
> dmraid  i386       1.0.0.rc11-3_RHEL4_U4  base              396  k
> 
> and the list continues. This ends with an bunch of unresolved dependencies.
> #################################
> My yum.conf:
> [main]
> cachedir=/var/cache/yum
> debuglevel=2
> logfile=/var/log/yum.log
> pkgpolicy=newest
> distroverpkg=centos-release
> tolerant=1
> #exclude=kernel*
> exactarch=1
> retries=20
> obsoletes=1
> gpgcheck=1
> 
> # PUT YOUR REPOS HERE OR IN separate files named file.repo
> # in /etc/yum.repos.d
> ############################
> 
> and here the CentOS-Base.repo:
> 
> #############################################################
> [base]
> name=CentOS-$releasever - Base
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
> baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
> 
> #released updates
> [update]
> name=CentOS-$releasever - Updates
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
> baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
> 
> #packages used/produced in the build but not released
> [addons]
> name=CentOS-$releasever - Addons
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
> baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
> 
> #additional packages that may be useful
> [extras]
> name=CentOS-$releasever - Extras
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
> baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
> gpgcheck=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
> 
> #additional packages that extend functionality of existing packages
> [centosplus]
> name=CentOS-$releasever - Plus
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
> baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
> gpgcheck=1
> enabled=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
> 
> #contrib - packages by Centos Users
> [contrib]
> name=CentOS-$releasever - Contrib
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
> baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
> gpgcheck=1
> enabled=1
> gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
> 
> ###################################
> 
> How can be this possible?
> Thanks in advance,
> 
> Chris


dmraid.i386 will normally be installed ... x86_64 contains both
i386/i686 and x86_64 packages.

If you don't have any i386/i686 packages now you can add this to
your /etc/yum.conf file:

exclude=*.i386 *.i586 *.i686

To see if you have any i386 / i686 packages do this ...

1.  Add this line to a file called .rpmmacros in your home directory:

%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

2.  Run this from the commandline:

rpm -qa | grep i[3,5,6]86 | sort


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.centos.org/pipermail/centos/attachments/20060830/8d94a394/attachment-0005.sig>