centos yum command

 

Examples of using yum command tool 

1. Upgrade the system

[root@localhost ~]#yum update

 

2. Install the specified software package

[root@localhost ~]# yum -y install mysql-server

 

3. Upgrade the specified software package

[root@localhost ~]# yum -y update mysql

 

4. Uninstall the specified software package

[root@localhost ~]# yum -y remore mysql

 

5. View the installed and available software groups in the system. For the available software groups, you can choose to install

[root@localhost ~]# yum grouplist

 

6. Install a software group among the available software groups shown in the previous command

[root@localhost ~]# yum -y groupinstall Emacs

 

7. Update the software package in the specified software group

[root@localhost ~]# yum -y groupupdate Emacs

 

8. Uninstall the software package in the specified software group

[root@localhost ~]# yum -y groupremove Emacs

 

9. Clear the rpm header files and package files in the cache

[root@localhost ~]# yum clean all

 

10. Search for related software packages

[root@localhost ~]# yum -y search Emacs

 

11. Display the information of the specified software package

[root@localhost ~]# yum info Emacs

 

12. Query the dependencies of the specified software package

[root@localhost ~]# yum deplist emacs

 

13. List all packages starting with yum

[root@localhost ~]# yum list yum\*

 

14. List the rpm packages that have been installed but are not included in the resource library

[root@localhost ~]# # yum list extras

Guess you like

Origin blog.csdn.net/qq_37061368/article/details/110442016
Recommended