Home  >  Article  >  php教程  >  yum command

yum command

高洛峰
高洛峰Original
2016-12-13 10:43:391281browse

The yum command is an rpm-based software package manager in Fedora, RedHat and SUSE. It allows system administrators to interactively and automatically manage RPM packages in a more detailed manner. It can automatically download and install RPM packages from a designated server. Automatically handle dependencies and install all dependent software packages at once, eliminating the need to download and install them again and again.

yum provides commands to find, install, and delete a certain, a group, or even all software packages, and the commands are simple and easy to remember.

Syntax
yum (options) (parameters)

Options

-h: Display help information;

-y: Answer "yes" to all questions;

-c: Specify the configuration file;

- q: Quiet mode;

-v: Verbose mode;

-d: Set debugging level (0-10);

-e: Set error level (0-10);

-R: Set yum to process one The maximum waiting time for the command;

-C: Run completely from the cache without downloading or updating any header files.

Parameters

install: install the rpm package;

update: update the rpm package;

check-update: check if there is an updated rpm package available;

remove: delete the specified rpm package;

list: Display package information;

search: Check package information;

info: Display description information and summary information of the specified rpm package;

clean: Clean yum's expired cache;

shell: Enter yum's shell prompt;

resolvedep: displays dependencies of rpm packages;

localinstall: installs local rpm packages;

localupdate: displays local rpm packages for updates;

deplist: displays rpm packages All dependencies.

Instances

Some commonly used commands include:

Automatically search for the fastest mirror plug-in: yum install yum-fastestmirror

Install yum graphical window plug-in: yum install yumex

View the list of possible batch installations: yum grouplist

Install
yum install #All installation

yum install package1 #Install the specified installation package package1

yum groupinsall group1 #Installation program group group1


Update and upgrade
yum update #All update

yum update package1 #Update the specified package package1

yum check-update #Check for updateable programs

yum upgrade package1 #Upgrade the specified package package1

yum groupupdategroup1 #Upgrade program group group1


Find and display

yum info package1 #Display the installation package Information package1

yum list #Display all installed and installable packages

yum list package1 #Display the installation status of the specified package package1

yum groupinfo group1 #Display program group group1 information

yum search string according to keyword string Find the installation package

Delete the program

yum remove | erase package1 #Delete the program package package1

yum groupremove group1 #Delete the program group group1

yum deplist package1 #View the program package1 dependency

Clear the cache

yum clean packages # Clear the software packages in the cache directory

yum clean headers #Clear the headers in the cache directory

yum clean oldheaders #Clear the old headers in the cache directory


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn