Apt-file: Difference between revisions

From Leechfinger
Jump to navigationJump to search
Qais (talk | contribs)
Created page with "apt-file command searches available packages for a specific file or files. The packages do not need to be installed to perform the search. == Usage == <syntaxhighlight lang="bash" line> apt-file list x11-utils </syntaxhighlight> Category:Commands"
 
Qais (talk | contribs)
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
apt-file command searches available packages for a specific file or files. The packages do not need to be installed to perform the search.
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 ==
<syntaxhighlight lang="bash" line>
apt install apt-file
</syntaxhighlight>
== Usage ==
== Usage ==
<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$"