How To Install tor on CentOS 7

In this tutorial we learn how to install tor on CentOS 7. tor is Anonymizing overlay network for TCP

Introduction

In this tutorial we learn how to install tor on CentOS 7.

What is tor

The Tor network is a group of volunteer-operated servers that allows people to improve their privacy and security on the Internet. Tor’s users employ this network by connecting through a series of virtual tunnels rather than making a direct connection, thus allowing both organizations and individuals to share information over public networks without compromising their privacy. Along the same line, Tor is an effective censorship circumvention tool, allowing its users to reach otherwise blocked destinations or content. Tor can also be used as a building block for software developers to create new communication tools with built-in privacy features. This package contains the Tor software that can act as either a server on the Tor network, or as a client to connect to the Tor network.

We can use yum or dnf to install tor on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install tor.

Install tor on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install tor using yum by running the following command:

sudo yum -y install tor

Install tor on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install tor using dnf by running the following command:

sudo dnf -y install tor

How To Uninstall tor on CentOS 7

To uninstall only the tor package we can use the following command:

sudo dnf remove tor

References

Summary

In this tutorial we learn how to install tor on CentOS 7 using yum and dnf.