CentOS Linux Install zlib-devel RPM Package

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:

  1. Open a terminal window on your CentOS system.
  2. Install the yum-utils package if it is not already installed. This package provides the yum-config-manager utility which is used to enable the “base” repository.
    $ sudo yum install yum-utils
  3. Enable the “base” repository by running the following command:
    $ sudo yum-config-manager --enable base
  4. 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.

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

Leave a Comment