CentOS / RHEL 7 : How to Install and Configure Yum Server Using FTP




Step:- 1.   View mount

      #mount

Step:- 2.  Mount Disk ( /dev/sr0 ) to /mnt

      #mount /dev/sr0 /mnt

Step:- 3.  See the Packages in /mnt Directory

      #ls –l /mnt

Step:- 4.  View repos or yum.repos file

     #ls –l /etc/yum.repos.d

Step:- 5.  Remove previous package directory from yum.repo

     #rm /etc/yum.repos.d/Packageit.....

Step:- 6.  Do some modification in yum.repo file

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

     [base]

     base url= ftp://192.168.1.1/pub

     enabled=1

     gpgcheck=0


Save and exit

Here, 192.168.1.1 is my Server IP-Address

Step:- 7.  For starting ftp services

     #rpm –qa vsftpd

     #rpm –ivh /mnt/packages/vsftpd (press TAB key)

     Chk ftp folder created or not (ftp/pub)

     #ls –l /var/ftp/pub

Step:- 8.  Copy the mounted data int ftp/pub directory::

     #cp –rv /mnt/* /var/ftp/pub (rv=recursive varbose)

Step:- 9.  Unmount the data from mount directory

      #unmount /mnt

Step:- 10. To start the ftp services

      #systemctl start vsftpd

Step:- 11. To enable the ftp services

      #systemctl enable vsftpd

 Step:- 12. To verify go to browser and Search 

      ftp://192.168.1.1/ftp/pub
















No comments:

Post a Comment

T he primary difference is that  Linux  and  Unix  are two different Operating Systems though they both have some common commands. Let...