Skip to main content
Accepted answer supports multiple OSs, no point in unnecessarily focusing on Debian here now
Source Link
muru
  • 78.3k
  • 16
  • 214
  • 320

How todo I find out which (not installed) Debian package a file belongs to?

On Debian systems (and derivatives):

$ dpkg --search /bin/ls coreutils: /bin/ls 

That is, the file /bin/ls/bin/ls belongs to the Debian package named coreutilscoreutils.

But this only works if the package is installed. What if it's not?

How to find out which (not installed) Debian package a file belongs to?

On Debian systems (and derivatives):

$ dpkg --search /bin/ls coreutils: /bin/ls 

That is, the file /bin/ls belongs to the Debian package named coreutils.

But this only works if the package is installed. What if it's not?

How do I find out which (not installed) package a file belongs to?

On Debian systems (and derivatives):

$ dpkg --search /bin/ls coreutils: /bin/ls 

That is, the file /bin/ls belongs to the Debian package named coreutils.

But this only works if the package is installed. What if it's not?

How to find out which (not installed) Debian package a file belongs to?

edited tags
Link
Braiam
  • 36.9k
  • 29
  • 114
  • 176
style
Source Link
tshepang
  • 67.7k
  • 94
  • 226
  • 297
Loading
Tweeted twitter.com/#!/StackUnix/status/29175465717534720
clarity
Link
tshepang
  • 67.7k
  • 94
  • 226
  • 297
Loading
Source Link
tshepang
  • 67.7k
  • 94
  • 226
  • 297
Loading