Find Packge for Linux Command
I want to find the package which installed the command
xfce4-display-settings
.
To find out, where the command is located, I can use the which
command.
$ which xfce4-display-settings
/usr/bin/xfce4-display-settings
Now, I want to know which package installed the command.
- Fedora:
$ dnf repoquery -f /usr/bin/xfce4-display-settings xfce-settings-0:4.12.0-6.fc23.x86_64
(Source, search for “Display package name that owns the given file”)
- Debian/Ubuntu:
dpkg --search /usr/bin/xfce4-display-settings
(Source, Section 8.5)
Now, I can search for the package and find the website of the package. There is also the source code available in a repository.