Create Local YUM repository on RHEL 7 using DVD:
YUM (Yellowdog Updater Modified) is the package management tool that helps you to install or update the package through the network or local, at the same time it provides easy method to install a package with it’s dependent packages.
Yum Configuration files are under the /etc/yum.conf that contains the global options such as cache directory,log directory.
Repository Source:
Repository sources can be created either using createrepo package or mounting the DVD on the directory.
1. Mount the DVD ROM on the any directory as you want, for testing mount it on /rhel7.
# mkdir /rhel7
# mount /dev/cdrom/rhel7
2. Create the new repo file called client.repo under /etc/yum.repos.d directory.
# vim /etc/yum.repos.d/client.repo
3. Add the following details in client.repo file and save it.
[LocalRepo] (Name of the Section)
name=Local Repository (Name of the repository)
baseurl=file:///rhel7 (Location of the package)
enabled=1 (Enable repository)
gpgcheck=0 (Enable secure installation)
4. After that clean the cache of yum.
#yum clean all
5. now create new cache for yum.
#yum list all
5. Now your Local Yum Repository is ready for use.
for example : install package of http
#yum install httpd
No comments:
Post a Comment