For more desktop-y stuff. See RHEL/CentOS page for server-y stuff.



Here is a list of things in Fedora/GNOME which it took me a while to figure out the name of:

  • System Tray (GNOME desktop) - this was the area within (usually) the top edge of the screen, where some applications displayed an icon, such as Dropbox, SpiderOak Groups, etc. It has been removed, but you can get it back by installing an extension such as Topiconsfix.

  • Activities Search (GNOME desktop) - this is the search that gets initiated when you press the Super/Windows key and then start typing. It can search Documents, Files, Characters, etc. It can be configured from the GNOME control-center. See SearchProvider.

Graphical desktop

Ensure it’s graphical desktop on startup:

sudo systemctl set-default


Networking is provided by NetworkManager (nmcli).

Package management with dnf

Use dnf to install packages from official and non-official repos.

  • Modules in dnf are package groups representing an application, language runtime or set of tools. - e.g. node, nginx, maven, mariadb, ruby, perl.

  • Groups are kind of like modules, but, erm, broader? (can you tell I haven’t a clue what I’m talking about)

dnf Cookbook

Some things about dnf:

Install something:

$ dnf install <spec> # Where spec can be a package-spec, @module-spec or @group-spec

List all repos:

$ dnf repolist

Add a repository:

$ dnf config-manager \
    --add-repo \

List all installed software:

$ dnf list --installed
$ dnf list --installed mypackage

Install something from an RPM file:

$ dnf localinstall myrpmfile.rpm

Remove a package but don’t remove “unused dependencies”:

$ dnf remove packagename --noautoremove

Or set clean_requirements_on_remove=false in /etc/dnf/dnf.conf. If still having issues, check if the dependent packages really do have a transitive dependency on the package you’re trying to remove, e.g. trying to remove docker and it also wants to remove container-selinux:

$ dnf repoquery --requires docker | grep container-selinux
container-selinux >= 2:2.2-2

(Yum) Find which group contains a specific package:

yum groupinfo '*' | less +/sendmail-cf

Get the current Fedora version:

$ rpm -E %fedora

What application or command is file <x> used for? Which package put it there?

$ dnf repoquery -l texlive-cancel

$ rpm -qf /usr/bin/mvn


List all modules available:

$ dnf module list

List the modules that are enabled (installed):

$ dnf module list --enabled
Fedora Modular 30 - x86_64
Name   Stream       Profiles           Summary                                                 
ant    1.10 [d][e]  default [d]        Java build tool                                         
gimp   2.10 [d][e]  default [d], devel GIMP                                                    
maven  3.5 [d][e]   default [d]        Java project management and project comprehension tool  
scala  2.10 [d][e]  default [d]        A hybrid functional/object-oriented language for the JVM

Fedora Modular 30 - x86_64 - Updates
Name   Stream       Profiles           Summary                                                 
ant    1.10 [d][e]  default [d]        Java build tool                                         
gimp   2.10 [d][e]  default [d], devel GIMP                                                    
maven  3.5 [d][e]   default [d]        Java project management and project comprehension tool  

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

Disable a module if it’s causing problems (e.g. gimp):

$ dnf module disable gimp


Groups are virtual collections of packages, e.g.:

  • @c-development - group containing C Development stuff including gcc-c++.

List all groups:

$ dnf group list --ids
Available Environment Groups:
   Fedora Custom Operating System (custom-environment)
   Minimal Install (minimal-environment)
   Fedora Server Edition (server-product-environment)
   Fedora Workstation (workstation-product-environment)
   Fedora Cloud Server (cloud-server-environment)
   KDE Plasma Workspaces (kde-desktop-environment)

List all installed groups:

$ dnf group list --installed

Install a group:

$ dnf group install <group-spec>

Display package lists of a group:

$ dnf group info <group-spec>

Find which groups contain a package (e.g. gcc-c++):

$ dnf group info '*' | less +/gcc-c++

Non-Fedora repos

rpmfusion: a place for packages which can’t be distributed in the main Fedora repos, for example:

  • Open Broadcaster Software
  • VLC media player
sudo dnf install$(rpm -E %fedora).noarch.rpm$(rpm -E %fedora).noarch.rpm

[unitedrpms][]: multimedia codecs and addons not available in official Fedora repositories.

sudo rpm --import
sudo dnf -y install$(rpm -E %fedora)-15.fc$(rpm -E %fedora).noarch.rpm

Installing things manually

