Using this repository, you can get the latest Tor build for your distribution from the upstream project itself. Tor already provides similar packages for Debian/Ubuntu systems.
How to enable the repository in your Fedora box?
Add the following to the
[tor] name=Tor for Fedora $releasever - $basearch baseurl=https://rpm.torproject.org/fedora/$releasever/$basearch enabled=1 gpgcheck=1 gpgkey=https://rpm.torproject.org/fedora/public_gpg.key cost=100
Then you can install the package via regular
$ sudo dnf install tor
You will have to import the new keys used for signing these packages.
Importing GPG key 0x3621CD35: Userid : "Kushal Das (RPM Signing key) <firstname.lastname@example.org>" Fingerprint: 999E C8E3 14BC 8D46 022D 6C7D E217 C30C 3621 CD35 From : https://rpm.torproject.org/fedora/public_gpg.key Is this ok [y/N]: y
If you run a Tor relay (which you all should, one of the easiest ways to contribute to the project and help people worldwide) on CentOS/RHEL, you can use similar repository configuration.