Fedora

From Leo's Notes
Revision as of 04:34, 19 May 2019 by Leo (talk | contribs)
This page was last edited on 19 May 2019, at 04:34.

Updating

Updating to a different release involves first updating the system, and then using the system-upgrade command.

# yum -y update
# dnf system-upgrade download --refresh --releasever=30
# dnf system-upgrade reboot

See: https://fedoraproject.org/wiki/DNF_system_upgrade#How_do_I_use_it.3F

Automatic Updates

On Fedora 22 or later, use dnf-automatic. This is actually the same but newer mechanism as yum-cron used in CentOS 7 but uses systemd timers rather than cron to initiate the update.

# dnf install dnf-automatic
## Edit /etc/dnf/automatic.conf so that apply_updates is set to 'yes'
# systemctl enable --now dnf-automatic.timer

See Also: https://fedoraproject.org/wiki/AutoUpdates#How_are_automatic_updates_done.3F

Other

Disabling Nouveau Drivers

As mentioned at https://ask.fedoraproject.org/en/question/23982/how-to-disable-nouveau-in-fedora-18/, to disable the nouveau drivers (needed to install the nvidia drivers), you have to modify the initramfs image using dracut.

# dracut --force --omit-drivres nouveau /boot/initramfs-$(uname -r) $(uname -r)

I tried to do the usual modprobe.d to black list nouveau, but it didn't seem to work. I even added nomodeset on to the grub kernel cmdline but that also didn't seem to work...

Grub2 Configuration

Grub configuration needs to be updated by running

# grub2-mkconfig -o /boot/grub2/grub.cfg

The main grub configuration file is at /etc/default/grub. You must remake the configratuion for grub after you edit this file.