Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the yum command under CentOS

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

Most people do not understand the knowledge points of this article "how to use yum commands under CentOS", so the editor summarizes the following contents, detailed contents, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "how to use yum commands under CentOS" article.

Yum (Yellow dogUpdater, Modified) is a Shell front-end package manager in Fedora and RedHat as well as in CentOS. Based on RPM package management, RPM packages can be downloaded and installed automatically from designated servers, dependencies can be automatically dealt with, and all dependent software packages can be installed at one time without tedious downloading and installation.

1. Install the yum package:

$yum install PACKAGE_NAME

two。 Remove the yum package:

$yum remove PACKAGE_NAME

3. Reinstall a yum package:

$yum reinstall PACKAGE_NAME

4. Search for yum packages:

$yum search PACKAGE_NAME

5. Display information for the yum package:

$yum info PACKAGE_NAME

6. Update the installed yum package:

$yum update

7. Update the specific yum package:

$yum update PACKAGE_NAME

8. Display yum history:

$yum history

9. Displays a list of enabled yum repositories:

$yum repolist

10. Find out which yum package provides a specific file (for example: / usr/bin/nc):

$yum whatprovides "* bin/nc"

11. Clear the yum cache:

The above $yum clean all is about the content of this article on "how to use yum commands under CentOS". I believe we all have some understanding. I hope the content shared by the editor will be helpful to you. If you want to know more about the relevant knowledge, please follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report