How To Install tor on Fedora 34

tor is Anonymizing overlay network for TCP

Introduction

In this tutorial we learn how to install tor on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install tor.

Install tor on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install tor

Install tor on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install tor

How To Uninstall tor on Fedora 34

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

sudo dnf remove tor

tor Package Contents on Fedora 34

/etc/logrotate.d/tor
/etc/tor
/etc/tor/README
/etc/tor/torrc
/run/tor
/usr/bin/tor
/usr/bin/tor-gencert
/usr/bin/tor-print-ed-signing-cert
/usr/bin/tor-resolve
/usr/bin/torify
/usr/lib/.build-id
/usr/lib/.build-id/10
/usr/lib/.build-id/10/ab68107c54e64b5ccaa327b8156d17a471664e
/usr/lib/.build-id/55
/usr/lib/.build-id/55/788b6b8fb7360614e17840d14839fd430377c4
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/9ecf5d7afb6d7adbfcbf2cc90b5e213b8efefa
/usr/lib/.build-id/f1
/usr/lib/.build-id/f1/793ef4cea70903312ac0a004c306494058aac3
/usr/lib/systemd/system/tor-master.service
/usr/lib/systemd/system/tor.service
/usr/lib/systemd/system/[email protected]
/usr/lib/tmpfiles.d/tor.conf
/usr/share/doc/tor
/usr/share/doc/tor/ChangeLog
/usr/share/doc/tor/HACKING
/usr/share/doc/tor/HACKING/CodingStandards.md
/usr/share/doc/tor/HACKING/CodingStandardsRust.md
/usr/share/doc/tor/HACKING/Fuzzing.md
/usr/share/doc/tor/HACKING/GettingStarted.md
/usr/share/doc/tor/HACKING/GettingStartedRust.md
/usr/share/doc/tor/HACKING/HelpfulTools.md
/usr/share/doc/tor/HACKING/HowToReview.md
/usr/share/doc/tor/HACKING/Module.md
/usr/share/doc/tor/HACKING/README.1st.md
/usr/share/doc/tor/HACKING/ReleasingTor.md
/usr/share/doc/tor/HACKING/WritingTests.md
/usr/share/doc/tor/README
/usr/share/doc/tor/ReleaseNotes
/usr/share/doc/tor/tor-gencert.html
/usr/share/doc/tor/tor-print-ed-signing-cert.html
/usr/share/doc/tor/tor-resolve.html
/usr/share/doc/tor/tor.html
/usr/share/doc/tor/torify.html
/usr/share/licenses/tor
/usr/share/licenses/tor/LICENSE
/usr/share/man/man1/tor-gencert.1.gz
/usr/share/man/man1/tor-print-ed-signing-cert.1.gz
/usr/share/man/man1/tor-resolve.1.gz
/usr/share/man/man1/tor.1.gz
/usr/share/man/man1/torify.1.gz
/usr/share/tor
/usr/share/tor/defaults-torrc
/usr/share/tor/geoip
/usr/share/tor/geoip6
/var/lib/tor
/var/log/tor
/etc/logrotate.d/tor
/etc/tor
/etc/tor/README
/etc/tor/torrc
/run/tor
/usr/bin/tor
/usr/bin/tor-gencert
/usr/bin/tor-print-ed-signing-cert
/usr/bin/tor-resolve
/usr/bin/torify
/usr/lib/.build-id
/usr/lib/.build-id/44
/usr/lib/.build-id/44/1dab0c65dec60362ce9e2df71aef0cbe7a988d
/usr/lib/.build-id/4a
/usr/lib/.build-id/4a/d7372bed56a22f0ee2a82814aebc5550444c56
/usr/lib/.build-id/80
/usr/lib/.build-id/80/64b4a513652646576b6d94712d67931fcceeb5
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/e243e2f7f1dc9df7146bae88b75769cfeda423
/usr/lib/systemd/system/tor-master.service
/usr/lib/systemd/system/tor.service
/usr/lib/systemd/system/[email protected]
/usr/lib/tmpfiles.d/tor.conf
/usr/share/doc/tor
/usr/share/doc/tor/ChangeLog
/usr/share/doc/tor/HACKING
/usr/share/doc/tor/HACKING/CodingStandards.md
/usr/share/doc/tor/HACKING/CodingStandardsRust.md
/usr/share/doc/tor/HACKING/Fuzzing.md
/usr/share/doc/tor/HACKING/GettingStarted.md
/usr/share/doc/tor/HACKING/GettingStartedRust.md
/usr/share/doc/tor/HACKING/HelpfulTools.md
/usr/share/doc/tor/HACKING/HowToReview.md
/usr/share/doc/tor/HACKING/Module.md
/usr/share/doc/tor/HACKING/README.1st.md
/usr/share/doc/tor/HACKING/ReleasingTor.md
/usr/share/doc/tor/HACKING/WritingTests.md
/usr/share/doc/tor/README
/usr/share/doc/tor/ReleaseNotes
/usr/share/doc/tor/tor-gencert.html
/usr/share/doc/tor/tor-print-ed-signing-cert.html
/usr/share/doc/tor/tor-resolve.html
/usr/share/doc/tor/tor.html
/usr/share/doc/tor/torify.html
/usr/share/licenses/tor
/usr/share/licenses/tor/LICENSE
/usr/share/man/man1/tor-gencert.1.gz
/usr/share/man/man1/tor-print-ed-signing-cert.1.gz
/usr/share/man/man1/tor-resolve.1.gz
/usr/share/man/man1/tor.1.gz
/usr/share/man/man1/torify.1.gz
/usr/share/tor
/usr/share/tor/defaults-torrc
/usr/share/tor/geoip
/usr/share/tor/geoip6
/var/lib/tor
/var/log/tor

References

Summary

In this tutorial we learn how to install tor on Fedora 34 using yum and dnf.