Score:0

How to install the proper package to access tool?

cn flag

In the Ubuntu manpage I found the zlib utility:

https://manpages.ubuntu.com/manpages/jammy/man3/zlib.3tcl.html

However, it is not clear what apt-get install command I need to access this utility. What is the proper method to see what to install?

muru avatar
us flag
That's not a shell command but [a command for TCL](https://en.m.wikibooks.org/wiki/Tcl_Programming/Introduction)
Score:2
vn flag

zlib is a library that's used by other packages. In this case, the manpage you link to is provided by tcl, which indicates that this is a TCL command, and not a shell command.

zlib is installed by default, since it's also used by Ubuntu's and Debian's package management system dpkg, and the default GNU zip utility gzip.

If you know the package name (in this case zlib1g) you can use this command to see which other packages depend on it:

apt rdepends zlib1g

For this particular package, you'll see a rather long list, since almost any application depending on compression will use zlib by default.

Raffa avatar
jp flag
It's used by the infamous `gzip` ... Just a tiny note :-) ... Recursive reverse dependencies can be listed with e.g. `apt-cache rdepends -i --installed --recurse zlib1g` ... Prints all installed packages that have `zlib1g` in their dependency tree be it direct or inherited.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.