Wednesday, June 14, 2017

RedHat - How to Install glibc and libgcc 32-bit on 64-bit OS

Looks like there are not many good web pages on how to install 32-bit packages on a 64-bit OS (RHEL). I spent hours of seaching and finally figured it out. Sharing my learnings: There are two ways to install 32-bit libraries on a 64-bit RHEL OS. You can either manually download the rpms from RedHat, or register your ReaHat OS and subscribe to the default repos.

Manual way:

  • 1. Go to the RedHat website: 
  • 2. Choose the i686 packages
  • 3. Search for the packages your need, download to your 64-bit OS and do a "rpm -ivh"

The problem with this is that you might need to download a whole bunch of packegas in order to install a single package due to dependencies. This way is definitely not recommended.

Preferred way (yum):

  • 1. You need to register and subscripe to RedHat
    • subscription-manager register
    • subscription-manager attach
  • 2. Update your /etc/yum.comf
add or change the line that contains:

This will allow yum to install 32-bit packages without you having to specify *.i686 specifically.

Now you should be able to "yum install package-name".

No comments: