The zlib-devel RPM package contains the development libraries and header files for the zlib library. These files are required to compile programs that use the zlib library. Here’s how to install the zlib-devel RPM package on CentOS:
- Open a terminal window on your CentOS system.
- Install the
yum-utilspackage if it is not already installed. This package provides theyum-config-managerutility which is used to enable the “base” repository.$ sudo yum install yum-utils
- Enable the “base” repository by running the following command:
$ sudo yum-config-manager --enable base
- Install the
zlib-develRPM package by running the following command:$ sudo yum install zlib-devel
This will download and install the
zlib-develpackage and its dependencies. - Verify that the
zlib-develpackage is installed by running the following command:$ rpm -q zlib-devel
This command should output the version of the
zlib-develpackage that was installed.
That’s it! You have successfully installed the zlib-devel package on your CentOS system.