Linux system yum command function introduction

  
                

Linux has a variety of commands, and yum is one of the most commonly used commands. Use the yum command to find and install and update software. So what are the specific functions of the yum command?

I. Introduction

yum (called the Yellow dog Updater, Modified) is a front-end package Shell manager in Fedora and RedHat and SUSE are. Based on RPM package management, the RPM package can be automatically downloaded and installed from the specified server. The dependency relationship can be handled automatically, and all dependent software packages can be installed at one time without having to download and install it one by one. Yum provides commands for finding, installing, and deleting one, a group, or even all packages, and the commands are simple and easy to remember.

Second, function

Automatic search for the fastest image plugin: yum install yum-fastestmirror

Install yum graphics window plugin: yum install yumex

View possible List of batch installations: yum grouplist

1) Find and display

yum search string Find installation packages based on keyword string

yum deplist package1 View program package1 dependencies

yum info package1 Display package information package1

yum list Show all installed and installable packages

yum list installed View installed packages

Yum list package1 shows the specified package installation package1

yum list all lists all the software in the YUM repository

yum groupinfo group1 shows the program group group1 information

yum provides nginx Software Features

yum whatprovides filename See which rpm file contains the specified target file

2)Installation

yum install Install all

Yum install package1 install the specified installation package package1

yum localinstall software name.rpm install local package

yum groupinsall group1 installer group group1

3) update

yum check-update check for updatable programs

yum update all updates

yum update package1 update specified package package1

yum --exclude=package kernel* update Exclude individual software upgrades

yum localupdate update-package.rpm Upgrade local packages

yum groupupdate group1 upgrade program group group1

4) Uninstall

yum remove Package1

yum erase package1 Remove package package1

yum groupremove group1 Delete program group group1

5) Clear cache

yum clean packages Clear cache directory Package

yum clean headers Clear the headers in the cache directory

yum clean oldheaders Clear the old headers in the cache directory

yum clean,

yum Clean All (= yum clean packages; yum clean oldheaders) Clear the packages in the cache directory and the old headers

6) Enable and disable the source

yum --enablerepo=epel install rsnapshot

yum --disablerepo=epel install Software Name

The above is the introduction of the function of the yum command. The yum command has such a versatility, and the depressed command will not make people feel depressed.

Copyright © Windows knowledge All Rights Reserved