# How to install zlib package?

**URL:** <https://forums.suse.com/t/how-to-install-zlib-package/28152>\
**Category:** SLES Install-Boot\
**Created:** [May 10, 2016, 4:14pm UTC](https://forums.suse.com/t/how-to-install-zlib-package/28152 "2016-05-10T16:14:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![makidur](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@makidur](https://forums.suse.com/u/makidur)\
**Post date:** [May 10, 2016, 4:14pm UTC](https://forums.suse.com/t/how-to-install-zlib-package/28152/1 "2016-05-10T16:14:26Z")

</div>

Dear all,

In our research center we recently switched from Debian/Ubuntu to SLES 12. As I am new in SUSE, can someone please help me how to install “zlib” and “zlib-devel” in SLES?

Thanks in advance,  
Marija

---

<div class="post-metadata">

**Author:** ![ab1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@ab1](https://forums.suse.com/u/ab1)\
**Post date:** [May 10, 2016, 4:44pm UTC](https://forums.suse.com/t/how-to-install-zlib-package/28152/2 "2016-05-10T16:44:18Z")

</div>

I assume it is installed by default, but perhaps you think it is not and  
you can tell us why you believe that.

To search for available packages from whatever repository, use zypper:

```auto
zypper search zlib
```

Note that ‘se’ is an alias for ‘search’, so ‘zypper se zlib’ works too and  
is often used by admins.

To install something that you’ve found, use the following:

```auto
zypper install package-name-here
```

Again, note that ‘in’ is often used as an alias/shortcut for ‘install’, so  
the following would work on my box installing zlib (were it not already  
installed):

```auto
zypper in zlib
```

Also, as a matter of practice, it may be useful to share your SLES  
version, Service Pack (SP), etc.

–  
Good luck.

If you find this post helpful and are logged into the web interface,  
show your appreciation and click on the star below…
