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:

ADVERTISEMENTS

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!
🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
Network Utilitiesdig host ip nmap
Package Managerapk apt
Processes Managementbg chroot disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w

ADVERTISEMENTS
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.