English Spanish
Automatic Updates Actualizaciones automáticas
You must decide whether to use automatic xref:dnf.adoc[DNF] updates on each of your machines. There are a number of arguments both for and against automatic updates to consider. However, there is no single answer to this question: it is up to the system administrator or owner of each machine to decide whether automatic updates are desirable or not for that machine. One of the things which makes one a good system administrator is the ability to evaluate the facts and other people's suggestions, and then decide for oneself what one should do.
A general rule that applies in most cases is as follows: Una regla general que se aplica en la mayoría de los casos es la siguiente:
_If the machine is a critical server, for which unplanned downtime of a service on the machine can not be tolerated, then you should not use automatic updates. Otherwise, you *may* choose to use them._ _Si la máquina es un servidor crítico, para la cual un tiempo fuera de servicio no planificado no se puede tolerar, no se deben usar las actualizaciones automáticas. En otro caso, usted *puede* elegir usarlas._
Even the general rule above has exceptions, or can be worked around. Some issues might be resolved through a special setup on your part. For example, you could create your own DNF repository on a local server, and only put in tested or trusted updates. Then use the automatic updates from only your own repository. Such setups, while perhaps more difficult to set up and maintain, can remove a large amount of risk otherwise inherent in automatic updates.
How are automatic updates done? ¿Cómo se hacen las actualizaciones automáticas?
You can use a service to automatically download and install any new updates (for example security updates). Puede usar un servicio para descargar automáticamente e instalar cualquier nueva actualización (por ejemplo actualizaciones de seguridad).
The https://dnf.readthedocs.org/en/latest/automatic.html[dnf-automatic] RPM package as a link:dnf[DNF] component provides a service which is started automatically. El paquete RPM https://dnf.readthedocs.org/en/latest/automatic.html[dnf-automatic] como un componente link:dnf[DNF] provee un servicio que se inicia automáticamente.
Install and settings of dnf-automatic Instalación y ajustes de dnf-automatic
On a fresh install of Fedora 22 with default options, the dnf-automatic RPM is not installed. The first command below installs this RPM:
sudo dnf install dnf-automatic
sudo dnf install dnf-automatic
By default, dnf-automatic runs from the configurations in the `/etc/dnf/automatic.conf` file. These configurations only download, but do not apply any of the packages. In order to change or add any configurations, open the `.conf` file as the root user (or using `sudo`) from a terminal window.
env EDITOR='gedit -w' sudoedit /etc/dnf/automatic.conf
env EDITOR='gedit -w' sudoedit /etc/dnf/automatic.conf
Detailed description of dnf-automatic settings is provided on the https://dnf.readthedocs.org/en/latest/automatic.html[dnf-automatic] page.
Run dnf-automatic
Once you are finished with the configuration, execute:
systemctl enable --now dnf-automatic.timer 
to enable and start the `systemd` timer.
Check status of `dnf-automatic`:
systemctl list-timers dnf-*