Linux Network Service 11--deployment Yum Warehouse Service

Source: Internet
Author: User

Linux Network services --Deploy YUM Warehouse Services I. introduction of YUM

YUMthe predecessor isYUP(Yellow Dog Updater)Yellow Dog Linuxsoftware updates, initially byTSSCompany (Terra Soft solutions,inc.) usingPythonVoice developed, and later by Duke University (Duck University) ofLinuxThe development team was improved, namedYUM(Yellow Dog Updater, Modified)

with the help of The YUM repository, which can be used to install, uninstall, and automatically upgrade rpm Packages , can automatically find and resolve dependencies between RPM packets without the need for an administrator to install each of them individually and manually rpm package makes it easier for administrators to maintain a large number of Linux servers. In particular , in a local network with a large number of Linux hosts, building a single source server can greatly alleviate the reliance on the Internet for software installation, upgrades, and so on .

Second, the YUM server building

1.YUM Server Overview

The YUM repositories are typically published with an HTTP or FTP Protocol, which provides software source services for all clients in the network. In order to facilitate the client to query the package, to obtain information such as dependencies, in the software warehouse need to provide warehouse data (repodata), which collects the directory of all rpm packet header information.

2. Prepare the network installation source (server side)

(1) prepare the Software repository directory

1> packages in CD-ROM

Copy CentOS 6.5 First CD content to the local FTP Server Anonymous Access user's root directory

2> Other Packages

(2) Install and start the vsftpd service

Install and start the VSFTPD service (see the FTP Service Section for details)

3. Configure the Software warehouse location (client side)

(1) Typical warehouse configuration

1> Intranet YUM Source

Test

Note: Because the Ksh package exists on the disc, you need to modify the repo file to recreate the yum cache before installing the test, otherwise the package on the CD is installed.

2> Public network YUM Source

Test, slightly. Note that the client is guaranteed to have access to the extranet.

(2) using a local folder as a repository

Test

Third,the Yum command

1. Basic Operation

(1) query Package list:yum list,yum grouplist

Yum List installed query for installed packages

Yum list available queries for packages that can be installed (not installed)

(2) Description information of the query package:Yum info Package name

(3) Query the specified package:Yum search package name

(4) clearing the yum cache:yum-y Clean All

(5) rebuilding the yum cache:yum Makecache

2. Operation for a single installation package

(1) Installation:yum-y Install

(2) Uninstall:yum-y Remove or yum-y erase

(3) Upgrade:yum-y Update

3, for the installation package group Operation

(1) Installation:yum-y groupinstall " package group name "

(2) Uninstall:yum-y groupremove

(3) Upgrade:yum-y groupupdate

the option -y means no interaction and the answer is Yes.

Linux Network Service 11--deploying Yum Warehouse Services

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.