Creating
Local Repo file RHEL 6
11. [root@sysadmin Desktop]# mkdir /repodata/
.
2. Copy Packages Folder From RHEL6 DVD to the
Folder we have created Inside the Desktop folder “/Desktop/repodata/”
#
cp –iv
/media/RHEL6.0\x86_63\.... 1/Packages/* /repodata/
3. Delete the Existing Repo File
#rm –vf
/etc/yum.repo.d/*
4. Change directory to /repodata/
#cd /myrepo/
5.
#Rpm –ivh vsftpd-<>.rpm
6.
#Rpm –ivh deltarpm-<>.rpm
7.
#rpm –ivh
python-delta<>.rpm
8.
#rpm –ivh create<>.rpm
# Createrepo - -database /repodata/
#vi
/etc/yum.repos.d/akshay.repo
Then add the following Details in the File
“ [akshay]
Name=akshay
Baseurl=file:///myrepo
Gpgcheck=0
11.
Also edit the /etc/yum.conf file, And make sure
the value for gpgcheck is 0.
1.
Check the Repolist
#yum repolist
Now try to install any package
Done !!!!!!!!!!!!!!
;)