I want to install zlib on Debian 6. For this, I'd use apt-get install ???. Now I don't know which package to use... the package "zlib" doesn't exist, and if I install "zlibc" (which sounds most appropriate), a "zlib -version" brings up an "command not found"... so there must be another package which contains zlib, but how can I find this package?

To find zlibc I use "apt-file search zlib"...

link|improve this question

feedback

2 Answers

up vote 3 down vote accepted

A zlib command does not exist:

$ dpkg -L zlib1g
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/zlib1g
/usr/share/doc/zlib1g/copyright
/usr/share/doc/zlib1g/changelog.Debian.gz
/usr/share/doc/zlib1g/changelog.gz
/usr/lib
/usr/lib/libz.so.1.2.3.3
/usr/lib/libz.so.1

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.

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

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

link|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/libz.so. Maybe Debian changed the name of it. – ultrasawblade May 9 '11 at 11:00
feedback

Your Answer

 
or
required, but never shown

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