Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install zlib on Debian 6. For this, I think I would use apt-get install, but I don't know which package to use. The package zlib doesn't exist, and if I install zlibc (which sounds most appropriate), running zlib -version brings up the error command not found. (I used apt-file search zlib to find zlibc.)

Is there another package which contains zlib, and how do I find this package?

share|improve this question
up vote 4 down vote accepted

A zlib command does not exist:

$ dpkg -L zlib1g

It is a library.

If you are searching for anything use apt-cache search.

And if you need a command to compress use either gzip or zip.

share|improve this answer
I see, thank you! – strauberry May 9 '11 at 11:14

apt-get install zlib1g, possibly zlib1g-dev as well.

share|improve this answer
Thank you for your answer! When I use apt-get install zlibg1, I get "zlibg1 is allready the newest version"... After installing zlib1g-dev, "which zlib" is still empty. – strauberry May 9 '11 at 10:54
I'm noticing a /usr/lib/ Maybe Debian changed the name of it. – LawrenceC May 9 '11 at 11:00

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.