≡ Menu

CentOS Linux Install zlib-devel RPM Package

How do I install zlib-devel (header files and libraries for Zlib development) package under CentOS Linux 5.x server using command line options?

The zlib-devel package contains the header files and libraries needed to develop programs that use the zlib compression and decompression library. This is also used by many third party packages. You can use the yum command as follows to install the same:
# yum install zlib-devel
Sample outputs:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirror.usonyx.net
 * base: mirror.usonyx.net
 * extras: mirror.usonyx.net
 * updates: mirror.usonyx.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zlib-devel.i386 0:1.2.3-3 set to be updated
---> Package zlib-devel.x86_64 0:1.2.3-3 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================================
 Package                                 Arch                                Version                                 Repository                         Size
=============================================================================================================================================================
Installing:
 zlib-devel                              i386                                1.2.3-3                                 base                              101 k
 zlib-devel                              x86_64                              1.2.3-3                                 base                              102 k

Transaction Summary
=============================================================================================================================================================
Install      2 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 202 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): zlib-devel-1.2.3-3.i386.rpm                                                                                                    | 101 kB     00:01     
(2/2): zlib-devel-1.2.3-3.x86_64.rpm                                                                                                  | 102 kB     00:00     
-------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                         69 kB/s | 202 kB     00:02     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : zlib-devel                                                                                                                            1/2 
  Installing     : zlib-devel                                                                                                                            2/2 

Installed:
  zlib-devel.i386 0:1.2.3-3                                                    zlib-devel.x86_64 0:1.2.3-3                                                   

Complete!
Share this tutorial on:

Your support makes a big difference:
I have a small favor to ask. More people are reading the nixCraft. Many of you block advertising which is your right, and advertising revenues are not sufficient to cover my operating costs. So you can see why I need to ask for your help. The nixCraft, takes a lot of my time and hard work to produce. If you use nixCraft, who likes it, helps me with donations:
Become a Supporter →    Make a contribution via Paypal/Bitcoin →   

Don't Miss Any Linux and Unix Tips

Get nixCraft in your inbox. It's free:



{ 0 comments… add one }
Security: Are you a robot or human?

Leave a Comment

You can use these HTML tags and attributes: <strong> <em> <pre> <code> <a href="" title="">


   Tagged with: , , , , , , , , , , , ,