linux-() Yum Software Warehouse

Source: Internet
Author: User

YUM (Yellowdog Update Modified) is a RPM front-end program designed to automatically solve the dependency problem of RPM. RPM Package Form management software, although convenient, but need to manually solve the dependencies of the package, many times to install a software need to first install 1 or more (even hundreds) of other software, manual resolution is very complex.

Yum introduces the concept of warehouse (repo), which is used to store all RPM packages, and when installing a RPM software with Yum, if there is a dependency, it will automatically find the dependent software in the repository and install it. The repository can be local, or it can use a centralized, unified network repository via HTTP, FTP, or NFS.

Yum uses the warehouse save management RPM package, and the repository's configuration file is stored in the/etc/yum.repos.d/directory, in the following format:

[Virtual-box] name=this is virtualbox rpm soft repo baseurl=http://... enabled=1  # (1 enabled, 0 disabled) gpgcheck=1 # (whether or not to submit)
Configuration file Rules:

Warehouses can use file, HTTP, NFS

Yum configuration file must end with. reop

You can save configuration information for multiple warehouses in a single configuration file

Multiple configuration files can be saved in the/etc/yum.repos.d/directory

Mirrorlist can dynamically get BaseURL


The basic use of YUM commands:

Install the specified software: Yum install Software-name

Uninstalling the specified software: Yum remove Software-name

Upgrade specified software: Yum update software-name


Yum query:

Search: Yum search keyword

List all/installed/recent/Updated Software: Yum list all/installed/recent/updates

Display specified software information: Yum info packagename

Query which RPM software contains the target file: Yum whatprovides fileName


We can also manually create a Yum repository, which is easy to use:

Copy all rpm files to a directory

Manual installation of Createrepo software via RPM command

Run command createrepo-v/rpm-directory

If you have grouping information, specify the grouping file with the-G parameter when you run the command: Createrepo-g/tmp/*comps.xml/rpm-directory

Centos/redhat group information is saved in the System CD repodata/directory, the file name ends with Comps.xml XML file

After creation, the machine can be used directly through file mode, if needed as a foreign Yum warehouse server, can be shared through HTTP, FTP or NFS protocol


Yum caches a lot of information in order to increase its speed, but sometimes the cache causes some failures, and the cache can be cleared with the following command: Yum clean all

But the cache is rebuilt each time the installation or query is run


Reprint please indicate the source

Http://blog.csdn.net/redstarofsleep

linux-() Yum Software Warehouse

Related Article

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.