See also: Python in Fedora.


To debug python3-cryptography, install debug symbols:

sudo dnf debuginfo-install python3-cryptography

Download a source RPM

sudo yum install yum-utils
yumdownloader --source <package>
# install build dependencies:
yum-builddep python

You may have to enable “Source” repositories: see also “yumdownloader –enablerepo=xxx” option.

Search a package without updating yum cache

yum search -C pattern

Which package provides the program route?

$ rpm -qf $(which route)

Or if the package is not installed:

$ yum whatprovides route
net-tools-2.0-0.15.20131119git.fc20.x86_64 : Basic networking tools
Nom de fichier: /usr/sbin/route

Listing the files in a package

rpm -ql mongodb-server

Install dependencies to build the package digikam

yum-builddep digikam


Install manually a different version, package already installed:

rpm -e gdb-

Rebuild a Fedora package

Rebuild a package: Fedora Source RPM.

If you get a .src.rpm package, you can rebuild it with:

rpmbuild --rebuild wrk-3.1.0-1.fc21.src.rpm

Unpack RPM

Unpack file.rpm in a new dir/ subdirectory:

mkdir dir
cp file.rpm dir/
cd dir
rpm2cpio file.rpm | cpio -idmv

sudo: add user to wheel group

usermod -aG wheel vstinner


Upgrade Fedora 29 to Fedora 30 in command line:

# sudo dnf upgrade --refresh
sudo dnf install dnf-plugin-system-upgrade
sudo dnf system-upgrade download --refresh --releasever=30
sudo dnf system-upgrade reboot