2

I wanted to install a program on terminal but it's blocked. How do I torfiy my terminal to fetch the package over Tor?

mrphs
  • 2,754
  • 4
  • 21
  • 34
CatCoder
  • 121
  • 1
  • 3

2 Answers2

1

Assuming you want to do this using apt-get, rather than building from source, you can use torify in the following way:

# torify apt-get update
# torify apt-get install <jdk_packages>

[A similar solution was offered here: https://tor.stackexchange.com/a/839/1730]

Richard Horrocks
  • 3,155
  • 1
  • 15
  • 24
1

You can send any command over Tor with torify or torsocks.

Example:

torsocks wget https://path/to/file

or

torify apt-get update

or

torsocks git clone https://path/to/git

or even ssh, scp or sftp over Tor

torsocks ssh user@host
mrphs
  • 2,754
  • 4
  • 21
  • 34