Automic VaultAutomic Vault

brew

Install torsocks with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman

Use SOCKS-friendly applications with Tor. Version 2.5.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install torsocks

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install torsocks

MacPorts ports tree · net/torsocks/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add torsocks

Alpine Linux edge package indexes · torsocks · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libtorsocks

Debian stable package indexes · libtorsocks · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install torsocks

Fedora Rawhide package metadata · torsocks · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#torsocks

nixpkgs package indexes · pkgs/by-name/to/torsocks/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S torsocks

Arch Linux sync databases · torsocks · source: geo.mirror.pkgbuild.com

Ubuntu aptverified · 92%
sudo apt install torsocks

Ubuntu 24.04 LTS package indexes · torsocks · source: archive.ubuntu.com

overview

Package summary

Use SOCKS-friendly applications with Tor

Commands and aliases

  • torsocks

history

Project history and usage

torsocks is a Tor Project command-line wrapper and preload library that routes many ordinary network applications through Tor. The official README says it handles DNS safely and rejects traffic other than TCP; the Tor support glossary gives the same user-facing explanation.

Project history

torsocks exists to solve a practical gap around the tor daemon: many applications speak TCP but do not know how to use Tor's SOCKS proxy safely. torsocks wraps an application with LD_PRELOAD and overrides libc networking calls such as connect and gethostbyname so the application's traffic is forced through Tor when the mechanism is applicable.

The Tor Project blog announced torsocks 1.2 in October 2011 as a Linux, BSD, and Mac OS X application for using network applications such as ssh and irssi with Tor. That release focused on adding a test suite, cleaning source code, simplifying the build, compiling on more BSD versions, and adding leak-prevention defenses.

By August 2014, Tor Weekly News said torsocks 2.0 was considered stable after more than a year of effort, describing it as a wrapper program that forces an application's network connections through Tor. Later Tor Project writing about oniux in 2025 used torsocks as the established comparison point and explained its libc-overriding approach and leak limitations.

Adoption history

torsocks became a standard companion package for command-line Tor users because it lets existing tools like ssh, irssi, curl-like clients, and other dynamically linked libc applications attempt network access through Tor without those applications adding native SOCKS support.

The input package facts show torsocks packaged across Homebrew, Debian/Ubuntu via libtorsocks, Fedora/dnf, Arch/pacman, Nix, MacPorts, apk, and zypper. That breadth reflects its role as a small Unix privacy utility commonly installed beside tor.

How it is used

The README's basic usage is torsocks [application], with torsocks ssh username@host as an example. It also documents direct LD_PRELOAD usage with libtorsocks.so, and warns that applications using raw syscalls or bypassing libc cannot be protected by this mechanism.

The wrapper reads /etc/tor/torsocks.conf or a TORSOCKS_CONF_FILE override, and otherwise uses sensible defaults for common Tor installations. Package nerds use it for quick torification of terminal tools, circuit isolation experiments, and privacy-aware testing where a full network namespace or VM would be heavier.

Why package nerds care

torsocks is a classic package-nerd tool because it is small, composable, and sharp-edged: it gives ordinary commands a Tor routing context, but its README clearly states the LD_PRELOAD ceiling. That makes it useful and also educational for understanding where user-space wrappers stop and stronger isolation begins.

Its continued relevance is visible in Tor Project's 2025 oniux announcement, which presents oniux as a newer alternative for Linux isolation while using torsocks as the familiar baseline.

Timeline

  • 2011: Tor Project blog announces torsocks 1.2 for Linux, BSD, and Mac OS X, with leak-prevention and portability work.
  • 2014: Tor Weekly News says torsocks 2.0 is considered stable after more than a year of effort.
  • 2025: Tor Project introduces oniux and compares it with torsocks' libc-overriding approach.

Related projects

  • torsocks is directly related to the tor daemon, Tor's SOCKS proxy, torify-style workflows, and newer Tor Project isolation work such as oniux. It also overlaps historically with tsocks-style SOCKS wrapping.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
/etc/tor/torsocks.conf

executables

Installed executables

CommandKindExposureNote
torsockscliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.5.0
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://gitlab.torproject.org/tpo/core/torsocks

install metadata

Package metadata

Package keybrew:torsocks
Version2.5.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/torsocks
Homepagehttps://gitlab.torproject.org/tpo/core/torsocks
Upstream docshttps://gitlab.torproject.org/tpo/core/torsocks#readme
LicenseGPL-2.0-only
Source archivehttps://gitlab.torproject.org/tpo/core/torsocks/-/archive/v2.5.0/torsocks-v2.5.0.tar.bz2
Build dependenciesautoconf, automake, libtool
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nametorsocks
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libtorsocks 2.5.0-1+deb13u1

use SOCKS-friendly applications with Tor (library)

https://gitweb.torproject.org/torsocks.git

sudo apt install libtorsocks
  • Section: net
  • Architecture: amd64
  • Source Package: torsocks
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Torsocks
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libtorsocks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

torsocks 2.5.0-1+deb13u1

use SOCKS-friendly applications with Tor

https://gitweb.torproject.org/torsocks.git

sudo apt install torsocks
  • Section: net
  • Architecture: all
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Torsocks
Debian stable package indexes · deb.debian.org · Debian stable package indexes: torsocks from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

torsocks

nix profile install nixpkgs#torsocks
  • normalized package name match
  • Matched by: Torsocks
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/to/torsocks/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

torsocks 2.4.0-1

use SOCKS-friendly applications with Tor

https://gitweb.torproject.org/torsocks.git

sudo apt install torsocks
  • Section: universe/net
  • Architecture: amd64
  • 1 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Torsocks
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: torsocks from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

torsocks 2.5.0-r0

Wrapper to safely torify applications

https://gitlab.torproject.org/tpo/core/torsocks

sudo apk add torsocks
  • License: GPL-2.0
  • Architecture: x86_64
  • Source Package: torsocks
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Torsocks
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: torsocks from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

torsocks-doc 2.5.0-r0

Wrapper to safely torify applications (documentation)

https://gitlab.torproject.org/tpo/core/torsocks

sudo apk add torsocks-doc
  • License: GPL-2.0
  • Architecture: x86_64
  • Source Package: torsocks
  • normalized package name match
  • Matched by: Torsocks
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: torsocks-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

torsocks 2.4.0-10.fc43

Use SOCKS-friendly applications with Tor

https://gitweb.torproject.org/torsocks.git

sudo dnf install torsocks
  • License: GPL-2.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: torsocks
  • 4 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Torsocks
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: torsocks from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

torsocks 2.5.0-1

Wrapper to safely torify applications

https://gitlab.torproject.org/tpo/core/torsocks

sudo pacman -S torsocks
  • License: GPL-2.0-or-later
  • Architecture: x86_64
  • 3 dependencies
  • normalized package name match
  • Matched by: Torsocks
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: torsocks from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

torsocks

sudo port install torsocks
  • normalized package name match
  • Matched by: Torsocks
MacPorts ports tree · api.github.com · MacPorts ports tree: net/torsocks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment