Linux System program installation (i) Yum tools

Source: Internet
Author: User
Tags database issues

Yum Installation tool is similar to AppStore, the Yum tool can be used to easily download the required programs, while the Yum tool will automatically check the program dependencies, and install the appropriate dependency package, a bit like windows, some large software installation program will automatically check to help you install programs required to run the VC library, Diretx program, to achieve the goal of installation can be used.

First, Yum Tools

Tool Syntax: Yum [options] COMMAND +pakage name
More general commands than a command parameter, we often execute the Yum install command, install is the command.

Command
Check for RPM database issues
Check-update Check if a package update is available
Clean Delete cached data
Deplist list dependencies for packages
Distribution-synchronization synchronized packages to the latest available version
Downgrade downgrade Package
Erase removing one or more packages from the system
Groups display or use, group information
Help Display usage Tips
History displays or uses transaction histories
Info displays detailed information about the package or group
Install one or more packages to the system
List lists one or a group of packages
Load-transaction loading a saved transaction from the file name
Makecache Creating a metadata cache
Provides find the package that provides the specified content
Reinstall Overwrite installation package
repo-pkgs a source as a package group so that we can install/remove all packages at once.
Repolist displaying the configured source
Search searches the package details for the specified string
Shell runs the interactive Yum Shell
Swap simple-to-swap packages, instead of using shell
update updates One or more packages in the system (note the difference from Upgarade)
Updateinfo Acts on repository update information
The upgrade update package also considers the package substitution relationship
Version displays the machine and/or the available source versions.

Yum Tool Installer Package application Example
1. List the RPM packages available in the repo source
Command: Yum list
The output of this command is divided into two parts, one is the package which is already installed in your system, the other is the package that can be installed on your repo source, we can output the result to a file view.

Look at the results of the output

2. Find RPM Packages by keyword
Command: Yum Search "command to find" or Yum list | grep ' command to find '


The latter way is better, but also to mark out the keywords

3, according to the command to find which RPM package provided by
Command: Yum provides ' command ' (note is the third person singular "provides", not the verb prototype "provide", do not miss the letter)

4. Install a RPM package
Command: Yum install package name (so easy! )

5. Uninstall a RPM Package
Command: Yum Remove package name or Yum Erase package name
Note Yum uninstalls packages and dependent packages, sometimes dangerous, unloads some key components, and it is best not to add the-Y auto-confirm option when using the command

6.

Linux System program installation (i) Yum tools

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.