====== Fedora Linux ======
See also: [[dnf]]
===== system upgrade =====
dnf --refresh upgrade
dnf system-upgrade download --refresh --releasever=31
dnf system-upgrade reboot
https://fedoraproject.org/wiki/DNF_system_upgrade
=== Releases ===
* [[https://fedoraproject.org/wiki/Releases/Branched|Branched]] – next version of Fedora in the making, branches off from Rawhide
* [[https://fedoraproject.org/wiki/Releases/Rawhide|Rawhide]] – developer version, not recommended for usage unless you're a Fedora dev
* [[https://fedoraproject.org/wiki/Releases|regular releases]]
===== Packages =====
==== Repositories ====
[[https://rpmfusion.org/FedoraThirdPartyRepos|List of Fedora 3rd party repositories]]
=== RPMFusion ===
RPMFusion is a repository for Fedora with many packages not included in the default repositories. You can [[https://rpmfusion.org/Configuration#Command_Line_Setup_using_rpm|easily enable it]] via dnf.
=== COPR ===
User made repositories for stuff not found in official repos.
* [[https://copr.fedorainfracloud.org/coprs/rmnscnce/kernel-xanmod/|Xanmod]] – desktop-optimised Kernel, e.g. for gaming and video/3D editing.
==== replace xscreensaver with light-locker ====
dnf install light-locker
dnf remove xscreensaver-base
xfconf-query -c xfce4-session -p /general/LockCommand -s "light-locker-command -l" --create -t string
==== remove KDE PIM applications ====
dnf remove kf5-akonadi*
– removes all PIM components including KDE calendar, KDE contacts and Kmail.
===== new services =====
==== firewall ====
see [[firewalld]]
===== Troubleshooting =====
==== nss-pem-1.0.3-6.fc27.x86_64 does not belong to a distupgrade repository ====
On upgrading Fedora 27→28, the aforementioned error occurs. This seems to be due to [[https://bugzilla.redhat.com/show_bug.cgi?id=1553646|a bug]] related to dnf.
Solution: dnf install nss-pem-1.0.3-9.fc28 --releasever=28
==== OMEMO doesn't work in Gajim ====
dnf install python3-devel
python3 `which pip` install python-axolotl
===== COPR =====
//custom Fedora packages, similar to Ubuntu's PPAs//
Enable with ''dnf copr enable user/repo''
^ user/repo ^ purpose |
| [[https://copr.fedorainfracloud.org/coprs/che/mesa/|che/mesa]] | current Mesa 3D compiled against current LLVM |
| [[https://copr.fedorainfracloud.org/coprs/che/llvm/|che/llvm]] | current LLVM from git |
===== Bootloader =====
Default is GRUB2. Fedora docs: [[https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrators-guide/kernel-module-driver-configuration/Working_with_the_GRUB_2_Boot_Loader/|Working with the GRUB 2 Boot Loader]]
Config location: ''/etc/default/grub''
Generate config: ''grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg'' (UEFI), ''grub2-mkconfig -o /boot/grub2/grub.cfg'' (MBR)
==== rmdir: failed to remove '/var/lib/os-prober/mount': Device or resource busy ====
Solution: reboot, then try again. ([[https://www.dedoimedo.com/computers/grub2-ubuntu-rmdir-error.html|Source]])