- April 13, 2017
- Posted by: Digiminds
- Category: Linux
YUM (Yellowdog Updater Modified) server is used for package installation for the client or local system while we use rpm(RedHat Package Manager) some packages are dependent on other so entire packages are not installed so we use yum server. YUMserver removes dependencies of packages
HOW TO INSTALL YUM
First, we have to connect the CD-ROM or iso image to system or server
Step-1: mount /dev/sr0 <space>/mnt
where your DVD or iso image is saved in VMware it is saved in /dev/sr0 or /dev/cdrom and /mnt is used for mounting the folder you can take any folder.
Step-2: cd<space>/mnt
Go to your mounting folder or /mnt
Step-3: ls
To check what content is saved in mnt
Step-4: cd Packages/
In rhel7, these packages are stored in Packages/ or in rhel6 server/ folder
Step-5: rpm -ivh createrepo-0.9.9-23.el7.noarch.rpm
It is createrepo packages for creating repository
Step-6: rpm -ivh vsftpd-3.0.2-9.el7.x86_64.rpm
It is used for ftp package installation
Step-7: cd /etc/yum.repos.d/
Go to yum.repos directory
Step-8: vi server.repo
Making server.repo file for redirecting yum server to that baseurl
Step-9: entries in server.repo
[server]
name=rhel
baseurl=file:///mnt
gpgcheck=1
enabled=1
Step-10: save and quit
Step-11: cd<space>/mnt
Step-12: rpm –import RPM-GPG-KEY-redhat-release
import the redhat key for yum server
now
Step-13: yum install http*
Installing all http packages
YUM server is installed in local server.
How to know that what repository in particular repo if there are multiple repos are configured on server with different linux release?