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

What are the commands for package updates under the CentOS system

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Editor to share with you what are the commands for package updates under the CentOS system, I believe most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

Package update commands under the CentOS system

Update and upgrade

Yum update all updates yum update package1 updates specified packages package1yum check-update checks updatable programs yum upgrade package1 upgrades specified packages package1yum groupupdate group1 upgrades group group1

I. installation

Yum install install all yum install package1 install the specified installation package package1yum groupinsall group1 installer group group1

3. Find and display

Yum info package1 displays installation package information package1yum list displays all installed and installable packages yum list package1 displays specified packages installation package1yum groupinfo group1 displays program group group1 information yum search string finds installation packages based on the keyword string

IV. Delete programs

Yum remove | erase package1 delete package package1yum groupremove group1 delete program group group1yum deplist package1 to view program package1 dependencies

5. Clear the cache

Yum clean packages clears the software packages in the cache directory yum clean headers clears the headersyum clean oldheaders in the cache directory clears the old headersyum clean in the cache directory, yum clean all (= yum clean packages; yum clean oldheaders) clears the software packages in the cache directory and the old headers

VI. Source operation

Yum repolist/repolist all lists all sources yum-enablerepo=fedora-source install package1 installation package package1 from fedora-source source

7. Yum Shell

Yum shll goes into the shell environment of yum and the above is the package update command under the CentOS system. Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to 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

Servers

Wechat

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

12
Report