YUM Server Configuration in Redhat
YUM stands for Yellow dog Updater Modified, YUM make it easier to install, update and remove RPM. YUM automatically resolve software dependencies.
Step 1:
Install createrepo and vsftpd from the DVD for creating repository.
#rpm -ivh createrepo.rpm
#rpm -ivh vsftpd.rpm (for FTP server)
Step 2:
Copy Packages folder form the DVD and paste over the hard disk
#cp -a Packages /var/ftp/pub
Step 3:
Run below command to create repository
#createrepo -v /var/ftp/pub/Packages
It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of your machine.
Step 4:
configure YUM client by creating .repo file inside /etc/yum.repos.d/
#vim /etc/yum.repos.d/tecgeeks.repo
[TecGeeks]
name=redhat (or any name)
baseurl=ftp://192.168.198.128/pub/ (Give the Ipaddress of the YUM server)
gpgcheck=0
enabled=1
:wq
Step 5:
Start the service and Verify using below command
#service vsftpd restart
#yum repolist (just for verification)
#yum install gcc (just for an example)
Step 1:
Install createrepo and vsftpd from the DVD for creating repository.
#rpm -ivh createrepo.rpm
#rpm -ivh vsftpd.rpm (for FTP server)
Step 2:
Copy Packages folder form the DVD and paste over the hard disk
#cp -a Packages /var/ftp/pub
Step 3:
Run below command to create repository
#createrepo -v /var/ftp/pub/Packages
It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of your machine.
Step 4:
configure YUM client by creating .repo file inside /etc/yum.repos.d/
#vim /etc/yum.repos.d/tecgeeks.repo
[TecGeeks]
name=redhat (or any name)
baseurl=ftp://192.168.198.128/pub/ (Give the Ipaddress of the YUM server)
gpgcheck=0
enabled=1
:wq
Step 5:
Start the service and Verify using below command
#service vsftpd restart
#yum repolist (just for verification)
#yum install gcc (just for an example)
YUM Server Configuration in Redhat
Reviewed by TecGeeks News
on
April 09, 2016
Rating:

No comments: