YUM installation and cleaning

Source: Internet
Author: User

Yum (all called Yellow dog Updater, Modified) is a Shell front-end Package Manager in Fedora. Based on RPM package management, You can automatically download and install the RPM package from the specified server, automatically handle dependencies, and install all dependent software packages at a time, you do not need to download and install it repeatedly.

In our usual CentOS software installation, the yum command is faster in finding the rpm in the installation disk. Some Common commands collected are as follows:

1. List any software updates

Command: yum check-update

2. install any 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 any software that can be installed

Command: yum list

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 be prompted to check whether you want to install dependencies or delete conflicting packages at the same time.

The DELETE command is yum remove xxx, which is the same as the installation. 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 ***

Use YUM to query Software Information

We often encounter such a situation, we want to install a software, only know that he is related to a certain aspect, but cannot know his name. In this case, the yum query function takes effect. You can use commands such as yum search keyword to search. For example, if you want to install an Instant Messenger, but you do not know which one is available, you can use commands such as yum search messenger to search, yum searches for any available rpm descriptions and lists any rpm packages related to messeger in the descriptions. In this case, we may get gaim, kopete, and so on, and select 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 any software packages that can be installed

Command: yum list

3. list any updatable software packages

Command: yum list updates

4. list any installed software packages

Command: yum list installed

5. list any 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 of any software package

Command: yum info

9. list any updatable software package information

Command: yum info updates

10. list information about any installed software packages

Command: yum info installed

11. list any software packages that have been installed but are not in Yum Repository

Command: yum info extras

12. List the documents provided by the Software Package

Command: yum provides

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, we use yum clean headers to clear the header and yum clean packages to clear the downloaded rpm package, yum clean all is a brain.

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 ).

Complete yum Installation

Install yum in RedHat 6.1)

Related Article

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.