I’m running a CentOS Tor mirror as a hidden service.
It is available under:
http://vnokiymjbiklyocz.onion/
If you want to use this mirror you must first install Tor.
Follow these instructions to do that:
https://www.torproject.org/docs/rpms.html.en
Once that is complete and the Tor service is running you must install torsocks (from the EPEL repositories):
[root@localhost ~]# yum install epel-release (...) Complete! [root@localhost ~]# yum install torsocks (...) Complete!
Afterwards change the YUM repository configuration file (/etc/yum.repos.d/CentOS-Base.repo) to include the hidden service URL.
Create a backup of the file in case you want to use the normal mirrors again.
The adjusted file should look like this (on CentOS 7):
[base] name=CentOS-$releasever - Base baseurl=http://vnokiymjbiklyocz.onion/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [updates] name=CentOS-$releasever - Updates baseurl=http://vnokiymjbiklyocz.onion/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [extras] name=CentOS-$releasever - Extras baseurl=http://vnokiymjbiklyocz.onion/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 [centosplus] name=CentOS-$releasever - Plus baseurl=http://vnokiymjbiklyocz.onion/centos/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
If you were manually editing the configuration file please notice that it is now using the baseurl option and not the mirrorlist option as before.
With this in place you can now use the hidden mirror and install packages like this:
[root@localhost ~]# export TORSOCKS_LOG_LEVEL=1 # only required to stop getting spammed with warning messages [root@localhost ~]# torsocks yum -y install bind-utils Loaded plugins: fastestmirror base | 3.6 kB 00:00:00 epel/x86_64/metalink | 26 kB 00:00:00 epel | 4.3 kB 00:00:00 extras | 3.4 kB 00:00:00 tor/x86_64/signature | 490 B 00:00:00 tor/x86_64/signature | 2.9 kB 00:00:00 !!! tor-source/signature | 490 B 00:00:00 tor-source/signature | 2.9 kB 00:00:00 !!! updates | 3.4 kB 00:00:00 (1/9): base/7/x86_64/group_gz | 155 kB 00:00:00 (2/9): epel/x86_64/group_gz | 169 kB 00:00:00 (3/9): epel/x86_64/updateinfo | 449 kB 00:00:00 (4/9): extras/7/x86_64/primary_db | 90 kB 00:00:00 (5/9): tor-source/primary_db | 2.4 kB 00:00:01 (6/9): tor/x86_64/primary_db | 4.0 kB 00:00:01 (7/9): updates/7/x86_64/primary_db | 953 kB 00:00:01 (8/9): epel/x86_64/primary_db | 3.7 MB 00:00:02 (9/9): base/7/x86_64/primary_db | 5.3 MB 00:00:05 Determining fastest mirrors * epel: mirror.netcologne.de Resolving Dependencies --> Running transaction check ---> Package bind-utils.x86_64 32:9.9.4-29.el7_2.1 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================= Package Arch Version Repository Size ================================================================================================================================================================= Installing: bind-utils x86_64 32:9.9.4-29.el7_2.1 updates 200 k Transaction Summary ================================================================================================================================================================= Install 1 Package Total download size: 200 k Installed size: 434 k Downloading packages: bind-utils-9.9.4-29.el7_2.1.x86_64.rpm | 200 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : 32:bind-utils-9.9.4-29.el7_2.1.x86_64 1/1 Verifying : 32:bind-utils-9.9.4-29.el7_2.1.x86_64 1/1 Installed: bind-utils.x86_64 32:9.9.4-29.el7_2.1 Complete!
Contact me if you need any help or if you have any suggestions.