Monday 30 September 2013

Red Hat CDRom repository

How to setup a local repository to fetch packages from CDRom

Sometimes you want to install a package and want the dependencies to be resolved automatically. If you don't have a server which can be used as a repository. You can use your media or install CD as a repository.

# mkdir /media/cdrom
# mount /dev/cdrom /media/cdrom
# vi /etc/yum.repos.d/cdrom-repo


Now type in the following text and save the file:

 [cdrom-repo]
 name=CDRom-Repo
 baseurl=file:"///media/cdrom/"
 enabled=1
 gpgcheck=0


# yum repolist

No comments:

Post a Comment