Hacker News new | past | comments | ask | show | jobs | submit login

You know what would be nice?

To do the reverse: I provide a file path and you can determine in which package(s) it is present.




dpkg or apt-file can do this from the command line. Or you can use https://packages.ubuntu.com/

https://askubuntu.com/questions/481/how-do-i-find-the-packag...


DNF as well with “dnf provides <filename>”


On rpm-based systems: `rpm -qf /path/to/file`.

It's very helpful when I stare at a file and thinking, "WTF this file doing there?". These two commands help me immediately: `rpm -qif file` to show description of file package, `rpm -qlf file` to show list of other files in the same package.


dpkg -S /your/path

Have fun :)




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: