0
Configure Local Yum Server on RHEL/CentOs 6.n


Step: 1
[root@server1~]#cd  /etc/yum.repos.d
after access packages repo file
1.Copy the packages folder from OS dvd to local machine at /var[There must be available space in /var]
2.Create and edit a file as follows:
[root@server1~]# vi filename.repo [filename will be the name of the file]



[server]
name=myrepo
baseurl=file:///var/Packages
gpgcheck=0
enabled=1 
 
................................................................................. 
 save and exit.
 
Step 2:
]#cd /var/Packages
]#rpm -ivh deltarpm pythone-deltarpm createrepo 

Step 3:
]#createrepo /var/Packages

creating.....%

Step 4: Check your configuration

]#yum repolist

If successful it will show the total number of packages in Packages folder.
Otherwise it will show zero in myrepo repository.

------------------Completed-------------------



 

 

Post a Comment

 
Top