Search notes:

apt-file

apt-file is a utility to search for APT packages.
apt-file [options] search pattern
apt-file [options] show   package
apt-file list is an alias for apt-file show, apt-file find for apt-file search.

apt-file show

apt-file show lists the contents of a package in a similar way like dpgk -L except that the package does not have to be installed of fetched.
apt-file search and apt-file find are equivalent.
apt-file search finds the package that contains a given filename.

Search with regular expression

The following command uses -x to enable regular expressions so that only the package for /usr/bin/tree, but not for /usr/bin/tree* will be found:
$ apt-file search -x '^/usr/bin/tree$'
tree: /usr/bin/tree
Debian ~/notes/notes

See also

Compare with dpgk -L and apt search.

See also

APT

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/pa...', 1758206883, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/package-managers/APT/commands/apt-file(69): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78