Redhat – “yum groupinstall” i686 packages on x64

redhatrpmyum

I'm working on enabling x64 host build workers to build i686 RPMs, now that AWS EC2 (which we use to run build workers) is deprecating i386 nodes like m1.medium in favour of x64-only instance types like m3.medium.

I could roll a custom AMI that runs a 32-bit userpsace on a 64-bit kernel, but this seems like a good opportunity to switch to using multiarch for builds.

I currently install the core dev tools and package build dependencies with

yum install yum-utils
yum groupinstall "Development Tools"
yum-builddep postgresql

… but I can't figure out how to do the multiarch equivalent. For individual packages you just:

yum install glibc-devel.i686

for example, but this won't work for groupinstall or builddep.

Ideas?

Best Answer

As you mentioned in your comment, you can use multilib_policy=all for groupinstall, and use setarch command for yum-builddep like this:

setarch i686 yum-builddep postgresql