Wednesday, 3 April 2013

yum server with ftp on rhel 6




yum server and ftp  server are on 192.168.0.106

Mount the rhel 6 dvd 

[root@localhost ~]mount /dev/cdrom /mnt


Install ftp server

[root@localhost ~]cd /mnt/Server/Packages/
[root@localhost ~]rpm -ivh vsftpd-2.2.2-6.el6.i686.rpm
[root@localhost ~]service vsftpd start
[root@localhost ~] chkconfig vsftpd on

copy whole dvd at /var/ftp/pub

[root@localhost ~] cp -av /mnt/* /var/ftp/pub/


Create repo file for localhost (client)

[root@localhost ~]cd /etc/yum.repos.d/

[root@localhost ~]nano techxpert.repo

[techxpert]
baseurl=file:///var/ftp/pub
gpgcheck=0
enabled=1


[root@localhost ~]yum list
[root@localhost ~]yum install wireshark


ON client side:-

[root@localhost ~]nano  /etc/yum.repos.d/tech.repo

[tech]
baseurl=ftp://192.168.0.106/pub
gpgcheck=0
enabled=1

#baseurl=ftp://ftpserveriporname/pub


No comments:

Post a Comment