Yellow Dog Linux General

TOPIC: Using local ISO or DVD with yum



Procedure

You must be running yum v. 3.2.0 - Release 1.ydl.2 for this HowTo to work.
  1. Mount the DVD or ISO:

    • Type:
      mkdir /media/DVD
    • If using an ISO, type:
      mount -o loop /path/to/iso /media/DVD
    • If using a DVD, type:
      mount /dev/dvd /media/DVD
  2. Copy the DVD or ISO into an NFSROOT system. If you are unsure if you are using an NFSROOT system, it is likely that you are not.

    • Mount the DVD or ISO image as per above on the NFS server

    • Then on the NFS Server type:
      mkdir -p /path/to/nfsroot/MAC-address/media/DVD
      cp -a /media/DVD/* /path/to/nfsroot/MAC-address/media/DVD
    • There is now a local yum repo in the NFSROOT, and you can use the following procedure to access the local repo

  3. To create a yum repo file for the DVD:

    • Edit a new file called /etc/yum.repos.d/yellowdog-dvd.repo and add the following lines to it:
      [dvd]
      name=Yellow Dog Linux DVD
      baseurl=file:///media/DVD
      enabled=0
      gpgcheck=0
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY
    • Save and exit the file.

  4. Clean out any residual files left in yum from former http use of yum:
    yum clean all
  5. Use yum to install packages from the DVD or ISO by typing:
    yum --disablerepo=base --disablerepo=updates --disablerepo=extras --enablerepo=dvd {normal yum commands}
Alternately, if you always plan to use yum from the DVD or ISO, you can disable the other repo files in /etc/yum.repos.d/ by moving them to yellowdog-base.repo.disabled, yellowdog-extras.repo.disabled, yellowdog-updates.repo.disabled respectively.

Also change the enabled=0 to enabled=1. Making this change you can use yum without using "--disablerepo=base --disablerepo=updates --disablerepo=extras --enablerepo=dvd" options of the command.

This HOWTO was written by Aaron Johnson, Terra Soft



 
          COPYRIGHT ® 1999-2008. FIXSTARS, INC. ALL RIGHTS RESERVED.

SEARCH FSS

SEARCH LISTS

SEARCH HOWTOS