0

I've installed zlib1g but still zlib isn't available from the terminal. How can I find the executable to run it? Or is there an easier way I'm overlooking?

The reason for this is that I want to compress a file using zlib to match an existing implementation from a third-party application.

3
  • 2
    What do you mean "run zlib"? It's a library, you can call functions from that library in code you write. It's not a command to be executed.
    – muru
    Commented Sep 28, 2022 at 1:53
  • 3
    zlib doesnt provide a command line tool. you can write one yourself, or install qpdf which provides a zlib-flate command that can compress and decomress zlib streams.
    – toppk
    Commented Sep 28, 2022 at 4:01
  • Does this answer your question? How to uncompress zlib data in UNIX?
    – toppk
    Commented Sep 28, 2022 at 4:11

1 Answer 1

2

I stumbled across pigz which allows for just this via pigz -z [input_file_name] to output a compressed file.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .