RedHat: Install packages from CD

I am giving IOmeter a try on Linux. More specifically I am creating a minimal RedHat install that I want to install the IOmeter client on, then clone the install a few dozen times. When I tried to download the IOmeter linux client I realized that the minimal RedHat install does not include wget. Since I did not have a reliable internet connection on my MacBook I wasn’t able to connect to the RedHat repos. I was able to search and find the following process on how to configure a local repo to be able to install packages from the cdrom.

  1. Create a file: /etc/yum.repos.d/cdrom.repo
    [cdrom]
    name=cdrom
    baseurl=file:///mnt/cdrom
    gpgcheck=0

     

  2. Mount CDrom:
    mkdir /mnt/cdrom
    mount /dev/cdrom /mnt/cdrom

     

  3. Run: yum clean all

     

  4. Install needed packages:
    yum install wget

     

One thought on “RedHat: Install packages from CD”

Leave a Reply

Your email address will not be published. Required fields are marked *