How to get yum to only install < i586?

Kam Leo kam.leo at gmail.com
Sat Oct 27 19:14:08 UTC 2007


On 10/27/07, seandarcy <seandarcy2 at gmail.com> wrote:
> Kam Leo wrote:
> > On 10/26/07, seandarcy <seandarcy2 at gmail.com> wrote:
> >> I'm running fc6 on an old i586 machine. yum updates the kernel
> >> correctly, and glibc.
> >>
> >> But, it continues to install openssl.i686, which cause no end of
> >> trouble, because this a remote machine. openssl.i686 hoses sshd and rpm.
> >>   So someone actually has to crawl though a long shaftway, and set the
> >> machine to allow telnet.
> >>
> >> I have exactarch=1. Somthing I'm missing?
> >>
> >> sean
> >
> > What does "uname -p" produce and how is the architecture specified in
> > the .repo files?
> >
>
> uname -p
> i586
>
> cat fedora-updates.repo
> [updates]
> name=Fedora Core $releasever - $basearch - Updates
> #baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/updates/$releasever/$basearch/
> mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-fc$releasever&arch=$basearch
> enabled=1
> gpgcheck=1
> gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
> .........
>
> Thanks for any help.
>
> sean
>

I'm surprised that your box is installing the i686 files. I've got a
K6-2 cpu box and openssl
packages are all i386. Did you clone the disc or install from a backup?

>From yum documentation, i.e. "man yum.conf":

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'.

Based on the above the best bet seems to be to

1. find all i686 packages, e.g.

rpm -qa --qf '%{name}-%{version}-%{release}.%{arch}\n' | grep i686 | sort

2. download the i386 packages (same version),

3. use rpm or yum to remove the i686 packages,

4. install the i386 packages.

Hope that works for you.




More information about the users mailing list