Finding the package name of some of the more “generic” apps such as ‘fonts’ (gnome-font-viewer
) and help (yelp
) has been a challenge. Currently I search for the apps by listing all running processes, but this is far from optimal (an easy way to show the foreground window would be closer, for instance).
Alt+F2
lg
Enter
Then switch to the Windows or Extensions tab.
Windows
Note the field:
app: app_name.desktop
Check the path:
rpm -q -f /usr/share/applications/app_name.desktop
Extensions
Click the button:
View Source
Copy the path:
Ctrl+L
Check the path:
rpm -q -f /usr/share/gnome-shell/extensions/ext_name
Well, whenever I would need to know, what packages are available to the system, I would use dnf search
.
For example, if I needed to know something about fonts in Gnome, I would try:
dnf search font | grep gnome
which would result in:
gnome-font-viewer.x86_64 : Utility for previewing fonts for GNOME
gnome-shell-extension-ibus-font.noarch : A GNOME Shell extension for ibus-setup custom font settings
I would easily recognize that gnome-font-viewer
is what I am looking for, according to the description.
Sometimes, the packages are not named according to the final command that is used in the system, therefore I could also do a repoquery and see, what files would come with that package:
dnf repoquery --provides gnome-font-viewer
and the result
application()
application(org.gnome.font-viewer.desktop)
gnome-font-viewer = 3.34.0-3.fc32
gnome-font-viewer(x86-64) = 3.34.0-3.fc32
metainfo()
metainfo(org.gnome.font-viewer.appdata.xml)
mimehandler(application/x-font-otf)
mimehandler(application/x-font-pcf)
mimehandler(application/x-font-ttf)
mimehandler(application/x-font-type1)
mimehandler(font/otf)
mimehandler(font/ttf)
suggests that the executable’s name really is the gnome-font-viewer
, so I could easily go into the Activities page and start typing the name of the executable and soon the application icon would come to the place.
This workflow works with every package, installed and uninstalled.