How to make yum server using ftp?

Server Configuration:

1. First install vsftpd package for ftp server.
#yum  install  vsftpd

or we can install vsftpd package using rpm command as given below
#rpm  -ivh  vsftpd-x.x.x.x

2. Insert the RHEL dvd and copy the entire content in /var/ftp/pub folder
#mount  /dev/cdrom  /mnt
#cd  /mnt
#cp  -rf  *  /var/ftp/pub

3. Now start the ftp service using below command.
#service  vsftpd  start

4.Run chkconfig  to start service automatically during the system start-up.
#chkconfig  vsftpd  on

Now your yum server is ready to use

Client Configuration:

1. Go into /etc/yum.repos.d/ folder and do the below changes in your repo file.

[rhel-source]
name=Red hat Enterprise Linux $releasever - $basearch - Source
baseurl=ftp://IP_of_YUM_SERVER/pub/Server
enabled=1
gpgcheck=0

2. Run below command 
#yum  clean  all

3. Now test yum server by installing any package using yum command.
#yum  install  package_name


No comments:

Post a Comment