YUM SERVER Configuration
Yum is a yellow dog update manager it is a new package manager introduced by redhat with RHEL5 in year 2007 but now in RHEL6 they also have this facility to manage the packages. By using YUM we can manage the packages in many ways. YUM is always working in Server /Client environment. To configure YUM Server and Client perform the steps given below.
Server Side:--
1)Insert RHEL6 Dvd & mount it on /media directory
2) Copy dvd in /var/ftp/pub directory
#cp –rv /media/RHEL(then press tab) /var/ftp/pub
3) Create server repository in /etc/yum.repos.d/server.repo
#vim /etc/yum.repos.d/server.repo ------Type in this file below lines
[server]
name=server repository
baseurl=file:///var/ftp/pub/Packages
gpgcheck=0
save this file by :---> esc, shift+: wq
4) Then Goto
#cd /var/ftp/pub/Packages
5) Then Install the createrepo Package with dependencies
#rpm –ivh createrepo* python-deltarpm* deltarpm*
6) Then Create Repository
#createrepo –v /var/ftp/pub/Packages
7) To check yum server
#yum list To check yum server
NOTE : Because YUM only can be configured either by using FTP or HTTP
For ftp you want to install the vsftpd package
# rmp -ivh vsftpd<tab>
#service vsftpd restart
#chkconfig vsftpd on
Client Side:-
1) Create client.repo file in /etc/yum.repos.d/
#vim /etc/yum.repos.d/client.repo
{press i for insert}
[client]
name=Client Repository
base=ftp://ip of server/pub/Packages
gpgcheck=0
save this file by :---> esc, shift+: wq
2) Check yum server
#yum list <PackageName>
# rmp -ivh vsftpd<tab>
#service vsftpd restart
#chkconfig vsftpd on
To Clear Previous Cache and Update Packages---------------->
#Yum clean all
#Yum update <PackageName>
To See all Packages:---------->
#yum list all
To See Package Information:-------------->
#yum info <PackageName>
To Install Package :---------->
#yum install <PackageName>
example:-> #yum install nfs*
By Vinay Bisht
No comments:
Post a Comment