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

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

## 安装

```sh
sudo av install brew:surfraw
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install surfraw
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install surfraw
```

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

### Linux

- apk (92%):

```sh
sudo apk add surfraw
```

  证据: Alpine Linux edge package indexes: surfraw from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install surfraw
```

  证据: Debian stable package indexes: surfraw from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install surfraw
```

  证据: Fedora Rawhide package metadata: surfraw from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#surfraw
```

  证据: nixpkgs package indexes: pkgs/by-name/su/surfraw/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S surfraw
```

  证据: Arch Linux sync databases: surfraw from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install surfraw
```

  证据: openSUSE Tumbleweed package metadata: surfraw from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:surfraw
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/surfraw>
- **版本:** 2.3.0
- **来源摘要:** Shell Users' Revolutionary Front Rage Against the Web
- **主页:** <https://gitlab.com/surfraw/Surfraw>
- **上游文档:** <https://gitlab.com/surfraw/Surfraw>
- **许可证:** LicenseRef-Homebrew-public-domain
- **源码归档:** <https://ftp.openbsd.org/pub/OpenBSD/distfiles/surfraw-2.3.0.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- opensearch-discover (cli)
- opensearch-genquery (cli)
- sr (cli)
- surfraw (cli)
- surfraw-update-path (cli)
- opensearch-discover (别名)
- opensearch-genquery (别名)
- sr (别名)
- surfraw (别名)
- surfraw-update-path (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.3.0
- 本地数据: OK
- 上游仓库: https://gitlab.com/surfraw/Surfraw
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Surfraw is a Unix shell interface for web search engines and site-specific searches. Its culture is deliberately command-line native: searches are exposed as small shell commands called elvi, with the browser treated as an output target rather than the main search UI.

### 项目历史

The project began in 2000 as Surfaw 0.5.4 and was renamed Surfraw a few days later, according to the upstream NEWS file. By the 2003 Surfraw 2.0 release, a new development team had moved the project to Debian's Alioth infrastructure, added the short `sr` alias, added bookmark support, and reorganized elvi handling.

Surfraw continued to track the changing web by adding, fixing, and removing elvi as public search services appeared, changed interfaces, or disappeared. The 2018 2.3.0 release notes marked a move away from Debian's old platform to GitLab and noted that all elvi had moved to HTTPS.

### 采用历史

Surfraw's adoption has been strongest in Unix and package-manager communities rather than as a mass-market application. The input package facts list packages across Homebrew, Debian, Ubuntu, Fedora, Alpine, Arch, Nix, MacPorts, and openSUSE, reflecting a long tail of distro packaging for shell-heavy users.

### 使用方式

Typical use is `sr elviname search terms`, for example invoking an elvis for a web search, package lookup, documentation search, or site search. The README documents `surfraw -elvi` and `sr -elvi` for listing installed elvi, direct elvi use, XDG configuration, private elvi, and bookmark files.

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

Surfraw matters to package nerds because it turns web search targets, package indexes, bug trackers, documentation sites, and archives into composable shell entry points. It is a small expression of a larger Unix preference: keep search, text processing, terminal multiplexers, text browsers, and package metadata close to the command line.

### 时间线

- 2000: Initial Surfaw 0.5.4 release appears in upstream NEWS.
- 2000: Project renamed from Surfaw to Surfraw.
- 2003: Surfraw 2.0 ships with a new development team, `sr` alias, bookmark support, and expanded elvi.
- 2010: Surfraw 2.2.7 notes more than one hundred elvi.
- 2018: Surfraw 2.3.0 moves future development to GitLab and updates elvi to HTTPS.

### Related projects

- Surfraw is related to text browsers such as links and w3m, terminal multiplexers such as screen, and package/search elvi for Debian, Arch, AUR, documentation, bug trackers, and code search.

### 来源

- <https://gitlab.com/surfraw/Surfraw/-/raw/master/NEWS>
- <https://gitlab.com/surfraw/Surfraw/-/raw/master/README>
- input source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal


## 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

- Unix: /etc/xdg/surfraw/conf, ~/.config/surfraw/conf
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** surfraw
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - surfraw - 2.3.0-2: normalized package name match | Debian stable package indexes: surfraw from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast unix command line interface to WWW | http://gitlab.com/Surfraw/surfraw
- Debian apt - surfraw-extra - 2.3.0-2: normalized package name match | Debian stable package indexes: surfraw-extra from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | extra surfraw search tools with heavy dependencies | http://gitlab.com/Surfraw/surfraw
- Nix - surfraw: normalized package name match | nixpkgs package indexes: pkgs/by-name/su/surfraw/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - surfraw - 2.3.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: surfraw from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast unix command line interface to WWW | http://gitlab.com/Surfraw/surfraw
- Ubuntu apt - surfraw-extra - 2.3.0-2: normalized package name match | Ubuntu 24.04 LTS package indexes: surfraw-extra from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | extra surfraw search tools with heavy dependencies | http://gitlab.com/Surfraw/surfraw
- apk - surfraw - 2.3.0-r0: normalized package name match | Alpine Linux edge package indexes: surfraw from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Shell Users' Revolutionary Front Rage Against the Web | http://surfraw.org
- apk - surfraw-doc - 2.3.0-r0: normalized package name match | Alpine Linux edge package indexes: surfraw-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Shell Users' Revolutionary Front Rage Against the Web (documentation) | http://surfraw.org
- dnf - surfraw - 2.3.0-18.fc45: normalized package name match | Fedora Rawhide package metadata: surfraw from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Shell Users Revolutionary Front Rage Against the Web | https://gitlab.com/surfraw/Surfraw
- pacman - surfraw - 2.3.0-4: normalized package name match | Arch Linux sync databases: surfraw from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Shell Users' Revolutionary Front Rage Against the Web | https://gitlab.com/surfraw/Surfraw/
- zypper - surfraw - 2.3.0-4.6: normalized package name match | openSUSE Tumbleweed package metadata: surfraw from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command Line Interface to WWW Search Engines | https://gitlab.com/surfraw/Surfraw
- MacPorts - surfraw: normalized package name match | MacPorts ports tree: net/surfraw/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [samba](https://pkg.so/zh-hans/brew/samba/) - Shares pkgdb curated category or tags: cli, networking, unix.
- [vsftpd](https://pkg.so/zh-hans/brew/vsftpd/) - Shares pkgdb curated category or tags: cli, networking, unix.
- [center-im](https://pkg.so/zh-hans/brew/center-im/) - Shares pkgdb curated category or tags: cli, networking, unix.
- [websocketd](https://pkg.so/zh-hans/brew/websocketd/) - Shares pkgdb curated category or tags: cli, networking, unix.
- [bitchx](https://pkg.so/zh-hans/brew/bitchx/) - Shares pkgdb curated category or tags: cli, networking, unix.
- [is-fast](https://pkg.so/zh-hans/brew/is-fast/) - Shares pkgdb curated category or tags: cli, networking, web-search.
- [gdrive-downloader](https://pkg.so/zh-hans/brew/gdrive-downloader/) - Shares pkgdb curated category or tags: cli, networking, shell.
- [dehydrated](https://pkg.so/zh-hans/brew/dehydrated/) - Shares pkgdb curated category or tags: cli, networking, shell.
- [ffsend](https://pkg.so/zh-hans/brew/ffsend/) - Local package facts share a topical domain. Shared terms: cli, networking.
- [goimapnotify](https://pkg.so/zh-hans/brew/goimapnotify/) - Local package facts share a topical domain. Shared terms: cli, networking.

## Combined YAML source

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


## 来源

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