Linux yum command details, Linuxyum command details

Source: Internet
Author: User

Linux yum command details, Linuxyum command details
1. Brief Introduction

Yum = Yellow dog Updater. The main function of Modified is to conveniently Add/delete/update RPM packages. it automatically solves the dependency problem of the package. similar to apt. it is easy to manage a large number of system update problems.

Configuration File:/etc/yum. conf

Features:

* Multiple resource libraries (Repository) can be configured simultaneously)

* Simple configuration file (/etc/yum. conf)

* Automatically solves the dependency problem when rpm packages are added or deleted.

* Easy to use

* Maintain consistency with the RPM Database

2. Commands

Yum install yum-fastestmirror: automatically searches for the fastest image plugin
Yum install yumex
Search and display
Yum search using YUM search software package
Yum list lists all installed and installable software packages
Yum list updates list all updatable software packages
Yum list installed list all installed software packages
Yum list extras list all packages installed but not in Yum Repository
Yum list to list the installation status of the specified Software Package
Yum info lists information about all software packages.
Yum info use YUM to get package information
Yum info updates lists information about all updatable software packages.
Yum info installed lists information about all installed software packages
Yum info extras lists all software packages that are installed but not in Yum Repository
Yum provides lists the files provided by the Software Package
Yum groupinfo displays program group information
Yum search string searches for the installation package based on the keyword string
Yum deplist
Install, upgrade, and uninstall
Yum check-update: list all the software that can be updated
Install yum install all
Install the specified package using yum install
Yum update all updates
Update a specified software package using yum update
Upgrade specified software package by yum upgrade
Yum grouplist
Yum groupinstall installer Group
Yum groupremove unmount the Program Group
Yum groupupdate Upgrade Program Group
Yum remove Delete Software Package
Yum groupremove
Clear Cache
Yum clean packages clear software packages in the cache directory
Yum clean headers clear headers in the cache directory
Yum clean all clear the packages and old headers in the cache directory
Common application groups
Yum-y groupinstall "X Window System"
Yum-y groupinstall "GNOME Desktop Environment"
Yum-y groupinstall "KDE (K Desktop Environment )"
Yum-y groupinstall "Server Configuration Tools"
Yum-y groupinstall "Development Libraries"
Yum-y groupinstall "Development Tools"
Yum-y groupinstall "Windows File Server"
Yum-y groupinstall "Chinese Support"
Yum-y groupinstall "MySQL Database"
Yum-y groupinstall "FTP Server"
Yum-y groupinstall "Java Development"
Yum-y groupinstall "Web Server"


Yum check-updateCheck all software packages that can be updated
Yum updateDownload and update all software packages installed in the system
Yum upgradeFor large-scale version upgrades, unlike yum update, the old obsolete package is also upgraded.
Yum install <packages>Install new software package
Yum update <packages>Update a specified Software Package
Yum remove <packages>Detach a specified Software Package
Yum groupinstall <groupnames>Install software packages in the specified Software Group
Yum groupupdate <groupnames>Update Software packages in a specified Software Group
Yum groupremove <groupnames>Detach a software package from a specified Software Group
Yum grouplistView installed and available software GROUPS IN THE SYSTEM
Yum listList all the rpm packages that can be installed, updated, and installed in the resource library.
Yum list <regex>List the rpm packages that match the regular expression in the resource library that can be installed or updated, and that have already been installed.
Yum list availableList all rpm packages that can be installed in the resource library
Yum list available <regex>Lists all the rpm packages that can be installed that match the regular expression in the resource library.
Yum list updatesList all updates to the rpm package in the resource library
Yum list updates <regex>Lists All updatable rpm packages matching regular expressions in the resource library.
Yum list installedList all installed rpm packages in the resource library
Yum list installed <regex>Lists All installed rpm packages that match the regular expression in the resource library.
Yum list extrasList rpm packages installed but not included in the resource library
Yum list extras <regex>Lists the rpm packages that match the regular expression that have been installed but are not included in the resource library.
Yum list recentList software packages recently added to the resource library
Yum search <regex>Detects names, descriptions, summaries, and listed maintainers of all available software and finds values that match regular expressions.
Yum provides <regex>Checks the files contained in the software package and the functions provided by the software to find the values that match the regular expression.
Yum clean headersClear cache rpm header files
Yum clean packagesClear cache rpm package files
Yum clean allClear cache rpm header files and package files
Yum deplist <packages>Displays the dependency information of a software package.
When you use the yum or yum resource library for updates for the first time, yum automatically downloads all the required he ade rs files in the/var/cache/yum Directory, which may take a long time.
You can also use the yum info command to list the package information. The available parameters of yum info are the same as those of yum list.
The yum command can also use the-y parameter to answer the question raised during the command running with ye s, such as yum-y install vsftpd, in this way, you do not need to enter yes/y when installing the software.

Yum command tool example

1. upgrade the system
[Root @ localhost ~] # Yum update

2. Install the specified software package. I prefer to use the following command.
[Root @ localhost ~] # Yum-y install vsftpd

3. Upgrade the specified Software Package
[Root @ localhost ~] # Yum-y update mysql

4. Uninstall the specified Software Package
[Root @ localhost ~] # Yum-y remore vsftpd mysql

5. Check the installed and available software groups in the system. For available software groups, you can choose to install
[Root @ localhost ~] # Yum grouplist

6. Install a software group in the available software group displayed in the previous command. The god Editor-Emacs has around 12 software packages installed.
[Root @ localhost ~] # Yum-y groupinstall Emacs

7. Update Software packages in a specified Software Group
[Root @ localhost ~] # Yum-y groupupdate Emacs

8. Uninstall the software packages in the specified software group. For Emacs, 12 software packages are installed, but only 4 software packages are uninstalled!
[Root @ localhost ~] # Yum-y groupremove Emacs

9. Clear cache rpm header files and package files
[Root @ localhost ~] # Yum clean all

10. Search related software packages
[Root @ localhost ~] # Yum-y search Emacs

11. display the information of the specified Software Package
[Root @ localhost ~] # Yum info Emacs
Similar to the information displayed by rpm-qi emacs, but not exactly the same

12. query the dependency information of a specified software package. emacs depends on many modules.
[Root @ localhost ~] # Yum deplist emacs

13. list all software packages starting with yum
[Root @ localhost ~] # Yum list yum \*

14. List the installed rpm packages that are not included in the resource library
# Yum list extras



You are welcome to join us in the discussion and study!

Collect it by yourself!

Record and share, let you grow together! Welcome to my other blog; my blog address: http://blog.csdn.net/caicongyang



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.