# 使用 Homebrew, MacPorts 安装 webarchiver

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

## 安装

```sh
sudo av install brew:webarchiver
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install webarchiver
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install webarchiver
```

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

## 软件包事实

- **软件包键:** brew:webarchiver
- **软件包管理器:** Homebrew
- **版本:** 0.13
- **来源摘要:** Allows you to create Safari .webarchive files
- **主页:** <https://github.com/newzealandpaul/webarchiver>
- **仓库:** <https://github.com/newzealandpaul/webarchiver>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- webarchiver (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Webarchiver is a small macOS command-line utility for creating Safari `.webarchive` files. Its niche is narrow but clear: it exposes Safari/WebKit's single-file web archive format to shell scripts.

### 项目历史

The public GitHub repository was created in November 2008, and the author's GitHub profile notes that the project was featured on the GitHub blog in December 2008. The README presents it as a simple Objective-C command-line tool that saves a URL and its associated page resources into a Safari webarchive file.

The project has stayed small and specialized rather than becoming a broad archiving framework. Later discussion of command-line Safari webarchives points back to it as prior art, while also noting that its Objective-C implementation uses older WebKit classes such as WebView and WebArchive.

### 采用历史

Adoption appears to be niche and Mac-specific: the repository has modest stars and forks, but it has persisted in package managers because Safari webarchives remain a recognizable local archival format. Its value is mostly for people who want scriptable capture into a format Safari can open.

### 使用方式

The documented use is direct CLI capture, for example providing a source URL and an output `.webarchive` filename. This fits one-off page saving, shell loops over URLs, and personal archiving workflows where a Safari-compatible bundle is preferable to a directory of downloaded assets.

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

Webarchiver is package-nerd interesting because it packages a tiny bridge into an Apple-specific file format. It is not a general crawler like wget or a preservation system like WARC tooling; it is a small command that makes Safari's single-file archive format reachable from Homebrew-era automation.

### 时间线

- 2008-11: The GitHub repository was created.
- 2008-12: The author's GitHub profile says the project was featured on the GitHub blog.
- 2024: A newer Safari webarchive CLI write-up cited newzealandpaul/webarchiver as prior art and contrasted it with newer WKWebView APIs.

### Related projects

- Related tools include Safari's own Save As Web Archive feature, newer WKWebView-based scripts for creating webarchives, and broader web-archiving tools such as wget, SingleFile, and WARC-oriented crawlers.

### 来源

- <https://alexwlchan.net/2024/creating-a-safari-webarchive/>
- <https://api.github.com/repos/newzealandpaul/webarchiver>
- <https://github.com/newzealandpaul>
- <https://github.com/newzealandpaul/webarchiver>


## 安全说明

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

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

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

- MacPorts - webarchiver: normalized package name match | MacPorts ports tree: www/webarchiver/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/webarchiver.yml](https://github.com/mxcl/pkgdb/blob/main/combined/webarchiver.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
