Common LinuxYUM commands

Source: Internet
Author: User

In RedHat Linux, rpm packages are the most common management method, but when we use other release versions, rpm management packages may not be used, YUM is also a very useful method for managing software packages. Here we will introduce the Common commands of YUM.

1. List all software updates
Command: yum check-update
2. Install all Update Software
Command: yum update
3. Only install the specified Software
Command: yum install
4. Update only the specified Software
Command: yum update
5. list all the software that can be installed
Command: yum list

LinuxYUM Common commands: Use YUM to install and delete Software

It is common to install the system to add and delete software. yum is also competent for this task, as long as the software is installed by rpm.
The installation command is: yum install xxx. yum queries the database to check whether this software package exists. If yes, check its dependency conflict. If no dependency conflict exists, download and install it; if yes, you will receive a prompt asking if you want to install dependencies at the same time or delete conflicting packages. You can make your own judgment.
The DELETE command is yum remove xxx. Like the installation command, yum also queries the database and provides a prompt to solve the dependency.
1. install the software package with YUM
Command: yum install
2. Use YUM to delete a software package
Command: yum remove

LinuxYUM Common commands: Use YUM to query Software Information

We often encounter such a situation, we want to install a software, only know it is related to a certain aspect, but cannot know its name. In this case, the yum query function takes effect. You can use
Yum search keyword command to search. For example, if you want to install an Instant Messenger, but you don't know what it is, you can use
If you search for commands such as yum search messenger, yum searches for all available rpm descriptions and lists all rpm packages related to messeger.
We may get gaim, kopete, and so on, and choose from them.
Sometimes we install a package without knowing its purpose. We can use the yum info packagename command to obtain information.
1. Use YUM to find the Software Package
Command: yum search
2. List all installable software packages
Command: yum list
3. list all updatable software packages
Command: yum list updates
4. list all installed software packages
Command: yum list installed
5. list all software packages installed but not in Yum Repository
Command: yum list extras
6. List the specified software packages
Command: yum list
7. Use YUM to obtain the software package information
Command: yum info
8. list information about all software packages
Command: yum info
9. list information of all updatable software packages
Command: yum info updates
10. list information about all installed software packages
Command: yum info installed
11. list information about all software packages installed but not in Yum Repository
Command: yum info extras
12. List the files provided by the Software Package
Command: yum provides

LinuxYUM Common commands: Clear YUM Cache

Yum stores the downloaded software package and header in the cache, but does not automatically delete it. If we think they occupy disk space, we can use the yum clean command to clear it more accurately.
Yum clean headers clears the header, yum clean packages clears the downloaded rpm package, and yum clean all
Head End
1. Clear the software packages under the cache directory (/var/cache/yum)
Command: yum clean packages
2. Clear headers under the cache directory (/var/cache/yum)
Command: yum clean headers
3. Clear the old headers under the cache directory (/var/cache/yum)
Command: yum clean
Oldheaders
4. Clear the software packages and old headers in the cache directory (/var/cache/yum ).
Command: yum clean, yum clean
All (= yum clean packages; yum clean oldheaders)

  1. A Brief Introduction to the use of Linux Operators
  2. One of the methods to modify the default Linux Startup System
  3. Parsing Linux Process status T, Z, and X
  4. Analysis of Linux Process status: R, S, and D
  5. Six advantages of Linux

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.