Linux Yum Command

Source: Internet
Author: User

First, Introduction

Yum (full name Yellow dog Updater, Modified) is a shell front-end package manager in Fedora and Redhat and SuSE. Based on RPM package management, the ability to automatically download the RPM package from the specified server and install, can automatically handle dependency relationships, and install all dependent software packages at once, without the tedious download and installation. Yum provides commands to find, install, and delete one, a group, or even all of the packages, and the commands are concise and well-remembered.

Second, the function

Automatically search for the fastest image plugin:   yuminstallyum-fastestmirror install Yum graphics window plugin    :Yum Install  Yum grouplist

1) Find and display

 yum  search string   Find the installation package based on the keyword string  yum   deplist Package1 View Program Package1 dependency  yum  info   Package1 Displays the installation package information Package1  yum   list shows all packages that have been installed and can be installed  yum   List installed view installed packages  yum   list Package1 shows the installation of the specified package Package1  yum   list all lists all software in the Yum repository  yum   GroupInfo group1 Show program group group1 information  yum  provides nginx view software features 
Yum whatprovides filename to see which rpm file contains the specified target file

2) Installation

Yum Install Install all Yum Install Package1 Install the specified installation package Package1yum localinstall software name. RPM Install Local Pack
Yum groupinsall group1 Installer Group group1

3) Update

Yum check-
Yum Update All Updates Yum Update Package1 updates the specified package Package1yum --exclude=package kernel* update 排除个别软件升级
yum localupdate update-package.rpm 升级本地包
Yum groupupdate group1 upgrade program group Group1

4) Uninstall

Yum Remove Package1
Yum Erase package1 Remove package Package1 Yum groupremove group1 Remove a program group Group1

5) Clear Cache

Yum Clean Packages clears the package from the cache directory Yum clean headers Clears the headers in the cache directory Yum clean oldheaders The old headers in the cache directory Yum Clean,
Yum Yum Yum clean oldheaders) clears the cache directory of packages and the old headers

6) Enable and disable the source

Yum Install Rsnapshot Yum Install software name

Linux Yum Command

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.