Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > Red Hat Enterprise Linux 5 > Issue <<  3 of 367 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 10415
Last update: 04-27-07
Issue:
How would I use yum to update or install packages from a ISO of Red Hat Enterprise Linux version 5?
Resolution:

Release found: Red Hat Enterprise Linux 5

Resolution:
In order to use yum to install or update packages from an iso file, follow the steps below: -

  1. Create directories to mount the iso file.
    #mkdir -p /cdrom/iso
    
  2. Mount the iso as loopback device.
    #mount -o loop <iso-name> /cdrom/iso
    
    Replace <iso-name> with the iso file.
  3. Create a repository. The createrepo package needs to be installed on the system in order to run the following commands. createrepo is an optional package and is not installed by default.
    #cd /cdrom
    #createrepo .
    #yum clean all
    
  4. Create a file /etc/yum.repos.d/file.repo as follows:
    #cat /etc/yum.repos.d/file.repo
    [RHEL 5 Repository]
    baseurl=file:///cdrom
    enabled=1
    

Running yum should now work with the iso file as the source.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > Red Hat Enterprise Linux 5 > Issue <<   3  of  367  >>