Yum Server Configuration in Redhat7

Yum : Stand for Yellowdog Updater Modified which is package management Utility running the linux Operating System using the RPM Package manager .

My Scenario
Sever IP :
Client IP :

Server Side

Insert the RHEL iso in System .

#mount /dev/cdrom /mnt (mount the cdrom for me it’s /mnt)

#cd /mnt/Packages (go to Packages directory inside cdrom )

#rpm –ivh yum-*

#rpm –ivh yum-utils*

#rpm –ivh vsftpd*

Once Package installation done then copy All rpm files from /mnt/Packages to ftp directory “/var/ftp/pub”

#cp –rvf /mnt/Packages/* /var/ftp/pub (copy rpm Packages to Pub it will take some time)

#cd /var/ftp/pub

#rpm –ivh createrepo*

#service vsftpd start (Start the FTP service)

#service vsftpd status (for check the service status)

#cd /etc/yum.repos.d/

#rm * (remove the existing repo file if any)

#vim yum.repo (create a new yum repo file)

#service vsftpd restart

#systemctl enable vsftpd (retstart FTP service after configuration )

#createrepo /var/ftp/pub/ (create YUM database)

#firewall-cmd –permanent —-add-service=ftp (allow ftp service in firewall)

#firewall-cmd –reload (restart firewall service)

#yum list (for list the packages which is available in our YUM )

Great now We can install the Packages from our Local YUM Server !!

Client Side

YUM Client Configuration .

Make Sure Connectivity between server and client .

#vim /etc/yum/repos.d/yumclient.repo (Create repo file for client and give server IP )

#yum list (for list the yum servers)

All Done Now Both Yum-Server and Yum-Client has been configured Succesfully .

Leave a Reply

Your email address will not be published. Required fields are marked *