Skip to content

Apticron für Linux - Automatische Updatemeldungen per Mail unter Ubuntu bzw. Debian einrichten

Auch Linux Systeme sollten regelmäßig mit Updates versorgt werden. Wer nicht jedes System einzeln prüfen möchte, um zu sehen ob Aktualisierungen vorhanden sind, der ist mit "apticron" sicherlich gut bedient. Das Shellscript versendet Meldungen über Paket Updates automatische per E-Mail. Gerade bei der Verwaltung von mehreren Systemen kann eine automatische Info Gold wert sein.

Apticron unter Ubuntu - Debian einrichten

Installieren

apt-get install apticron

Konfigurieren

sudo nano /etc/apticron/apticron.conf

# apticron.conf
#
# set EMAIL to a space separated list of addresses which will be notified of
# impending updates
#
EMAIL="update@itrig.de"
#
# Set DIFF_ONLY to "1" to only output the difference of the current run
# compared to the last run (ie. only new upgrades since the last run). If there
# are no differences, no output/email will be generated. By default, apticron
# will output everything that needs to be upgraded.
#
DIFF_ONLY="1"

#
# Set LISTCHANGES_PROFILE if you would like apticron to invoke apt-listchanges
# with the --profile option. You should add a corresponding profile to
# /etc/apt/listchanges.conf
#
# LISTCHANGES_PROFILE="apticron"

#
# Set SYSTEM if you would like apticron to use something other than the output
# of "hostname -f" for the system name in the mails it generates
#
SYSTEM="server@itrig.de"

Alternative:sudo dpkg-reconfigure apticron


Testen

sudo apticron


Wichtige Pfade

/etc/apticron/apticron.conf
/etc/cron.d/apticron
/usr/sbin/apticron
/etc/apt/listchanges.conf
/etc/apt/apt.conf.d/20listchanges


Beispielhafte E-Mail Benachrichtigung



apticron report [Thu, XX Jul 2012 XX:XX:XX]
========================================================================

apticron has detected that some packages need upgrading on:

server1
[ 127.0.0.1 127.0.0.2 192.168.0.1 ]

The following packages are currently pending an upgrade:

insserv 1.12.0-14ubuntu0.2

========================================================================

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
Form options