How
to create a repository file for the rhel
To
create a repo file first dump all the rhel dvd in the /var/ftp/pub
put
the rhel operating system dvd into the cd tray and then go to the
path
#cd
/media/rhel6/
then
dump all the dvd content to the /var/ftp/pub
if
this path not present then create it
#cd
/var
#mkdir
-p ftp/pub
here
the file will be created
then
dump here
#cp
-rf /media/rhel6/* /var/ftp/pub
here
all the dvd connect will be copied to th path /var/ftp/pub
here
create a repo file
#vim
/etc/yum.repos.d/server.repo
[server]
baseurl=file:///var/ftp/pub/
enabled=1
gpgcheck=0
:wq!
Here
the repo file will be create, to check wheather its working or not
then do like this
#yum
list all
here
it will show all the packages
then
the repo file created succesfully
No comments:
Post a Comment