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-utils
package if it is not already installed. This package provides theyum-config-manager
utility 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-devel
RPM package by running the following command:$ sudo yum install zlib-devel
This will download and install the
zlib-devel
package and its dependencies. - Verify that the
zlib-devel
package is installed by running the following command:$ rpm -q zlib-devel
This command should output the version of the
zlib-devel
package that was installed.
That’s it! You have successfully installed the zlib-devel
package on your CentOS system.