In the Debian family of OSes, dpkg --search /bin/ls
gives:
coreutils: /bin/ls
That is, the file /bin/ls
belongs to the Debian package named coreutils. (see this post if you are interested in a package containing a file that isn't installed)
What is the Fedora equivalent?
Best Answer
You can use
rpm -qf /bin/ls
to figure out what package your installed version belongs to:Update: Per your comment, the following should work if you want only the name of the package (I just got a chance to test):
You can also use
dnf provides /bin/ls
to get a list of all available repository packages that will provide the file: