Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux builds a private yum software package server

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Yum (Yellow dog Updater, Modified) is a Shell front-end package manager in Fedora and RedHat as well as in CentOS. Based on RPM package management, RPM packages can be downloaded and installed automatically from designated servers, dependencies can be automatically dealt with, and all dependent software packages can be installed at one time without tedious downloading and installation. But the general yum is provided by the official server is its fixed software package, some third-party software packages and some god-written software packages can not be put into it, how to create a private yum software repository in an enterprise? The previous blog gave an overview of the local yum source setup (https://blog.51cto.com/14451009/2429563), and here is an overview of how to build a yum server for remote host access.

Experimental environment: VMware has two Linux systems, one for the server and one for the client, and also prepares an installation image of Linux (centos).

First prepare the Linux system for two virtual machines, the first host name is Linux01,IP address 192.168.220.145, as the server.

The second host is named Linux02,IP and the address is 192.168.220.146 as the server.

The system is ready, and then add the installation image file to the optical drive of the VMware virtual machine.

Use the mount / dev/cdrom / mnt command to mount the CD file to the mnt directory, and then use the df-hT command to check the mount status.

Then you need to install a service package named vsftpd, which can be installed directly using the yum-y install vsftpd command here.

After the package is installed, a default site directory, the ftp folder in the following figure, is automatically generated under the / var directory.

Create a directory in the site directory to store the image files, linux, and copy all the contents of the image files to the linux directory.

In order to simulate the real needs, out of the official software package pool, Ning Wai also creates a site directory of third-party software packages. Here, create an other directory and make it recognized by the yum configuration file.

Next, turn off the firewall and security functions, and then turn on the service. At this point, the configuration of the server is complete, and the next step is to set up the client.

After entering the client settings, first install a functional option of ftp, and then test whether you can access the server service normally.

Next, have the ftp tool test whether the site directory provided by the server can be accessed properly.

The next step is to modify the client's yum configuration file and back up all the original configuration files first.

Test whether the Apache package can be installed after the backup is complete, and find that it can no longer be installed normally.

Next, use vim linux.repo to create a new configuration file, write the corresponding data in it, and then type "wq" to save and exit.

The specific configuration is written as follows:

Then type yum clean all to clear the original yum cache, and then use yum list to retrieve the list of yum sources.

Finally, you have successfully obtained a list of yum packages on the private yum source server.

Then an attempt was made to install an Apache service, which was also successfully installed.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report