Home>Article>Operation and Maintenance> How to determine whether PCRE is installed in Linux

How to determine whether PCRE is installed in Linux

WBOY
WBOY Original
2022-05-09 16:14:21 4968browse

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.

How to determine whether PCRE is installed in Linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to judge whether pcre is installed in Linux

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.

How to determine whether PCRE is installed in Linux

#2. Enter the shell command on the linux command line: rpm -qa pcre.

How to determine whether PCRE is installed in Linux

#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.

How to determine whether PCRE is installed in Linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn