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?

2
  • Does the highest voted answer on unix.stackexchange.com/q/149805 answer your question? Commented Jun 26, 2020 at 11:08
  • @Quasímodo - I don't think so. That answers how to find packages that depend on a specific package. Commented Jun 26, 2020 at 11:10

1 Answer 1

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.