Automic VaultAutomic Vault

brew

使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 socat

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install socat

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install socat

MacPorts ports tree · sysutils/socat/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add socat

Alpine Linux edge package indexes · socat · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install socat

Debian stable package indexes · socat · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install socat

Fedora Rawhide package metadata · socat · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#socat

nixpkgs package indexes · pkgs/by-name/so/socat/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S socat

Arch Linux sync databases · socat · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install socat

openSUSE Tumbleweed package metadata · socat · 来源: download.opensuse.org

概览

软件包摘要

SOcket CAT: netcat on steroids

命令和别名

  • filan
  • procan
  • socat
  • socat-broker.sh
  • socat-chain.sh
  • socat-mux.sh
  • socat1

历史

项目历史与用法

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.

时间线

  • 2008: Initial imported git commit for socat 1.6.0.0.
  • 2008: 1.7.0.0 tagged in the official repository.
  • 2023: 1.8.0.0 added network namespaces, POSIX message queues, SOCKS5, and helper scripts.
  • 2024: 1.8.0.2 fixed CVE-2024-54661.
  • 2026: 1.8.1.2 fixed CVE-2026-56123 in the SOCKS5 reply parser.
  • 2026: 1.8.1.3 fixed the test for the recent SOCKS5 parser issue on platforms with non-bash default shells.

Related projects

  • socat is commonly discussed as an extended netcat-style relay, and its homepage explicitly positions it as netcat++.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
filancli全局可执行文件
procancli全局可执行文件
socatcli全局可执行文件
socat-broker.shcli全局可执行文件
socat-chain.shcli全局可执行文件
socat-mux.shcli全局可执行文件
socat1cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.8.1.3
管理器更新时间2026-06-27
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
依赖openssl@3
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

socat 1.8.0.3-1

multipurpose relay for bidirectional data transfer

https://www.dest-unreach.org/socat/

sudo apt install socat
  • Section: net
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Socat
Debian stable package indexes · deb.debian.org · Debian stable package indexes: socat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

socat

nix profile install nixpkgs#socat
  • normalized package name match
  • 匹配方式:Socat
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/so/socat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

socat 1.8.0.0-4build3

multipurpose relay for bidirectional data transfer

https://www.dest-unreach.org/socat/

sudo apt install socat
  • Section: net
  • Architecture: amd64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Socat
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: socat from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

socat 1.8.1.1-r0

Multipurpose relay for binary protocols

http://www.dest-unreach.org/socat/

sudo apk add socat
  • License: GPL-2.0-only WITH OpenSSL-Exception
  • Architecture: x86_64
  • Source Package: socat
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Socat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: socat from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

socat-doc 1.8.1.1-r0

Multipurpose relay for binary protocols (documentation)

http://www.dest-unreach.org/socat/

sudo apk add socat-doc
  • License: GPL-2.0-only WITH OpenSSL-Exception
  • Architecture: x86_64
  • Source Package: socat
  • normalized package name match
  • 匹配方式:Socat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: socat-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

socat-scripts 1.8.1.1-r0

Multipurpose relay for binary protocols (helper scripts)

http://www.dest-unreach.org/socat/

sudo apk add socat-scripts
  • License: GPL-2.0-only WITH OpenSSL-Exception
  • Architecture: x86_64
  • Source Package: socat
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Socat
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: socat-scripts from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

socat 1.8.1.0-2.fc45

Bidirectional data relay between two data channels ('netcat++')

http://www.dest-unreach.org/socat/

sudo dnf install socat
  • License: GPL-2.0-only
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: socat
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Socat
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: socat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

socat 1.8.1.1-1

Multipurpose relay

http://www.dest-unreach.org/socat/

sudo pacman -S socat
  • License: GPL-2.0-only
  • Architecture: x86_64
  • 5 依赖
  • normalized package name match
  • 匹配方式:Socat
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: socat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

socat 1.8.1.1-1.2

Multipurpose relay for bidirectional data transfer

http://www.dest-unreach.org/socat/

sudo zypper install socat
  • License: MIT AND SUSE-GPL-2.0-with-openssl-exception
  • Category: Productivity/Networking/Other
  • Architecture: x86_64
  • Source Package: socat
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Socat
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: socat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

socat-extra 1.8.1.1-1.2

Additional scripts for socat

http://www.dest-unreach.org/socat/

sudo zypper install socat-extra
  • License: MIT AND SUSE-GPL-2.0-with-openssl-exception
  • Category: Productivity/Networking/Other
  • Architecture: x86_64
  • Source Package: socat
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Socat
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: socat-extra from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

socat

sudo port install socat
  • normalized package name match
  • 匹配方式:Socat
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/socat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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