YUM software management, yum Software

Source: Internet
Author: User

YUM software management, yum Software

YUM is an RPM front-end program designed to solve the RPM dependency problem, rather than manually installing all the software on which it depends. It uses the repository to save and manage RPM packages. The repository configuration files are saved in the/etc/yum. repos. d/directory in the following format:

[Repository name]

Name = description of the basic information of the Repository (you can write it as needed, mainly for the Administrator)

Baseurl = repository path (you can use local or network file, http, ftp, and nfs. Dynamic loading path: Repository list = repository path)

Enable = 1 (1: enable the repository configuration. 0: Disable the repository configuration. If this option is not selected, it is enabled by default .)

Gpgcheck = 1 (enable verification)

Note: The yum configuration file must end with. repo.

 

Install software: yum install software-name

Uninstall software: yum remove software-name

Upgrade software: yum update software-name

Search for all software packages containing the keyword: yum search keyword (used to remember the software name)

List all/installed/latest/updated software: yum list (all/installed/recent/updates)

Display the specified software information: yum info software-name (equivalent to rpm-qi software-name)

Query which rpm software contains the target file: yum whatprovides filename

Yum caches a lot of information to improve the speed, but sometimes the cache may cause some faults. You can use the yum clean all command to clear the cache. Every time you run the installation or query command, the yum cache will be rebuilt.

 

You can manually create a local yum repository in the following ways:

1) Copy all rpm files (usually in the package directory of the installation disc) to a folder.

2) run the rpm command to manually install the createrepo software.

3) run the createrepo-v/rpm-directory command (A repodata folder is created under the current rpm Software directory, which contains the index information of all rpm software in the repository)

4) create a repository configuration file (baseurl = file: // rpm-directory absolute path)

5) if the group information exists, run the "-g" command to specify the group file.

Example: createrepo-g/tmp/* comps. xml/rpm-directory

Note: The group information of CentOS/RHEL is stored in the repodata/directory of the installation disc, and the file name ends with comps. xml.

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.