How to install and uninstall software in Centos yum
Installation Method
When installing a software
Yum-y install httpd
When installing similar software
Yum-y install httpd *
When multiple non-similar software are installed
Yum-y install httpd php-gd mysql
When a software is uninstalled
Yum-y remove httpd
When multiple similar software are uninstalled
Yum-y remove httpd *
When multiple non-similar software are uninstalled
Yum-y remove httpd php-gd mysql also has a very good usage. If I want to execute the iostat command to check the CPU and storage device status, but the execution does not find this command
Execute yum install iostat. The result is that the software cannot be found.
Yum search iostat will be able to find the iostat-related installation package,
In addition, if you want to install a program, you only need to remember some names. You can also use this method to install the program.
Yum search png | grep png
You can find the name of libpng we want to install.