# 使用 Homebrew, apk, apt, Nix 安装 wego

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

## 安装

```sh
sudo av install brew:wego
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wego
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add wego
```

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

- Debian apt (92%):

```sh
sudo apt install wego
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#wego
```

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

## 软件包事实

- **软件包键:** brew:wego
- **软件包管理器:** Homebrew
- **版本:** 2.4
- **来源摘要:** Weather app for the terminal
- **主页:** <https://github.com/schachmat/wego>
- **仓库:** <https://github.com/schachmat/wego>
- **最后更新:** 2026-07-25T22:40:20+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wego (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

wego is a Go terminal weather client by Markus Teich. It renders current and forecast weather in terminal-friendly formats, including ASCII-art tables, emoji, Markdown, and JSON, using configurable weather-data backends.

### 项目历史

The GitHub repository was created in November 2014. In January 2015, Teich announced wego on the wmii/suckless development mailing list, explaining that he wrote it because he was tired of fetching large web pages, scripts, and images just to get a weather forecast.

The project stayed close to that origin: a small command-line weather report for people already living in the terminal. Later README features show a broadened backend and frontend model, with OpenWeatherMap, WeatherAPI, Open-Meteo, SMHI, Caiyun, WorldWeatherOnline, Pirate Weather, JSON input, cache TTL, multilingual forecasts, unit systems, and built-in man-page support.

### 采用历史

wego became known in the terminal-productivity niche rather than as a general weather app. A 2020 Opensource.com article presented it as a way to quickly fetch local weather from the command line and noted JSON and emoji output as useful alternatives to the default display.

Its adoption also leaked into adjacent tools: Opensource.com noted wttr.in as a web-based wrapper around wego, showing how a small CLI weather renderer became part of a broader command-line weather culture.

### 使用方式

Users configure a backend, location, units, language, frontend, days, and API key where required, then run `wego` to print a forecast. The README describes forecasts from one to seven days and notes that Open-Meteo and SMHI are keyless backends while most other services require credentials.

In package-manager contexts, wego is typically installed for shell startup, status scripts, quick terminal checks, or JSON weather data in small automations. Its value is the terminal presentation and backend abstraction, not heavy meteorological analysis.

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

wego is significant as a classic terminal lifestyle package: tiny, scriptable, configurable, and friendly to people who want useful daily information without leaving the shell.

### 时间线

- 2014-11: GitHub repository created.
- 2015-01: Author announced wego on the wmii/suckless development mailing list.
- 2016-03: Version 2.0 release published.
- 2020-01: Opensource.com covered wego as a terminal productivity tool.
- 2026-04: Version 2.4 release published.

### Related projects

- wego is related to terminal weather tools such as wttr.in and older shell scripts around weather APIs. Its distinguishing feature is packaged Go distribution with multiple backends and multiple output frontends.

### 来源

- <https://api.github.com/repos/schachmat/wego>
- <https://api.github.com/repos/schachmat/wego/releases?per_page=5>
- <https://github.com/schachmat/wego>
- <https://groups.google.com/g/wmii/c/nQKFzG-crO0>
- <https://opensource.com/article/20/1/open-source-weather-forecast>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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: $WEGORC, $XDG_CONFIG_HOME/wego/wegorc, ~/.wegorc

## Credential files

- Unix: $WEGORC, $XDG_CONFIG_HOME/wego/wegorc, ~/.wegorc
## 其他软件包管理器记录

- Debian apt - wego - 2.3-2+b6: normalized package name match | Debian stable package indexes: wego from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | weather client for the terminal | https://github.com/schachmat/wego
- Nix - wego: normalized package name match | nixpkgs package indexes: pkgs/by-name/we/wego/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - wego - 2.4-r2: normalized package name match | Alpine Linux edge package indexes: wego from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A weather app for the terminal | https://github.com/schachmat/wego
- apk - wego-doc - 2.4-r2: normalized package name match | Alpine Linux edge package indexes: wego-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A weather app for the terminal (documentation) | https://github.com/schachmat/wego


## Combined YAML source

View the package source record on GitHub. [combined/wego.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wego.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
