Linux basics-linux software management basics: YUM, linuxyum

Source: Internet
Author: User

Linux basics-linux software management basics: YUM, linuxyum
YUM software management YUM (yellowdog Updater, modified) is an RPM front-end program designed to automatically resolve RPM dependency issues. Its features are as follows:
Automatically resolves Dependencies
You can group the RPM and install the RPM based on the group.
Introduces the concept of warehouse and supports multiple warehouses.
Easy Configuration
YUM introduces the concept of repository, which is used to store all existing rpm software packages. When an rpm software is installed using rpm, if there is a dependency, it will automatically find and install the dependency software in the repository.
The repository can be local, or centralized and unified network repository can be used through http, ftp, or NFS.
The YUM repository yum uses the repository to manage rpm packages. The repository configuration files are stored in the/etc/yum. repos. d/directory. The format is as follows:
[LinuxCast]
Name = This is linuxCast.net rpm soft repo
Baseurl = *****
Enabled = 1
Gpgcheck = 1
The repository can be file, http, ftp, or nfs.
The yum configuration file must end with. repo
Configuration information of multiple repositories can be saved in one configuration file.
Multiple configuration files can exist in the/etc/yum. repos. d/directory.
YUM basic command yum install sname install specified Software
Yum remove sname uninstall specified Software
Yum update sname upgrade specified Software
YUM Query
Run the following command to use yum for query
Yum search keyword search
Yum list (all | install | recent | updates) lists all, installed, recent, and software updates
Yum info packagename displays information about the specified Software
Yum whatprovieds filename queries which software contains the target file
Create a YUM repository manually by using the following methods:
1. Copy all rpm files to a folder.
2. Run the rpm command to manually install the createrepo software.
3. Run the createrepo-v/rpm-directory command.
4. If the group information exists, use the-g parameter to specify the group file when running the command.
Createrepo-g/tmp/* comps. xml/rpm-directory
The group information of CentOS/RHEL is stored in the repodata/directory of the disc. The file name is an xml file ending with comps. xml.
After being created, the local machine can be directly used in file mode. If you need to be an external YUM repository server, you can use http, ftp, or NFS protocol.
The installation CD for linux is very large.
Because all the rpm installation packages are in the CD, but we only use a part of the installation, the installed system is much smaller than the CD, packages/stores all the rpm, to create a local YUM repository, you only need to copy the rpm installation in the packages/directory from the disc to the target file. YUM indexes these files. The rmp package in the CD has basically covered our commonly used software. Use the createrepo command to create an index for a file.
YUM clear cache yum clean all

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.