# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 2.3.0
- **来源摘要:** Shell Users' Revolutionary Front Rage Against the Web
- **主页:** <https://gitlab.com/surfraw/Surfraw>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
