Wednesday, March 14, 2012

CREATE YUM REPOSITORY IN RHEL5.0

YUM  USES RHN BY DEFAULT. THIS ARTICLE SHOW YOU; HOW TO SETUP LOCAL REPOSITORY TO USE YUM .
STEPS FOR CREATING YUM REPO..................................
  1. Insert RHEL5.0 dvd in dvd-drive.
  2. Mount it and copy its contents as shown in figure.

Copy DVD

3. Now create a new directory "RHCE" in /opt.

4. Paste dvd contents in "/opt/RHCE".

DVD Contents

5. Now open "/opt/RHCE/Server" and right click to open terminal from here.

Opening Terminal


6. Proceed with the following commands...........
  • #rpm -ivh createrepo-0.4.4-2.fc6.noarch.rpm 
  • #createrepo -v /opt/RHCE/Server
  • #nano /etc/yum.repos.d/Server.repo

 >[Server]
>name=Red
>baseurl=file:///opt/RHCE/Server
>enabled=1
>gpgcheck=0

now save and exit from nano.

Nano Editor

  • #yum clean all
  • #yum update
7. Now open Package manager to check   
Add/Remove Software



No comments:

Post a Comment