There are quite a lot of yum commands in PHP, mainly because in various operations such as configuring the Linux environment, installing and uninstalling in Linux, it is still very important to master the commands. Among many commands, the most common one is the yum command, with a total of seven yum commands, and each of them is quite practical. Here are these commands, and I will explain them in detail.
1、yum install
The command indicates installation, followed by the package name, and the common ones are:
yum install git yum install nginx yum install php
2、yum remove
Uninstall a toolkit
3、yum update
Update a toolkit
4、yum info
View information about a toolkit
5、yum search
Find a toolkit
6、yum list
Check out the installed toolkits, and you can search with grep later.
7、yum list installed
View installed toolkits
Knowledge point expansion:
Options
-h: Show help information;
-y: Answer “yes” to all questions;
-c: Specify the configuration file;
-q: Quiet mode;
-v: Detailed mode;
-d: Set debug level (0-10);
-e: Set the error level (0-10);
-R: Set the maximum waiting time for yum to process a command;
-C: Run completely from the cache without downloading or updating any header files.
parameter
install: install rpm package;
update: update rpm package;
check-update: Check if there are available update rpm packages;
remove: Remove the specified rpm package;
list: Displays the information of the software package;
search: Check the package information;
info: Displays the description and summary information of the specified rpm software package;
clean: clean yum expired cache;
shell: enter the shell prompt of yum;
resolvedep: Show the dependencies of rpm packages;
localinstall: install local rpm package;
localupdate: Show local rpm package for updates;
deplist: Shows all dependencies of rpm package.
This is the end of this article about the detailed explanation of the usage of yum commands in php. For more related contents of yum commands in php, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!