- Bosen dengan gaya update setiap hari secara manual, maka coba-coba instalasi Automatic Updates versi ubuntu server 8.04 LTS (kebetulan server saya pake ubuntu server itu).
Pendahuluan
Paket unattended-upgrades package dapat melakukan install update paket secara otomatis, dapa mencofigurasi semua paket yang telah diupdate juga melakukan instalasi update security.
Langkah-langkahnya
1. Masuk ke terminal tuliskan sudo apt-get install unattended-upgrades
2. Konfigurasi file nya berada di : /etc/apt/apt.conf.d/50unattended-upgrades
Unattended-Upgrade::Allowed-Origins {
“Ubuntu hardy-security”;
// “Ubuntu hardy-updates”;
};Certain packages can also be blacklisted and therefore will not be automatically updated. To blacklist a package, add it to the list:
Unattended-Upgrade::Package-Blacklist {
// “vim”;
// “libc6″;
// “libc6-dev”;
// “libc6-i686″;
// Send email to this address for problems or packages upgrades
// If empty or unset then no email is sent, make sure that you
// have a working mail setup on your system. The package ‘mailx’
// must be installed or anything that provides /usr/bin/mail.
Unattended-Upgrade::Mail “abunabiha@gmail.com”;
Catatan : aktifkan set email diatas. Jika tidak diaktifkan maka log akan dikirimkan ke /var/log/unattended-upgrades.
3. Instalasi sudo paket apticron dengan perintah : apt-get install apticron
4. Konfigurasi berada di : /etc/apticron/apticron.conf - isi email administrator untuk komunikasi dengan kita (administrator) dengan apticron
5. Source
