Running Tor (Linux)

Contents


After completing the guide below for your system, you can confirm Tor is running with:

    systemctl status tor

In the rare event that Tor is having connectivity issues, reset the connection:

    sudo systemctl restart tor

Debian/Ubuntu

This should work for most Debian-like systems, such as Debian, Ubuntu, Mint, PopOS etc.

The following instructions will install the LTS (Long Term Support) version of Tor from your distro's default repository. If you would always like the latest stable release, the Tor Project maintains their own Debian/Ubuntu repository. The instructions for connecting to this official Tor Project repository can be found here.

  1. Open a terminal and install/start Tor:

    sudo apt update && sudo apt install tor
    

Arch / Garuda / Manjaro

  1. Open a terminal and install/start Tor:

    sudo pacman -S tor
    

CentOS / Fedora / RHEL

  1. Configure the Tor Package repository. Add the following to /etc/yum.repos.d/tor.repo:

    [Tor]
    name=Tor for Enterprise Linux $releasever - $basearch
    baseurl=https://rpm.torproject.org/centos/$releasever/$basearch
    enabled=1
    gpgcheck=1
    gpgkey=https://rpm.torproject.org/centos/public_gpg.key
    cost=100
    

    For Fedora, the "name" line should be Tor for Fedora $releasever - $basearch

  2. Open a terminal and install Tor:

    sudo dnf install tor
    
  3. Enable tor service:

    sudo systemctl enable --now tor