Home>Article>Operation and Maintenance> How to determine whether PCRE is installed in Linux
In Linux, you can use the "rpm -qa pcre" command to determine whether pcre is installed; the rpm command is specially used to manage various packages. After using this command, if the version information of pcre appears in the result, it means PCRE has been installed. If no version information appears, it means PCRE is not installed.
#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.
Check whether pcre environment is installed in linux
[root@WeChat sbin]# rpm -qa pcre pcre-8.32-17.el7.x86_64 pcre-8.32-17.el7.i686
If you see the version of pcre, it means it is installed, otherwise it is not installed
Examples are as follows:
1. Connect to the corresponding Linux host and enter the Linux command line state waiting for shell instructions to be entered.
#2. Enter the shell command on the linux command line: rpm -qa pcre.
#3. Press the "Enter" key on the keyboard to run the shell command. At this time, you will see the version of pcre, indicating that it has been installed, otherwise it has not been installed.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of How to determine whether PCRE is installed in Linux. For more information, please follow other related articles on the PHP Chinese website!