The concept of Yum:
Yum belongs to the package Manager in the Linux operating system, which is called Yellow Dog updater,modified, based on the RPM package management, automatically resolves the dependencies between packages during the installation of the package, and installs all dependent packages at once.
Advantages of Yum:
RPM in the process of installing the package can not solve the relationship between the RPM package, and Yum is based on the RPM package management, can solve the dependencies between the package, user-friendly users. And the command operation is relatively simple.
Classification and application of Yum:
The workflow of network Yum:
Network yum: In a large network, build Yum server, provide other client installation Yum use,
Server side: All the RPM packages are stored on the server, then the dependencies of each RPM file are analyzed with related functions, and the data is recorded as files in a specific directory of the server.
Client: If you need to install a software, first download the server records of the dependency of the file (can be www or FTP), through the server-side download record data analysis, and then get all the relevant software, download all at once to install.
However, a Yum server is often deployed in a local area network so that it travels faster.
Local Yum: Use CD-ROM to configure Yum on this computer.
Yum's function:
Yum has 4 main functions: Install, uninstall, verify, update
Yum's command form:
Yum [options] [command] [package ...]
Options are optional, including-H (Help),-y (when the installation prompts you to select all "Yes"), Q (does not display the installation process), and so on. [command] for the action to be taken, [package ...] Is the object of the operation.
Yum command parameters detailed list:
-Y will no longer prompt for installation
Yum repolist
Yum List all lists all packages
Yum Clean all clears the client yum cache
Yum list avaliable |grep httpd (service name) view packages that are not installed
Yum List installed view packages that have been installed
Yum Info Package Name to view all information installed and not installed packages can be seen
Yum Install package name installation package
Yum install [-y] Package 1 pack N Installation
Yum Remove Package Name Delete Package
Yum Group list all view installed software groups (software groups are made up of a number of packages)
Yum Groupinstall installation software group
Yum groupupdate Group name Update Software group
Yum Groupremove Group name Delete software group
Yum Localinstall file name-nogpgcheck install local files, use the network yum to install the need for Localinstall (this is noteworthy, easy to overlook)
Yum Deplist <packages> display dependency information for software packages
Yum List Extras lists the RPM packages that have been installed but are not included in the repository
Yum List Extras <regex> lists the RPM packages that have been installed that match the regular expression but are not included in the repository
Yum List recent lists the packages that were recently added to the repository
Yum Search <regex> detect the names, descriptions, overviews, and listed maintainers of all available software, and find values that match regular expressions
Yum provides <regex> detection package contains files and software provides functionality to find values that match regular expressions
Yum clean headers clears the RPM header file in the cache
Yum Clean packages purge cache of RPM package files
Special Combat Applications:
Yum Server package Update
If the package in the server is updated, then we need to update the packages in each warehouse so we need to start from the new package, then we need to install createrepo-0.4.11-3.e15.noarch.rpm let/mnt/cdrom/server/repodata/ Comps-rhel5-server-core.xml files Regenerate primary and then empty the cache, yum clean all so that server-side updated files can be seen by the client.