Set up FTP-based yum sources in Linux

Source: Internet
Author: User
First install the FTP service program: yuminstall-yvsftpd & nbsp; (only part of the screenshot) and then start ftp, set ftp to automatically start servicevsftpdstartchkconfigvsftpdon, and create the install folder under the ftp pub folder (this folder can be named arbitrarily) and

First install the FTP service program:

Yum install-y vsftpd (partial only)

Start ftp and set ftp to automatic startup.

Service vsftpd start

Chkconfig vsftpd on

Create the install folder under the ftp pub folder (this folder can be named as needed)

Enter the package directory and test the package to the install directory created above.

Directory where cd/package is stored

Cp-a./var/ftp/pub/install

Copy the group file to any Directory (I am using the tmp directory)

Cp/var/ftp/pub/repodata/xxxx. xml/tmp

Delete the repodata folder and content under install

Rm-f-r repodata/(I have already installed the directory)

Install createrepo first

Then run createrepo-g/tmp/xxxx. xml/vat/ftp/pub/install /.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.