Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
165 lines (99 sloc) 3.39 KB

Fedora

See also: :ref:`Python in Fedora <python-fedora>`.

Debuginfo

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)
net-tools-2.0-0.15.20131119git.fc20.x86_64

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

Packages

Install manually a different version, package already installed:

rpm -e gdb-8.2.50.20181010-5.fc30.x86_64.rpm

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

Python

Upgrade

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

https://fedoraproject.org/wiki/DNF_system_upgrade

ABRT: ignore crashes in $HOME

Edit BlackListedPaths in /etc/abrt/abrt-action-save-package-data.conf:

$ sudo vim /etc/abrt/abrt-action-save-package-data.conf
BlackListedPaths = (...), /home/vstinner/*

where (...) was the existing configuration. Full example:

BlackListedPaths = /usr/share/doc/*, */example*, /usr/bin/nspluginviewer, /usr/lib*/firefox/plugin-container, /home/vstinner/*

Rawhide and GPG keys

Rawhide: https://fedoraproject.org/wiki/Releases/Rawhide

GPG:

$ rpm -qf /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-31-x86_64
fedora-gpg-keys-31-0.2.noarch

Import Fedora's GPG key(s) (command comming from https://getfedora.org/security/):

curl https://getfedora.org/static/fedora.gpg | gpg --import

Last resort: disable gpgcheck in /etc/yum.repos.d/fedora-rawhide.repo (then reenable it).

List all packages installed on the system

Using dnf:

dnf history userinstalled

Using rpm:

rpm -qa
You can’t perform that action at this time.