Attention: These instructions are meant for installing tor
the network daemon i.e. little-t-tor.
For instructions on installing Tor Browser, refer to Tor Browser user manual.
Admin access: To install Tor you need root privileges.
Below all commands that need to be run as root user like apt and dpkg are prepended with '#', while commands to be run as user with '$' resembling the standard prompt in a terminal.
To open a root terminal you have several options: sudo su, or sudo -i, or su -i. Note that sudo asks for your user password, while su expects the root password of your system.
Debian / Ubuntu
Do not use the packages in Ubuntu's universe.
In passato non sono stati aggiornati in modo affidabile. Questo significa perdere stabilità e aggiornamenti di sicurezza.
- Configure Tor package repository
Enable the Tor Project APT repository by following the instructions.
# apt install tor
Fedora
- Configure Tor Package repository
Enable the Tor Project's RPM package repository by following the instructions.
# dnf install tor
FreeBSD
# pkg install tor
OpenBSD
# pkg_add tor
macOS
- Install a package manager
There are two package manager on OS X: Homebrew and Macports.
You can use the package manager of your choice.
To install Homebrew follow the instructions on brew.sh.
To install Macports follow the instructions on macports.org/install.php.
If you are using Homebrew in a Terminal window, run:
# brew install tor
If you are using Macports in a Terminal window, run:
$ sudo port install tor
Arch Linux
- To install the
tor
package on Arch Linux, run:
# pacman -Syu tor
DragonFlyBSD
Gli snapshot e le release giornaliere di DragonFlyBSD (a partire dalla 3.4) vengono fornite con pkg
già installato. Gli aggiornamenti da versioni precedenti, tuttavia, non lo avranno. Se pkg
manca sul sistema per qualsiasi motivo, può essere avviato rapidamente senza doverlo compilare dai sorgenti e senza dover installare DPorts:
# cd /usr
# make pkg-bootstrap
# rehash
# pkg-static install -y pkg
# rehash
- Recommended steps to setup
pkg
Here, it will be similar to what we have on a FreeBSD system, and we are going to use HTTPS to fetch our packages, and updates - so here we also need an extra package to help us out (ca_root_nss
).
Installazione del pacchetto ca_root_nss
:
# pkg install ca_root_nss
Per le nuove installazioni, il file /usr/local/etc/pkg/repos/df-latest.conf.sample
viene copiato in /usr/local/etc/pkg/repos/df-latest
. I file che terminano con l'estensione ".sample" vengono ignorati; pkg(8) legge solo i file che terminano con ".conf" e ne leggerà quanti ne trova.
DragonflyBSD has 2 packages repositories:
- Avalon (mirror-master.dragonflybsd.org);
- Wolfpond (pkg.wolfpond.org).
We can simply edit the URL used to point out the repositories on /usr/local/etc/pkg/repos/df-latest
and that's it! Remember to use pkg+https:// for Avalon.
Dopo aver applicato tutte queste modifiche, aggiorniamo nuovamente l'elenco dei pacchetti e cerchiamo di verificare se c'è già un nuovo aggiornamento da applicare:
# pkg update -f
# pkg upgrade -y -f
Installa il pacchetto tor
:
# pkg install tor
NetBSD
Le versioni moderne del sistema operativo NetBSD possono essere impostate per usare pkgin
, che è un software che ha lo scopo di essere come apt
o yum
per la gestione dei pacchetti binari pkgsrc. In questo caso non si converte la sua configurazione e si sceglie di usare invece il semplice pkg_add
.
# echo "PKG_PATH=http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/$(uname -r)/All" > /etc/pkg_install.conf
Install tor
NetBSD's package:
# pkg_add tor
Void Linux
To install the tor
package on Void Linux, please run:
# xbps-install -S tor
Installing Tor from source
- Download latest release and dependencies
The latest release of Tor can be found on the download page.
If you're building from source, first install libevent, and make sure you have openssl and zlib (including the -devel packages if applicable).
Now you can run tor as src/app/tor (0.4.3.x and later), or you can run make install
(as root if necessary) to install it into /usr/local/, and then you can start it just by running tor.