0

Actualización automática de Debian

Escrito por _Pi_ en General el 21 de Febrero de 2008 / Sin comentarios »
apt-get update && apt-get upgrade

Eso es todo lo que hay que hacer para mantener un sistema Debian actualizado. Aun así, como hay gente vaga muy ocupada :-) existe un paquete llamado cron-apt que nos facilita esta tarea, colocando una entrada en el cron para actualizar los repositorios y descargar los paquetes nuevos (por defecto no los instala por motivos de seguridad)

apt-cache show cron-apt
Package: cron-apt
Priority: optional
Section: admin
Installed-Size: 92
Maintainer: Ola Lundqvist <opal@debian.org>
Architecture: all
Version: 0.6.4
Depends: apt, debianutils (>= 1.7)
Recommends: liblockfile1, mailx, cron
Filename: pool/main/c/cron-apt/cron-apt_0.6.4_all.deb
Size: 24634
MD5sum: 3990438fdc44fb7dc72b41d3674fc2e7
SHA1: 1529d6e6f4938b96368faec2c026370feba6f60c
SHA256: 265fbd6ce2e466e1404e4eb0da03f7468e1eba316692d1e47152a04e6d772adb
Description: automatic update of packages using apt-get
Contains a tool that is run by a cron job at regular intervals. By default it
just updates the package list and download new packages without installing.
You can instruct it to run anything that you can do with apt-get
(or aptitude).

It can optionally sends mail to the system administrator on errors, log
to syslog or a separate log file.

Observe that this tool may be a security risk, so you should not set it
to do more than necessary. Automatic upgrade of all packages is NOT
recommended unless you are in full control of the package repository.
Tag: admin::automation, admin::package-management, interface::daemon, role::program, scope::utility, suite::debian, use::downloading, works-with::software:package