It seems to be common practice to put some things in /opt.

For example, installing an early GraalVM build and adding a relative symlink in /opt/java/graalvm:

sudo mkdir -p /opt/java
sudo chown -R tdonohue:tdonohue /opt/java
tar -C /opt/java -xvf graalvm-ce-1.0.0-rc15-linux-amd64.tar.gz
ln -s ln -r -s graalvm-ce-1.0.0-rc15 /opt/java/graalvm


Networking with NetworkManager

NetworkManager takes it upon itself to keep /etc/resolv.conf updated.

To list all connections that NetworkManager knows about:

nmcli connection

Show the DNS settings for a connection (e.g. a Wifi network connection)

nmcli -f ipv6.dns,ipv4.dns connection show "Hyperoptic 1Gb Fibre 5Ghz"
# or
nmcli c s "Hyperoptic 1Gb Fibre 5Ghz" | grep dns

Modify the DNS settings for a connection - e.g. to set NextDNS:

nmcli con mod "Hyperoptic 1Gb Fibre 2.4Ghz" ipv6.dns xxxx:xxxx::xx:xxxx,xxxx:xxxx::xx:xxxx
nmcli con mod "Hyperoptic 1Gb Fibre 2.4Ghz" ipv6.ignore-auto-dns yes
nmcli con mod "Hyperoptic 1Gb Fibre 2.4Ghz" ipv4.dns,
nmcli con mod "Hyperoptic 1Gb Fibre 2.4Ghz" ipv4.ignore-auto-dns yes

To force an update to /etc/resolv.conf after updating settings on a connection:

sudo nmcli con up "Hyperoptic 1Gb Fibre 5Ghz"

Bluetooth with bluetoothctl

Show all paired Bluetooth devices:

bluetoothctl paired-devices

Un-pair and re-pair (apparently this is supposed to work):

$ DEVICE_ID=11:22:33:44:55:66
$ bluetoothctl
[bluetoothctl] devices
[bluetoothctl] untrust 11:22:33:44:55:66
[bluetoothctl] remove 11:22:33:44:55:66
[bluetoothctl] scan on
[bluetoothctl] scan off
[bluetoothctl] connect 11:22:33:44:55:66
[bluetoothctl] pair 11:22:33:44:55:66

You can connect a device using its Address, e.g.:

$ echo -e "connect 11:22:33:44:55:66" | bluetoothctl
Agent registered
[bluetooth]# connect 11:22:33:44:55:66
Attempting to connect to 11:22:33:44:55:66


Search for fonts:

$ dnf search fonts

Manually install a font:

$ tar xvf the-font-archive.tgz
$ sudo mkdir -p /usr/share/fonts/the-font-name
$ sudo cp *.otf /usr/share/fonts/the-font-name
$ fc-cache -v

Reset the font cache:

$ fc-cache

Resizing images

In Software app, add the image resizer feature to the Nautilus file browser:

$ dnf install nautilus-image-converter
$ nautilus -q

Compressing images

Try Trimage. Installing Trimage on Fedora 29:

$ sudo dnf install jpegoptim pngcrush advancecomp
$ git clone && cd Trimage
$ chmod u+x
$ ./ build
$ sudo ./ install


gnome-software provides the GUI application Software for installing updates:

Problem: “Unable to download firmware updates from ‘fwupd’ … failed to download Cannot resolve hostname”

$ dnf update gnome-software


Keeping the fedora-root partition down to size:

  • PackageKit files in /var/cache/PackageKit can reach double-digit GBs => These are files used by GNOME PackageKit. (an alternative to dnf?). Prune using pkcon refresh force -c 2592000 (2592000 = 1 month in seconds)

Reducing journal size:

  • Journals are kept in /var/log/journal
  • Edit /etc/systemd/journald.conf and set SystemMaxUse=1G
  • systemtl restart systemd-journald


tracker-miner-fs seems to consume 100% CPU:

  • Seems to be a process which indexes files and puts the results in ~/.local/share/tracker
  • Check overall status of the tracker using tracker status
  • See what each individual daemon is doing by using tracker daemon
  • If necessary, delete the files/folders which are causing the daemon to go out of control

Fedora no longer boots into a graphical desktop:

  • systemctl set-default seems to have no effect.
  • See systemctl list-units --type target to see all “targets”, or systemctl list-unit-files --type target.
  • GDM appears to be dead - systemctl status gdm reports inactive