mirror of
https://github.com/Start9Labs/documentation.git
synced 2026-03-26 10:21:53 +00:00
Merge pull request #651 from Start9Labs/update/tor-for-rhel-centos-and-fedora
Simplify tor repo guide for CentOS/RHEL/Fedora
This commit is contained in:
@@ -53,34 +53,22 @@ Using Tor on Linux
|
||||
|
||||
.. group-tab:: CentOS / Fedora / RHEL
|
||||
|
||||
#. Configure the Tor Package repository. Add the following to ``/etc/yum.repos.d/tor.repo``:
|
||||
#. Configure the Tor Package repository
|
||||
|
||||
- CentOS / RHEL:
|
||||
Paste the following lines into a shell/Terminal session:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
os=$(cat /etc/os-release|grep "^ID="|cut -d= -f2|sed "s/\"//g") && \
|
||||
sudo cat << EOF > /etc/yum.repos.d/tor.repo
|
||||
[Tor]
|
||||
name=Tor for Enterprise Linux $releasever - $basearch
|
||||
baseurl=https://rpm.torproject.org/centos/$releasever/$basearch
|
||||
name=Tor for $os \$releasever - \$basearch
|
||||
baseurl=https://rpm.torproject.org/$os/\$releasever/\$basearch
|
||||
enabled=1
|
||||
gpgcheck=1
|
||||
gpgkey=https://rpm.torproject.org/centos/public_gpg.key
|
||||
cost=100
|
||||
|
||||
|
||||
- Fedora:
|
||||
|
||||
.. tip:: Latest Fedora versions have Tor package available for installation:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
[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
|
||||
gpgkey=https://rpm.torproject.org/$os/public_gpg.key
|
||||
cost=100
|
||||
EOF
|
||||
|
||||
#. Install the Tor package:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user