Fedora: Difference between revisions
| Line 26: | Line 26: | ||
{{highlight|lang=terminal|code= | {{highlight|lang=terminal|code= | ||
# cat /usr/lib/systemd/system/dnf-automatic-install | # cat /usr/lib/systemd/system/dnf-automatic-install.timer | ||
[Unit] | [Unit] | ||
Description=dnf-automatic-install timer | Description=dnf-automatic-install timer | ||
| Line 40: | Line 40: | ||
[Install] | [Install] | ||
WantedBy=multi-user.target | WantedBy=multi-user.target | ||
# systemctl list-timers --all | grep dnf-auto | |||
Mon 2019-05-20 00:01:12 MDT 1 day 1h left Sat 2019-05-18 22:37:54 MDT 8min ago dnf-automatic-install.timer dnf-automatic-install.service | |||
}} | }} | ||
See Also: https://fedoraproject.org/wiki/AutoUpdates#How_are_automatic_updates_done.3F | See Also: https://fedoraproject.org/wiki/AutoUpdates#How_are_automatic_updates_done.3F | ||
Revision as of 04:47, 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-install.timer
To schedule automatic updates to happen only at a specific time or week day, edit the timer.
For example, the following timer only runs updates at the start of each week plus 1 hour and some random amount of time (between 0 and 5 minutes).
# cat /usr/lib/systemd/system/dnf-automatic-install.timer
[Unit]
Description=dnf-automatic-install timer
# See comment in dnf-makecache.service
ConditionPathExists=!/run/ostree-booted
Wants=network-online.target
[Timer]
OnCalendar=weekly
AccuracySec=1h
RandomizedDelaySec=5m
[Install]
WantedBy=multi-user.target
# systemctl list-timers --all
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.