Fedora: Difference between revisions

From Q
Jump to navigation Jump to search
Tgurr (talk | contribs)
Tgurr (talk | contribs)
 
(43 intermediate revisions by the same user not shown)
Line 20: Line 20:


=== Release Upgrade ===
=== Release Upgrade ===
{{Root|<nowiki>yum --enablerepo=updates-testing install fedup</nowiki>}}
{{Root|<nowiki>dnf upgrade --refresh</nowiki>}}
 
{{Root|<nowiki>dnf install dnf-plugin-system-upgrade</nowiki>}}
{{Root|fedup-cli --network 20}}
{{Root|<nowiki>dnf system-upgrade download --refresh --releasever=32</nowiki>}}
 
{{Root|<nowiki>dnf system-upgrade reboot</nowiki>}}
Cleanup after upgrade
{{Root|<nowiki>dnf system-upgrade clean</nowiki>}}
 
{{Root|fedup-cli --clean}}


=== RPM Fusion Repository ===
=== RPM Fusion Repository ===
Line 32: Line 30:


Required by:
Required by:
* [[Fedora#Repository_.28recommended.29|Graphics - NVIDIA (proprietary)]]
* [[Fedora#WLAN_-_Broadcom_BCM43xx|WLAN Broadcom BCM43xx]]
* [[Fedora#WLAN_-_Broadcom_BCM43xx|WLAN Broadcom BCM43xx]]
* [[Fedora#MP3_support|MP3 support]]
* [[Fedora#MP3_support|MP3 support]]
* [[Fedora#XBMC|XBMC]]
* [[Fedora#XBMC|XBMC]]


{{Root|yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm}}
{{Root|<nowiki>dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm</nowiki>}}
{{Root|yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm}}


=== Remove old Kernels ===
=== Remove old Kernels ===
{{Root|<nowiki>package-cleanup --oldkernels --count=1</nowiki>}}
{{Root|<nowiki>dnf remove $(dnf repoquery --installonly --latest-limit=-1 -q)</nowiki>}}


=== Disable Firewall ===
=== Disable Firewall ===
Line 67: Line 63:
== Drivers ==
== Drivers ==
=== Graphics - NVIDIA (proprietary) ===
=== Graphics - NVIDIA (proprietary) ===
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}
{{Root|dnf remove xorg-x11-drv-nvidia\* nvidia-settings nvidia-xconfig}}
 
{{Root|yum install vdpauinfo libva-vdpau-driver libva-utils}}
 
{{Note|akmod takes care of automatically rebuilding the kernel module after each kernel update.}}
 
{{Root|yum install akmod-nvidia}}


Optional: 32bit libraries needed e.g. for [[Fedora#Wine_-_Windows_compatibility_layer|Wine]].
{{Root|<nowiki>dnf config-manager --add-repo=https://negativo17.org/repos/fedora-nvidia.repo</nowiki>}}


{{Root|yum install xorg-x11-drv-nvidia-libs.i686}}
{{Root|dnf install nvidia-driver}}
{{Root|dnf install nvidia-driver-libs.i686}}
{{Root|dnf install nvidia-settings}}


To remove the driver and enable nouveau again:
{{Root|dnf install nvidia-driver-NvFBCOpenGL}}
{{Root|dnf install nvidia-driver-NvFBCOpenGL.i686}}


{{Root|yum remove xorg-x11-drv-nvidia\* nvidia-settings nvidia-xconfig}}
{{Root|dnf install vulkan}}
{{Root|dnf install vulkan.i686}}


=== WLAN - Broadcom BCM43xx ===
=== WLAN - Broadcom BCM43xx ===
Line 88: Line 82:
{{Note|akmod takes care of automatically rebuilding the kernel module after each kernel update.}}
{{Note|akmod takes care of automatically rebuilding the kernel module after each kernel update.}}


{{Root|yum install broadcom-wl akmod-wl}}
{{Root|dnf install broadcom-wl akmod-wl}}


=== Scanner - SANE compatible ===
=== Scanner - SANE compatible ===
{{Root|yum install sane-backends-drivers-scanners}}
{{Root|dnf install sane-backends-drivers-scanners}}




Line 108: Line 102:
}}
}}


{{Root|yum install google-chrome-<stable/beta/unstable>}}
{{Root|dnf install google-chrome-<stable/beta/unstable>}}
 
{{Note|If you want to have a working quick starter in KDE launch google-chrome from the terminal once to add the launcher.}}
 
=== Google Talk/Hangouts Plugin ===
{{File|/etc/yum.repos.d/google-talkplugin.repo|
<pre>
[google-talkplugin]
name=google-talkplugin
baseurl=http://dl.google.com/linux/talkplugin/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
</pre>
}}
 
{{Root|yum install google-talkplugin}}


=== Steam ===
=== Steam ===
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}
{{Root|<nowiki>dnf config-manager --add-repo=https://negativo17.org/repos/fedora-steam.repo</nowiki>}}
 
{{Root|dnf install steam}}
{{Root|yum install steam}}


See [[Steam]] for known workarounds for common problems.
See [[Steam]] for known workarounds for common problems.


=== Java ===
=== Java ===
{{Root|yum install java-1.7.0-openjdk}}
{{Root|dnf install java-1.8.0-openjdk}}
{{Root|dnf install java-11-openjdk}}
 
=== Java web plugin ===
{{Root|dnf install icedtea-web}}


=== KDE - Localization ===
=== KDE - Localization ===
{{Root|yum install kde-l10n-German}}
{{Root|dnf install kde-l10n-de}}
{{Root|yum install calligra-l10n-de}}
{{Root|dnf install calligra-l10n-de}}


=== Skanlite - KDE scanner application ===
=== Skanlite - KDE scanner application ===
{{Root|yum install skanlite}}
{{Root|dnf install skanlite}}
 
=== Digikam ===
{{Root|dnf install digikam}}
 
=== QMapShack ===
{{Root|dnf install qmapshack}}
 
=== mpv ===
{{Root|dnf install mpv}}


=== KeePassX - Password manager ===
=== KeePassXC - Password manager ===
{{Root|yum install keepassx}}
{{Root|dnf install keepassxc}}


=== Mumble - Voice chat software ===
=== Mumble - Voice chat software ===
{{Root|yum install mumble}}
 
{{Root|dnf install mumble}}


=== VLC media player ===
=== VLC media player ===
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}


{{Root|yum install vlc}}
{{Root|dnf install vlc}}


=== Audex - Audio grabber ===
=== Audex - Audio grabber ===
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}


{{Root|yum install audex}}
{{Root|dnf install audex}}


=== Wine - Windows compatibility layer ===
=== Wine - Windows compatibility layer ===
{{Root|yum install wine}}
{{Root|dnf install wine}}


=== XBMC ===
=== Kodi ===
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}


{{Root|yum install xbmc}}
{{Root|dnf install kodi}}


=== LibreOffice ===
{{Root|dnf install libreoffice}}
{{Root|dnf libreoffice-langpack-de}}


== Multimedia Codecs ==
== Multimedia codecs ==
=== MP3 support ===
=== MP3 support ===
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}
{{Note|You need to add the [[Fedora#RPM_Fusion_Repository|RPM Fusion Repository]] first.}}


{{Root|yum install gstreamer-plugins-ugly}}
{{Root|dnf install gstreamer1-plugins-ugly}}
{{Root|dnf install k3b-extras-freeworld}}


 
== DNF package manager ==
== Yum Package Manager help ==
=== Proxy ===
=== Proxy ===
{{File|/etc/yum.conf|
{{File|/etc/dnf/dnf.conf|
<pre>
<pre>
[main]
[main]
Line 184: Line 178:
}}
}}


=== Fix a self-restarting transaction that never finishes ===
=== Fix broken transactions ===
{{Root|yum-complete-transaction --cleanup-only}}
{{Root|package-cleanup --cleandupes}}


=== Fix Error: db5-Error(-xxxxx) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery ====
=== Fix Error: db5-Error(-xxxxx) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery ====
Line 191: Line 185:
{{Root|rpm --rebuilddb}}
{{Root|rpm --rebuilddb}}


=== Remove a package which fails to uninstall with yum (e.g. kde-settings-kdm.noarch 0:19-23.fc19) ===
=== Remove a package which fails to uninstall with dnf ===
{{Root|rpm -e --noscripts kde-settings-kdm-19-23.fc19}}
{{Root|rpm -e --noscripts kde-settings-kdm-19-23.fc19}}
== Development version of Fedora (Rawhide) ==
=== Release Upgrade ===
{{Root|fedup-cli --network 21 --instrepo http://alt.fedoraproject.org/pub/fedora/linux/development/21/x86_64/os/}}
=== Graphics - NVIDIA (proprietary) ===
{{Root|<nowiki>yum --enablerepo=rpmfusion-nonfree-rawhide install akmod-nvidia</nowiki>}}
Optional: 32bit libraries needed e.g. for [[Fedora#Wine_-_Windows_compatibility_layer|Wine]].
{{Root|<nowiki>yum --enablerepo=rpmfusion-nonfree-rawhide install xorg-x11-drv-nvidia-libs.i686</nowiki>}}

Latest revision as of 11:54, 10 September 2020

Basics

Becomming Root

$ su -l

Multiboot - Change default boot order (GRUB 2)

File: /etc/default/grub
GRUB_DEFAULT=saved
# grub2-mkconfig -o /boot/grub2/grub.cfg
# grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2
# grub2-set-default <menu entry number>
# grub2-editenv list

Release Upgrade

# dnf upgrade --refresh
# dnf install dnf-plugin-system-upgrade
# dnf system-upgrade download --refresh --releasever=32
# dnf system-upgrade reboot
# dnf system-upgrade clean

RPM Fusion Repository

RPM Fusion provides software that the Fedora Project or Red Hat doesn't want to ship.

Required by:

# dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Remove old Kernels

# dnf remove $(dnf repoquery --installonly --latest-limit=-1 -q)

Disable Firewall

Warning: Not recommended!
# systemctl disable firewalld.service

Disable SELinux

Warning: Not recommended!
File: /etc/selinux/config
SELINUX=permissive

Enable hard-restarting the X server via Ctrl-Alt-Backspace

File: /etc/X11/xorg.conf.d/00-keyboard.conf
    Option "XkbOptions" "terminate:ctrl_alt_bksp, "


Drivers

Graphics - NVIDIA (proprietary)

# dnf remove xorg-x11-drv-nvidia\* nvidia-settings nvidia-xconfig
# dnf config-manager --add-repo=https://negativo17.org/repos/fedora-nvidia.repo
# dnf install nvidia-driver
# dnf install nvidia-driver-libs.i686
# dnf install nvidia-settings
# dnf install nvidia-driver-NvFBCOpenGL
# dnf install nvidia-driver-NvFBCOpenGL.i686
# dnf install vulkan
# dnf install vulkan.i686

WLAN - Broadcom BCM43xx

Note: You need to add the RPM Fusion Repository first.
Note: akmod takes care of automatically rebuilding the kernel module after each kernel update.
# dnf install broadcom-wl akmod-wl

Scanner - SANE compatible

# dnf install sane-backends-drivers-scanners


Software

Google Chrome

File: /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
# dnf install google-chrome-<stable/beta/unstable>

Steam

# dnf config-manager --add-repo=https://negativo17.org/repos/fedora-steam.repo
# dnf install steam

See Steam for known workarounds for common problems.

Java

# dnf install java-1.8.0-openjdk
# dnf install java-11-openjdk

Java web plugin

# dnf install icedtea-web

KDE - Localization

# dnf install kde-l10n-de
# dnf install calligra-l10n-de

Skanlite - KDE scanner application

# dnf install skanlite

Digikam

# dnf install digikam

QMapShack

# dnf install qmapshack

mpv

# dnf install mpv

KeePassXC - Password manager

# dnf install keepassxc

Mumble - Voice chat software

# dnf install mumble

VLC media player

Note: You need to add the RPM Fusion Repository first.
# dnf install vlc

Audex - Audio grabber

Note: You need to add the RPM Fusion Repository first.
# dnf install audex

Wine - Windows compatibility layer

# dnf install wine

Kodi

Note: You need to add the RPM Fusion Repository first.
# dnf install kodi

LibreOffice

# dnf install libreoffice
# dnf libreoffice-langpack-de

Multimedia codecs

MP3 support

Note: You need to add the RPM Fusion Repository first.
# dnf install gstreamer1-plugins-ugly
# dnf install k3b-extras-freeworld

DNF package manager

Proxy

File: /etc/dnf/dnf.conf
[main]
proxy=http://<server>:<port>

Fix broken transactions

# package-cleanup --cleandupes

Fix Error: db5-Error(-xxxxx) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery =

# rm -rf /var/lib/rpm/__db.00*
# rpm --rebuilddb

Remove a package which fails to uninstall with dnf

# rpm -e --noscripts kde-settings-kdm-19-23.fc19