Fedora: Difference between revisions
No edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
See: https://fedoraproject.org/wiki/DNF_system_upgrade#How_do_I_use_it.3F | See: https://fedoraproject.org/wiki/DNF_system_upgrade#How_do_I_use_it.3F | ||
=== Automatic Updates === | |||
On Fedora 22 or later, use {{code|dnf-automatic}}. This is actually the same but newer mechanism as {{code|yum-cron}} used in CentOS 7 but uses systemd timers rather than cron to initiate the update. | |||
{{highlight|lang=terminal|code= | |||
# 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 == | == Other == | ||
Revision as of 04:34, 19 May 2019
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.