Home >Operation and Maintenance >Linux Operation and Maintenance >How to check whether zlib is installed in Linux

How to check whether zlib is installed in Linux

WBOY
WBOYOriginal
2022-05-31 16:33:036476browse

In Linux, you can use the "yum list installed" statement to check whether the zlib environment is installed. The syntax is "yum list installed | grep zlib". If the version information of zlib is included in the displayed result, it means that zlib has been installed. If it is not displayed, it is not installed.

How to check whether zlib is installed in Linux

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

linux Check whether zlib is installed

Check whether linux has the zlib environment installed

yum list installed | grep zlib

The example is as follows:

How to check whether zlib is installed in Linux

If you see the version of zlib, it means it has been installed, otherwise it has not been installed

Extended knowledge:

1. Check whether gcc is installed on Linux Environment

gcc -v

If the gcc compiler is not installed on the Linux system, "Command not found" will be prompted. If the gcc compiler is installed on the system, this command will display which version of the gcc compiler is currently installed

2. Check whether the pcre environment is installed on 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 has been installed, otherwise it is not installed

Recommended learning: Linux video tutorial

The above is the detailed content of How to check whether zlib 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