Apt-file: Difference between revisions

From Leechfinger
Jump to navigationJump to search
Qais (talk | contribs)
No edit summary
Qais (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
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]]

Latest revision as of 23:01, 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$"