Apt-file: Difference between revisions
From Leechfinger
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
<syntaxhighlight lang="bash" line> | <syntaxhighlight lang="bash" line> | ||
apt-file list x11-utils | apt-file list x11-utils | ||
</syntaxhighlight> | |||
=== Search for utilities in packages === | |||
<syntaxhighlight lang="bash" line> | |||
$ apt-file search -x "bin/.*mailx.*" | |||
$ apt-file search -x "bin/dig$" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Commands]] | [[Category:Commands]] |
Revision as of 22:56, 4 May 2025
apt-file command searches available packages for a specific file or files. The packages do not need to be installed to perform the search.
Install
apt install apt-file
Usage
apt-file list x11-utils
Search for utilities in packages
$ apt-file search -x "bin/.*mailx.*"
$ apt-file search -x "bin/dig$"