wiki:TorRelayGuide/RPMUpdates

Version 4 (modified by cypherpunks, 12 months ago) (diff)

removed tor package installation section, it lives on the main page https://trac.torproject.org/projects/tor/wiki/OperatorsTips

This wiki page attempts to describe how to configure an RPM-based distribution for automatic updates of tor or, if preferred, how to perform a manual update of tor.

This page assumes that you have installed Tor using one of the methods at the bottom of the page.

Enabling Automatic Updates

Fedora 22 and later

Beginning with Fedora 22, you can enable automatic updates via:

dnf install dnf-automatic

In /etc/dnf/automatic.conf set:

apply_updates = yes

Now enable and start automatic updates via:

systemctl enable dnf-automatic.timer
systemctl start dnf-automatic.timer

CentOS and RHEL

For CentOS, RHEL, and older versions of Fedora, the yum-cron package is the preferred approach:

yum install yum-cron

In /etc/yum/yum-cron.conf set:

apply_updates = yes

Enable and start automatic updates via:

systemctl start yum-cron.service

Performing Manual Updates

You should be able to perform manual updates with yum or dnf depending on the package manager available on your system. Using yum:

yum update tor

or using dnf:

dnf upgrade tor

Note: dnf has an update command, but this is just a deprecated alias for the new upgrade command.