Top Ad unit 728 × 90

Latest updates

recent

YUM SERVER


###### TO CONFIGURE YUM SERVER ######

'Step 1:-Insert the OS DVD & Install the Ftp Package'
# cd /run/media/root (to access os dvd)
# ls (to check)
# cd Centos_7 (dvd name)
# cd Packages (access packages location)
# rpm -ivh vsftpd* (install ftp package)
# cd /var/ftp/pub
# mkdir centos7 (create new dir for packages)
# cd (come out)

'Step 2:-Copy All Packages from DVD in the Self System'
# cp -rv /run/media/root/Centos_7/Packages /var/ftp/pub/centos7

'Step 3:-Create Repositry(Database) in Self System'
# createrepo -g /media/Centos_7/repodata/repomd.xml
/var/ftp/pub/centos7/Packages (to create database)

'Step 4:-Edit the M.C.F'
# vi /etc/yum.repos.d/CentOS-Base.repo
Except 1st Paragraph - Remove all Paragraphs
Remove mirriorlist line from 1st Paragraph
Remove # sign from baseurl line & do the modification as
given below in baseurl line
baseurl=ftp://selfsystem_ip/pub/centos7/Packages
enabled=1 <----add this line
:wq(save & quit the file)

'Step 5:-Restart the FTP Service'
# service vsftpd restart
# systemctl enable vsftpd.service
# yum clean all (to refresh)
# yum update all (to update the database)

'Step 6:-Install any Package Using YUM COMMAND'
# yum install bind* (for example)
YUM SERVER Reviewed by Unknown on 10:45 AM Rating: 5
© 2007 - 2016. All Rights Reserved by Babashaheer Blog

Contact Form

Name

Email *

Message *

Powered by Blogger.