[CentOS] Yum updates packages for other arch too

Christian Huegel christian.huegel at fedoraforum.de
Wed Aug 30 21:18:59 UTC 2006


Johnny Hughes wrote:
> On Wed, 2006-08-30 at 22:46 +0200, Christian Huegel wrote:
>> Johnny Hughes wrote:
>>> 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
>>>
>>
>> Hi Johnny,
>>
>>
>> thank you for your quick reply.
>> Here comes the list:
>>
>> compat-libgcc-296-2.96-132.7.2.i386
>> compat-libstdc++-296-2.96-132.7.2.i386
>> device-mapper-1.02.02-3.0.RHEL4.i386
>> dmraid-1.0.0.rc8-1_RHEL4_U2.i386
>> glibc-2.3.4-2.19.i686
>> libgcc-3.4.5-2.i386
>> libselinux-1.19.1-7.i386
>>
>> Chris
> 
> That is a fairly mimimal set of packages ... you can probably leave them
> and update ... you could probably also remove them all as well.
> 
> The only thing that you might need is dmraid ... but I doubt you are
> using that.  If you are not, you can rpm -e all those packages and add
> the exclude rule to prevent them from coming back.
> 
> Make sure to use the .i386 when removing packages.
> 

Yes, i´m using RAID 1, therfore i might need that one...

Chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://lists.centos.org/pipermail/centos/attachments/20060830/e5c0602b/attachment.sig>


More information about the CentOS mailing list