YUM (YellowDog Updater Module) Local installation and configuration step by step guide
Yum is the Red Hat package manager that is able to query information about available packages, fetch packages from configured repositories, install and uninstall them, and update an entire system to the latest available version. Yum performs automatic dependency resolution on packages you are updating, installing, or removing, and thus is able to automatically determine, fetch, and install all available dependent packages. In this article YUM ( YellowDog Updater Module ) Local installation and configuration step by step guide.
Yum can be configured with new, additional repositories, or package sources, and also provides many plug-ins which enhance and extend its capabilities. It is able to perform many of the same tasks that RPM can’t additionally, many of the command-line options are similar. Yum enables easy and simple package management on a single machine or on groups of them.
It provides secure package management by enabling GPG (Gnu Privacy Guard) signature verification on GPG-signed packages to be turned on for all package repositories or for individual repositories. When signature verification is enabled, Yum will refuse to install any packages not GPG-signed with the correct key for that repository. This means that you can trust that the RPM packages you download and install on your system are from a trusted source, such as Red Hat, and were not modified during transfer.
YUM (YellowDog Updater Module) Advantages
- Resolving dependencies automatically
- It support upgrade to next version
- Install packages securely
- Does not required to download packages separately
Local YUM Installation and Configuration Guide
If your CD/DVD media already in CD/DVD drive then simply mount using below command
[root@ArkIT ~]#mount /dev/sr0 /mnt/ mount: /dev/sr0 is write-protected, mounting read-only [root@ArkIT ~]#df -h /mnt Filesystem Size Used Avail Use% Mounted on /dev/sr0 3.7G 3.7G 0 100% /mnt Mount ISO file [root@ArkIT ~]# mount -o loop RHEL7.iso /mnt/
Note: Permanent Local YUM server copy entire Dvd content to server path.
[root@ArkIT ~]#cd /mnt/ [root@ArkIT mnt]#cp -Rv * /rpms/
Configure YUM repository
[root@ArkIT Packages]#rpm -ivh createrepo-0.9.9-23.el7.noarch.rpm Preparing... ################################# [100%] package createrepo-0.9.9-23.el7.noarch is already installed
Edit the Configuration file and add the config
[root@ArkIT ~]#cd /etc/yum.repos.d/ [root@ArkIT rpms]#vi /etc/yum.repos.d/yumserver.repo [root@ArkIT rpms]#cat /etc/yum.repos.d/yumserver.repo [RHEL7] name=DVD media baseurl=file:///rpms/ enabled=1 gpgcheck=1 gpgkey=file:///rpms/RPM-GPG-KEY-redhat-release
Verify enabled repository
[root@ArkIT ~]#yum repolist Loaded plugins: langpacks, product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. repo id repo name status !RHEL7 DVD media 4,371 repolist: 4,371 [root@ArkIT ~]#yum repolist enabled Loaded plugins: langpacks, product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. repo id repo name status !RHEL7 DVD media 4,371 repolist: 4,371
Install VNC Packages trough yum and check
[root@ArkIT ~]#yum install vnc* Loaded plugins: langpacks, product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Package tigervnc-server-1.2.80-0.30.20130314svn5065.el7.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package tigervnc.x86_64 0:1.2.80-0.30.20130314svn5065.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================ Package Arch Version Repository Size ================================================================ Installing: tigervnc x86_64 1.2.80-0.30.20130314svn5065.el7 RHEL7 212 k Transaction Summary ================================================================= Install 1 Package Total download size: 212 k Installed size: 527 k Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : tigervnc-1.2.80-0.30.20130314svn5065.el7.x86_64 1/1 Verifying : tigervnc-1.2.80-0.30.20130314svn5065.el7.x86_64 1/1 Installed: tigervnc.x86_64 0:1.2.80-0.30.20130314svn5065.el7 Complete!
Local YUM server is more useful to install and upgrade packages with automatic dependencies resolving. yellowdog updater module
Thanks for your wonderful Support and Encouragement
- Do Not Miss Interesting and Important Articles: Signin Now
- Download free PDF Books : Download Anything and Everything for Free
- Stay Connected with Us: Facebook Page | Twitt | Google Plus | LinkedIn | RSS feeds
- High Qualitfy Video Tutorials : All Videos
- Still You Have Question? : Ask Us
Click on above colored text to access appropriate page