Random tips

DNF

dnf is the default package manager that will be used most of the time.

Fedora 40 and before: you might want to use dnf5 instead of the default dnf command (version 4) for a better experience. (you can alias in user and root mode like alias dnf dnf5)

How to install a previous version of a package ?

Example with jq from 1.7 to 1.6

sudo dnf install --releasever=38 jq

You can also downgrade it if it is already installed

sudo dnf downgrade --releasever=38 jq

What's heavy ?

A few tips to cleanup your disk when you reach the capacity limit !

List heavy RPM packages

dnf list --installed | cut -f1 -d' ' | xargs rpm -q --queryformat '%{SIZE} - %{NAME}.%{ARCH}: %{VERSION}\n' | sort -rh | head -25 | awk '{print $1/1024/1024, $2, $3, $4}'

Clean unused stuff from Flatpak

flatpak uninstall --unused

Clean unused Docker stuff

docker system prune

Remove Go pkg folder

rm ~/go/pkg

Remove scratch projects target folder

Rust compilation folder can be very heavy

cd $SCR_TMP_FOLDER
pwd # check the folder first !!

rm -r */target