Get the App
SLTechnology News&Howtos  ›  Servers  › 

Deploy YUM software repository

Shulou Source: shulou.com Published: 2022-06-02 02:10:08 10月01日 Update

one。 Deploy YUM software repository

To successfully use the YUM mechanism to update systems and software, you need a software repository (Repository) that contains various rpm installation package files, and the server that provides the software repository is also known as the "source" server. As long as the information such as the address of the software repository is correctly specified in the client, the software can be installed or updated through the corresponding "source" server.

YUM software repositories are usually released with the help of HTTP or FTP protocols, so that software source services can be provided to all clients in the network. In order to facilitate the client to query the software package and obtain the dependency information, it is necessary to provide warehouse data (repodata) in the software repository, in which the header information of all rpm packages under the directory is collected.

Experimental environment preparation

Computer environment preparation tool server installs vsftpd image client installs ftp

The deployment steps are as follows

Server side:

1. Install vsftpd, turn on services, set boot, turn off firewall, turn off enhanced security features

Yum-y install vsftpd

Systemctl start vsftpd

Systemctl enable vsftpd

Systemctl stop firewalled

Setenforce 0

two。 Prepare the software repository directory

Create two directories, centos and other, under / var/ftp/

3. Copy the equipped image to / var/ftp/centos

4. Create repodata data files using createrepo tools

Client

1. Move the reason file in the / etc/yum.repos.d/ directory to another directory for backup

two。 Create a file ending with .repo in the etc/yum.repos.d/ directory as follows

Tags: Software warehouse directory service customer file server information client tool preparation data environment mirror update security success two content function Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Redmi OPPO Reno NVidia Huawei