macOS
brew install socatlocal Homebrew formula metadata
sudo port install socatMacPorts ports tree · sysutils/socat/Portfile · 来源: api.github.com
安装
brew install socatlocal Homebrew formula metadata
sudo port install socatMacPorts ports tree · sysutils/socat/Portfile · 来源: api.github.com
sudo apk add socatAlpine Linux edge package indexes · socat · 来源: dl-cdn.alpinelinux.org
sudo dnf install socatFedora Rawhide package metadata · socat · 来源: dl.fedoraproject.org
nix profile install nixpkgs#socatnixpkgs package indexes · pkgs/by-name/so/socat/package.nix · 来源: api.github.com
sudo pacman -S socatArch Linux sync databases · socat · 来源: geo.mirror.pkgbuild.com
sudo zypper install socatopenSUSE Tumbleweed package metadata · socat · 来源: download.opensuse.org
概览
SOcket CAT: netcat on steroids
历史
socat is a classic Unix command-line relay for connecting two bidirectional byte streams. Its own homepage describes it as netcat++: an extended-design, new implementation command for TCP, UDP, Unix sockets, PTYs, files, SSL, proxies, raw sockets, and many other address types.
The official git repository's earliest imported commit is from January 27, 2008 for socat 1.6.0.0, while the project homepage continues to publish release notes, source tarballs, checksums, documentation, and security advisories.
socat's development history is long and conservative by CLI standards: releases add transport/address families, fix portability issues, and preserve compatibility for scripts. Version 1.8.0.0 in 2023 added network namespaces, POSIX message queues, systemd inetd-style ACCEPT-FD, SOCKS5 client support, and helper scripts for chained, muxed, and brokered connections.
The supplied package-manager facts show socat packaged across Homebrew, Alpine, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE. That breadth is consistent with its role as an administrator's network Swiss army knife, often installed as a dependency or debugging aid rather than as an end-user application.
Official docs and homepage examples show socat relaying between address specifications such as TCP listeners, proxies, Unix sockets, PTYs, files, stdio, SSL endpoints, and command execution. Users value it because a single invocation can replace small custom relay programs or awkward shell glue.
Package nerds care about socat because it is one of the canonical small tools that makes Unix packaging feel powerful: install one binary and gain a laboratory for sockets, pipes, terminals, tunnels, proxies, namespaces, and service debugging. Its release notes also matter to maintainers because networking and parser bugs can be security-sensitive.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
filan | cli | 全局可执行文件 | |
procan | cli | 全局可执行文件 | |
socat | cli | 全局可执行文件 | |
socat-broker.sh | cli | 全局可执行文件 | |
socat-chain.sh | cli | 全局可执行文件 | |
socat-mux.sh | cli | 全局可执行文件 | |
socat1 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
http://www.dest-unreach.org/socat/
安装元数据
| 软件包键 | brew:socat |
|---|---|
| 版本 | 1.8.1.3 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/socat |
| 主页 | http://www.dest-unreach.org/socat/ |
| 仓库 | https://repo.or.cz/socat.git |
| 上游文档 | http://www.dest-unreach.org/socat/doc/socat.html |
| 许可证 | GPL-2.0-only |
| 源码归档 | https://distfiles.alpinelinux.org/distfiles/edge/socat-1.8.1.3.tar.gz |
| 最后更新 | 2026-06-27T07:44:31Z |
| Pulse | updated |
| 依赖 | openssl@3 |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | socat |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
socat 1.8.0.3-1
multipurpose relay for bidirectional data transfer
https://www.dest-unreach.org/socat/
sudo apt install socatsocat
nix profile install nixpkgs#socatsocat 1.8.0.0-4build3
multipurpose relay for bidirectional data transfer
https://www.dest-unreach.org/socat/
sudo apt install socatsocat 1.8.1.1-r0
Multipurpose relay for binary protocols
http://www.dest-unreach.org/socat/
sudo apk add socatsocat-doc 1.8.1.1-r0
Multipurpose relay for binary protocols (documentation)
http://www.dest-unreach.org/socat/
sudo apk add socat-docsocat-scripts 1.8.1.1-r0
Multipurpose relay for binary protocols (helper scripts)
http://www.dest-unreach.org/socat/
sudo apk add socat-scriptssocat 1.8.1.0-2.fc45
Bidirectional data relay between two data channels ('netcat++')
http://www.dest-unreach.org/socat/
sudo dnf install socatsocat 1.8.1.1-1
Multipurpose relay
http://www.dest-unreach.org/socat/
sudo pacman -S socatsocat 1.8.1.1-1.2
Multipurpose relay for bidirectional data transfer
http://www.dest-unreach.org/socat/
sudo zypper install socatsocat-extra 1.8.1.1-1.2
Additional scripts for socat
http://www.dest-unreach.org/socat/
sudo zypper install socat-extrasocat
sudo port install socat来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.