Moin *,
ich habe ein Problem, das Auto-Update unter CentOS/Fedora ans Fliegen zu bringen. IMHO ist alles eingerichtet, aber es werden seit Tagen keine Updates automatisch eingespielt.
Installation am Beispiel CentOS:
Konfiguration unverändet:
Es passiert leider nix. Bei manuellem Aufruf hingegen würden mehrere Updates starten:
Logs:
Wie geschrieben, mit einem aktuellen Fedora/DNF sieht das genau so aus. Was übersehe ich?
TNX
cu, gehrke
ich habe ein Problem, das Auto-Update unter CentOS/Fedora ans Fliegen zu bringen. IMHO ist alles eingerichtet, aber es werden seit Tagen keine Updates automatisch eingespielt.
Installation am Beispiel CentOS:
Code:
# yum -y install yum-cron
# systemctl enable yum-cron.service
# systemctl start yum-cron.service
Code:
# systemctl status yum-cron.service
● yum-cron.service - Run automatic yum updates as a cron job
Loaded: loaded (/usr/lib/systemd/system/yum-cron.service; enabled; vendor preset: disabled)
Active: active (exited) since So 2017-05-21 09:37:45 CEST; 2 days ago
Process: 1015 ExecStart=/bin/touch /var/lock/subsys/yum-cron (code=exited, status=0/SUCCESS)
Main PID: 1015 (code=exited, status=0/SUCCESS)
CGroup: /system.slice/yum-cron.service
Mai 21 09:37:45 b2.gehrke.local systemd[1]: Starting Run automatic yum updates as a cron job...
Mai 21 09:37:45 b2.gehrke.local systemd[1]: Started Run automatic yum updates as a cron job.
Code:
# cat /etc/yum/yum-cron.conf
[commands]
# What kind of update to use:
# default = yum upgrade
# security = yum --security upgrade
# security-severity:Critical = yum --sec-severity=Critical upgrade
# minimal = yum --bugfix update-minimal
# minimal-security = yum --security update-minimal
# minimal-security-severity:Critical = --sec-severity=Critical update-minimal
update_cmd = default
# Whether a message should be emitted when updates are available,
# were downloaded, or applied.
update_messages = yes
# Whether updates should be downloaded when they are available.
download_updates = yes
# Whether updates should be applied when they are available. Note
# that download_updates must also be yes for the update to be applied.
apply_updates = yes
# Maximum amout of time to randomly sleep, in minutes. The program
# will sleep for a random amount of time between 0 and random_sleep
# minutes before running. This is useful for e.g. staggering the
# times that multiple systems will access update servers. If
# random_sleep is 0 or negative, the program will run immediately.
# 6*60 = 360
random_sleep = 360
[emitters]
# Name to use for this system in messages that are emitted. If
# system_name is None, the hostname will be used.
system_name = None
# How to send messages. Valid options are stdio and email. If
# emit_via includes stdio, messages will be sent to stdout; this is useful
# to have cron send the messages. If emit_via includes email, this
# program will send email itself according to the configured options.
# If emit_via is None or left blank, no messages will be sent.
emit_via = stdio
# The width, in characters, that messages that are emitted should be
# formatted to.
output_width = 80
[email]
# The address to send email messages from.
# NOTE: 'localhost' will be replaced with the value of system_name.
email_from = root@localhost
# List of addresses to send messages to.
email_to = root
# Name of the host to connect to to send email messages.
email_host = localhost
[groups]
# NOTE: This only works when group_command != objects, which is now the default
# List of groups to update
group_list = None
# The types of group packages to install
group_package_types = mandatory, default
[base]
# This section overrides yum.conf
# Use this to filter Yum core messages
# -4: critical
# -3: critical+errors
# -2: critical+errors+warnings (default)
debuglevel = -2
# skip_broken = True
mdpolicy = group:main
# Uncomment to auto-import new gpg keys (dangerous)
# assumeyes = True
Code:
# yum upgrade
Geladene Plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: ftp.halifax.rwth-aachen.de
* epel: mirror.23media.de
* extras: mirror.eu.oneandone.net
* updates: ftp.halifax.rwth-aachen.de
Abhängigkeiten werden aufgelöst
--> Transaktionsprüfung wird ausgeführt
---> Paket kdelibs.x86_64 6:4.14.8-5.el7_2 markiert, um aktualisiert zu werden
---> Paket kdelibs.x86_64 6:4.14.8-6.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket kdelibs-common.x86_64 6:4.14.8-5.el7_2 markiert, um aktualisiert zu werden
---> Paket kdelibs-common.x86_64 6:4.14.8-6.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket kdelibs-ktexteditor.x86_64 6:4.14.8-5.el7_2 markiert, um aktualisiert zu werden
---> Paket kdelibs-ktexteditor.x86_64 6:4.14.8-6.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket libsmbclient.x86_64 0:4.4.4-12.el7_3 markiert, um aktualisiert zu werden
---> Paket libsmbclient.x86_64 0:4.4.4-13.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket libtirpc.x86_64 0:0.2.4-0.8.el7 markiert, um aktualisiert zu werden
---> Paket libtirpc.x86_64 0:0.2.4-0.8.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket libwbclient.x86_64 0:4.4.4-12.el7_3 markiert, um aktualisiert zu werden
---> Paket libwbclient.x86_64 0:4.4.4-13.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket rpcbind.x86_64 0:0.2.0-38.el7 markiert, um aktualisiert zu werden
---> Paket rpcbind.x86_64 0:0.2.0-38.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket samba-client.x86_64 0:4.4.4-12.el7_3 markiert, um aktualisiert zu werden
---> Paket samba-client.x86_64 0:4.4.4-13.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket samba-client-libs.x86_64 0:4.4.4-12.el7_3 markiert, um aktualisiert zu werden
---> Paket samba-client-libs.x86_64 0:4.4.4-13.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket samba-common.noarch 0:4.4.4-12.el7_3 markiert, um aktualisiert zu werden
---> Paket samba-common.noarch 0:4.4.4-13.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket samba-common-libs.x86_64 0:4.4.4-12.el7_3 markiert, um aktualisiert zu werden
---> Paket samba-common-libs.x86_64 0:4.4.4-13.el7_3 markiert, um eine Aktualisierung zu werden
---> Paket samba-libs.x86_64 0:4.4.4-12.el7_3 markiert, um aktualisiert zu werden
---> Paket samba-libs.x86_64 0:4.4.4-13.el7_3 markiert, um eine Aktualisierung zu werden
--> Abhängigkeitsauflösung beendet
Abhängigkeiten aufgelöst
=================================================================================================================
Package Arch Version Paketquelle Größe
=================================================================================================================
Aktualisieren:
kdelibs x86_64 6:4.14.8-6.el7_3 updates 11 M
kdelibs-common x86_64 6:4.14.8-6.el7_3 updates 1.9 M
kdelibs-ktexteditor x86_64 6:4.14.8-6.el7_3 updates 73 k
libsmbclient x86_64 4.4.4-13.el7_3 updates 126 k
libtirpc x86_64 0.2.4-0.8.el7_3 updates 88 k
libwbclient x86_64 4.4.4-13.el7_3 updates 100 k
rpcbind x86_64 0.2.0-38.el7_3 updates 59 k
samba-client x86_64 4.4.4-13.el7_3 updates 547 k
samba-client-libs x86_64 4.4.4-13.el7_3 updates 4.6 M
samba-common noarch 4.4.4-13.el7_3 updates 191 k
samba-common-libs x86_64 4.4.4-13.el7_3 updates 161 k
samba-libs x86_64 4.4.4-13.el7_3 updates 260 k
Transaktionsübersicht
=================================================================================================================
Aktualisieren 12 Pakete
Gesamte Downloadgröße: 19 M
Is this ok [y/d/N]:
Logs:
Code:
Mai 23 21:01:01 b2.gehrke.local anacron[2633]: Normal exit (0 jobs run)
Mai 23 21:01:01 b2.gehrke.local run-parts(/etc/cron.hourly)[2637]: starting 0yum-hourly.cron
Mai 23 21:02:46 b2.gehrke.local run-parts(/etc/cron.hourly)[2679]: finished 0yum-hourly.cron
Wie geschrieben, mit einem aktuellen Fedora/DNF sieht das genau so aus. Was übersehe ich?
TNX
cu, gehrke