On Sat, 2010-08-07 at 23:05 +0100, John Robinson wrote: > On 07/08/2010 22:52, Mark Goldberg wrote: > > On 07/08/10 20:45, J.Pilk wrote: > > > >> I don't understand why it's trying to install the i686 version of > >> libavcodec52 on a 64-bit system; why not x86_64? > > > > There are both 64 bit and 32 bit versions of lots of libraries installed > > so 32 bit programs can use them. > > This is off-topic, but how do I stop e.g. CentOS from installing any > 32-bit software? Preferably all the way back to install time. I have > lots of packages in both i386 and x86_64 formats and I can't imagine why > I'd want both.
It depends on the yum version you use. Check the yum.conf man page and
see if there is a setting exactarch:
exactarch Either ‘1’ or ‘0’. Set to ‘1’ to make yum update only
update the architectures of packages that you have installed.
ie: with this enabled yum will not install an i686 package to
update an i386 package. Default is ‘1’.
If you want to remove all old i386 packages use some grep magic like the
following (untested):
# Inspect unwanted archs:
rpm -qa --qf '%{name}.%{arch}\n'| grep -Ev '\.(noarch|x86_64)$'
# and then remove them
rpm -qa --qf '%{name}.%{arch}\n'| grep -Ev '\.(noarch|x86_64)$' | xargs rpm -e
--
http://ATrpms.net/
signature.asc
Description: This is a digitally signed message part
_______________________________________________ atrpms-users mailing list [email protected] http://lists.atrpms.net/mailman/listinfo/atrpms-users
