March 28, 2024, 09:34:34 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Can't configure local repository server in RHEL 5  (Read 4143 times)

Offline alokrajak

  • New Member
  • Posts: 1
Can't configure local repository server in RHEL 5
« on: February 13, 2011, 03:04:56 PM »
I have red Hat Linux 5 & i did not know how to configure yum repository server
Please advice me
Thanks & Regards
Alok

Offline Ghansham

  • New Member
  • Posts: 2
Re: Can't configure local repository server in RHEL 5
« Reply #1 on: April 09, 2011, 12:21:45 PM »
First you would need to root Login
then open
cd /etc/yum.repos.d/

Directory and make one file give any filename.repo extension.
open this file vi /etc/yum.repos.d/filename.repo

and write matter

[RHEL-5-Repository]
 name=RHEL5 repository
 baseurl=file:///cdrom
 enabled=1
 gpgcheck=0

save this file.
and run Command
yum install <package name>