WBITT

We Bring In Tomorrows Technology

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size

YUM local repository

E-mail Print PDF
User Rating: / 19
PoorBest 
Setting up local yum repository:-

Assuming you have your Linux distribution DVD / CDs copied into a directory named "/data/rhel_5.2dvd", then you would setup a yum repository file as shown below, to help you eliminate the need to copy/install individual packages all the time , and use the power of yum instead:-


[root@headnode Server]# cat /etc/yum.repos.d/localmedia.repo
[rhel-localmedia]
name=RedHat Enterprise Linux $releasever - $basearch
baseurl=file:///data/rhel_5.2dvd/Server/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[root@headnode Server]#  

That is all!
You are here How To / Tutorials YUM local repository