1

Is it possible to use apt-cache (or more generally APT) to search for packages that include a specific program, like setcap or ifconfig?

I know i can use dpkg -S <prog> to identify installed packages that include <prog>, but is it possible to retrieve such information from remote package repositories?

Shuzheng
  • 4,411

1 Answers1

3

Use apt-file for this task. If it's not installed, sudo apt install apt-file. Run apt-file update after installation.

apt-file search setcap for example.

If you don't want to install anything locally, you can use debian index online.

Krackout
  • 2,642
  • 12
  • 26