# 使用 Homebrew, MacPorts 安装 dsocks

查看 dsocks 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dsocks
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dsocks
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install dsocks
```

  证据: MacPorts ports tree: net/dsocks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:dsocks
- **软件包管理器:** Homebrew
- **版本:** 1.8
- **来源摘要:** SOCKS client wrapper for *BSD/macOS
- **主页:** <https://monkey.org/~dugsong/dsocks/>
- **仓库:** <https://github.com/dugsong/dsocks>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dsocks.sh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.8
## 项目历史与用法

dsocks is Dug Song's small SOCKS client wrapper for BSD and Mac OS X.

### 项目历史

The official page says dsocks implements only enough SOCKS4 and SOCKS5 support to use OpenSSH dynamic forwarding or a local Tor SOCKS proxy. Its upstream distribution was a tarball plus a Google Code SVN checkout.

### 采用历史

The input metadata shows dsocks preserved in Homebrew and MacPorts, fitting the long tail of small Unix networking tools that package managers keep installable after their original hosting era.

### 使用方式

The documented examples wrap scp through an SSH dynamic tunnel, use Tor with a DNS proxy to avoid DNS leaks while browsing, and run ssh through Tor with dsocks-torify.sh.

### 为什么软件包爱好者会关心

dsocks is a compact historical proxy wrapper: narrow platform target, old source hosting, simple shell-facing UX, and practical value for users who want per-command proxying instead of a larger framework.

### 时间线

- Google Code era: Official page linked a source tarball and SVN checkout.
- 2026 batch: Input metadata shows continued Homebrew and MacPorts packaging.

### Related projects

- OpenSSH is central to the documented dynamic SOCKS forwarding workflow.
- Tor is central to the documented anonymous SSH and browsing examples.
- dpkt is linked by the official page for tor-dns-proxy.py.

### 来源

- <https://monkey.org/~dugsong/dsocks>
- source_facts.package-manager


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 其他软件包管理器记录

- MacPorts - dsocks: normalized package name match | MacPorts ports tree: net/dsocks/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/dsocks.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dsocks.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
