Re: generating 32-bit RPM's

Phil Schaffner <[email protected]>
Newsgroups gmane.linux.redhat.amd64
Organization NASA Langley Research Center
Message-ID <[email protected]>
On Tue, 2005-09-20 at 11:12 +0100, Dave Atkinson wrote:
...
> I too have been considering this problem recently.  I wanted to
> install
> 32-bit mplayer so's I could use the [ahem] other codecs... couldn't
> get
> yum to install 32-bit mplayer (if anyone can explain to me a simple
> way
> of installing an arbitary 32-bit pkg on x86_64..? thx ;).
> ...

Not exactly simple, but I manage it by creating i386 repo definitions
that are disabled by default and enabling them with 
"yum --enablerepo=reponame update <packages>" (or "install").  Works OK
once you get the right set of 32-bit packages installed for browsers,
etc.

Here's my current set of CentOS4 browser-related packages for a dual
Opteron:

acroread-7.0.0-2.rf.i386
firefox-1.0.6-1.4.2.centos4.i386
mozilla-1.7.10-1.4.2.centos4.i386
mozilla-acroread-7.0.0-2.rf.i386
mozilla-chat-1.7.10-1.4.2.centos4.i386
mozilla-devel-1.7.10-1.4.2.centos4.i386
mozilla-dom-inspector-1.7.10-1.4.2.centos4.i386
mozilla-js-debugger-1.7.10-1.4.2.centos4.i386
mozilla-mail-1.7.10-1.4.2.centos4.i386
mozilla-nspr-1.7.10-1.4.2.centos4.i386
mozilla-nspr-1.7.10-1.4.2.centos4.x86_64
mozilla-nspr-devel-1.7.10-1.4.2.centos4.i386
mozilla-nss-1.7.10-1.4.2.centos4.i386
mozilla-nss-1.7.10-1.4.2.centos4.x86_64
mozilla-nss-devel-1.7.10-1.4.2.centos4.i386
mozilla-nss-devel-1.7.10-1.4.2.centos4.x86_64

Here's a sample set of repo definitions:
[prs@wx1 yum.repos.d]$ cat CentOS-Base-i386.repo
[base-i386]
name=CentOS-$releasever - Base
baseurl=http://mirror.centos.org/centos/$releasever/os/i386/
gpgcheck=1
enabled=0

#released updates
[update-i386]
name=CentOS-$releasever - Updates
baseurl=http://mirror.centos.org/centos/$releasever/updates/i386/
gpgcheck=1
enabled=0

#packages used/produced in the build but not released
[addons-i386]
name=CentOS-$releasever - Addons
baseurl=http://mirror.centos.org/centos/$releasever/addons/i386/
gpgcheck=1
enabled=0

#additional packages that may be useful
[extras-i386]
name=CentOS-$releasever - Extras
baseurl=http://mirror.centos.org/centos/$releasever/extras/i386/
gpgcheck=1
enabled=0

#additional packages that extend functionality of existing packages
[centosplus-i386]
name=CentOS-$releasever - Plus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/i386/
gpgcheck=1
enabled=0

#contrib - packages by Centos Users
[contrib-i386]
name=CentOS-$releasever - Contrib
baseurl=http://mirror.centos.org/centos/$releasever/contrib/i386/
gpgcheck=1
enabled=0

#packages in testing
[testing-i386]
name=CentOS-$releasever - Testing
baseurl=http://mirror.centos.org/centos/$releasever/testing/i386/
gpgcheck=1
enabled=0

Phil
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.