Yum Server Configuration

YUM (Yellowdog Updater Modified) is an open source command-line as well as graphical based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrator to easily install, update, remove or search software packages on a systems. It was developed and released by Seth Vidal under GPL (General Public License) as an open source, means anyone can allowed to download and access the code to fix bugs and develop customized packages. YUM uses numerous third party repositories to install packages automatically by resolving their dependencies issues.

Our Sample Scenario

Server name – dlp.server.world

Server IP – 192.168.0.100

Client namehttp://www.server.world

Client IP address – 192.168.0.101

Required Package to Install on server – Python-deltarpm, deltarpm, libxm12-python, vsftpd-3.0, vsftpd-sys

Step 1 : To install all the above packages we have to  mount the iso of the cent os

# mount /dev/sr0   /mnt/varnit

1.png

Now open the packages folder from the mounted drive

1.png

1.png

Step 2 : install the packages using the below command

# rpm   -ivh   deltarpm-3.6

1.png

# rpm    -ivh    python-deltarpm

1.png

# rpm   -ivh  libxm12-python

1

# rpm   -ivh createrepo

1.png

# rpm  -ivh   vsftpd-3.0

# rpm  -ivh vsftpd-sys

1

Step 3 : Firstly restart the vsftp services on the server

# systemctl  start vsftpd

# systemctl enable vsftpd

1.png

# systemctl status vsftpd ( To check the service is running or not)

1.png

Step 4 : Now create any directory and copy the packages , so that we can make the local repository

# mkdir  /var/ftp/pub/localrepo

# cp /mnt/varnit/Packages/*.*  /var/ftp/pub/localrepo/

1.png

Step 5 : Now create a repo file in yum repository

# cd /etc/yum.repo.d

# vi  localrepo.repo

[localrepo]

Name=local reposiroty

baseurl=file:///var/ftp/pub/localrepo

enabled=1

gpgcheck=0

1

1.png

Step 6 : Now build the repo file using the below command

# cd  /var/ftp/pub/

# createrepo   -v localrepo

1.png

1.png

1.png

Step 7 :Now we have to update the repolist using the below command

1.png

Step 8 : Install the package using yum command and it will search for the local repository which we had created recently.

1.png

Step 9 : we have to configure the client server for the yum, so that we can retrieve the package from the yum server, Install the same packages which we have installed in the server.

Step 10 : Create the client file in the yum client

# cd  /etc/yum.repos.d

# vi clientrepo.repo

[clientrepo]

Name = client repository

Baseurl = ftp://192.168.0.100/pub/localrepo

Enabled=1

Gpgcheck=0

1.png

1.png

# yum repolist

1.png

Step 11 : Now Install the package

# yum –y install vim-enhanced

1.png

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Yum installed successfully!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.