Thursday, August 23, 2012

YUM ....Server side configuration:

YUM Configuration

Server side configuration:

Step 1:

Install createrepo.rpm from the DVD for creating repository.

#rpm -ivh createrepo.rpm (Install the dependencies first, if any [eg:deltarpm, python-deltarpm])

#rpm -ivh vsftpd.rpm (for FTP server)

 

Step 2:

Copy all rpms form the DVD and past over the hard disk share them up in NFS.

#createrepo /path-to-rpms

eg:#createrepo /var/ftp/pub

It will take several minutes that depends upon the number of rpms that you have copied from the DVD specified and the configuration of yourmachine.

 

Step 3: 

#service vsftpd restart

Touch the following file with the contents specified.

#vim /etc/yum.repos.d/somename.repo

[base]

name=friendly name

baseurl=ftp://192.168.0.254/pub/  (Give the ipaddress of the YUM server) 

enabled=1

gpgcheck=0

 

Step 4: 

Use the yum server in the same machine because server is the first client of the same service most of the times the following command is used for install gcc compiler

#yum install gcc

 

Client side configuration:

Touch the following file with the contents specified.

#vim /etc/yum.repos.d/somename.repo

[base]

name=friendly name

baseurl=ftp://192.168.0.254/pub/  (Give the ipaddress of the YUM server) 

enabled=1

gpgcheck=0

 

#yum install gcc (just for an example)

 

No comments:

Post a Comment