Yum Software Management yum (Yellowdog updater,modified) is a RPM front-end program designed to automatically solve the dependency problem of RPM. Its characteristics are as follows:
Automatically resolve dependencies
You can group RPMs and install actions based on groups
Introduction of warehouse concepts to support multiple warehouses
Simple configuration
Yum introduces the concept of warehouse, which is used to store all existing RPM packages, and when a RPM software is installed using RPM, if there is a dependency, it will automatically find the dependent software in the warehouse and install
Warehouses can be local, or they can use a centralized, unified network repository via HTTP, FTP, or NFS.
Yum Warehouse Yum uses the warehouse management RPM package, and the warehouse configuration file is saved in the/etc/yum.repos.d/directory, in the following format:
[Linuxcast]
Name=this is linuxcast.net rpm soft repo
baseurl=*****
Enabled=1
Gpgcheck=1
Warehouses can use file, HTTP, FTP, NFS
Yum configuration file must end with. Repo
You can save configuration information for multiple warehouses in a single configuration file
More than one configuration file can exist in the/etc/yum.repos.d/directory
Yum basic commands Yum install sname installation of specified software
Yum Remove sname uninstalling the specified software
Yum Update sname upgrade specified software
Yum Query
Use Yum for query operations with the following command
Yum Search keyword
Yum list (all|install|recent|updates) lists all, installed, recent, software updates
Yum Info PackageName Displays information about the specified software
Yum whatprovieds filename queries which software contains the target file
Create a yum warehouse by manually creating a yum warehouse in the following ways:
1. Copy all rpm files to a folder
2. Manually install the Createrepo software via the rpm command
3. Run the command createrepo-v/rpm-directory
4. If you have grouping information, specify the grouping file using the-G parameter when you run the command
Createrepo-g/tmp/*comps.xml/rpm-directory
Centos/rhel group information is saved in the CD repodata/directory, and the file name ends with Comps.xml XML file
After creation, the machine can be used directly through file mode, if needed as an external Yum warehouse server, can be through HTTP, FTP or NFS protocol.
Linux installation CD-ROM is very large
Because all RPM packages are in the CD, but we only use a part of the installation time, so the installation of the system is much smaller than the disc, packages/saved all the RPM, if you need to establish a local Yum warehouse, only need to packages/from the CD The RPM installation in the directory is a copy of the target file, and Yum indexes the files. The RMP package in the CD-ROM basically already covers our commonly used software. Use the Createrepo command to create an index of the file.
Yum Clear Cache Yum Clean all
Basics of Linux Primer--linux Software Management Fundamentals: YUM