# 使用 Homebrew, apt, MacPorts 安装 lgeneral

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

## 安装

```sh
sudo av install brew:lgeneral
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lgeneral
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lgeneral
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install lgeneral
```

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

## 软件包事实

- **软件包键:** brew:lgeneral
- **软件包管理器:** Homebrew
- **版本:** 1.4.4
- **来源摘要:** Turn-based strategy engine heavily inspired by Panzer General
- **主页:** <https://lgames.sourceforge.io/LGeneral/>
- **最后更新:** 2026-06-01T15:08:00Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lgc-pg (别名)
- lged (别名)
- lgeneral (别名)
- ltrextract (别名)
- shptool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

LGeneral is an open-source turn-based strategy engine inspired by Panzer General. It packages a retro tactical wargame engine, conversion tools, editor-related utilities, and data workflows around Panzer General-style scenarios and campaigns.

### 项目历史

The official LGames page describes LGeneral as a turn-based strategy engine heavily inspired by Panzer General, with single scenarios, campaigns, human or AI opponents, entrenchment, defensive fire, supply, weather, reinforcements, and related tactical mechanics.

Its distribution history is unusually tied to data conversion. The official downloads note that the engine requires `pg-data.tar.gz` or the original DOS version of Panzer General, and the formula exposes helper tools such as `lgc-pg`, `lged`, `ltrextract`, and `shptool` alongside the game binary.

### 采用历史

LGeneral has survived as a small open-source game package through SourceForge, Linux distributions, MacPorts, Homebrew, Debian/Ubuntu packages named around `lgc-pg`, and a Flathub package. That cross-packaging pattern is typical for older SDL games kept alive by maintainers and distro archivists.

### 使用方式

Players run `lgeneral` for campaigns or scenarios, while package maintainers and users may use the converter tooling to prepare Panzer General-derived data. The official page also points to K.u.k General data as a free stand-alone WWI scenario package.

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

LGeneral is significant as a preservation package: it keeps a Panzer General-like engine available on Unix-like systems while separating executable code, converted legacy data, free scenario data, and distro packaging. It is the kind of game formula that exists because packaging culture values keeping old engines buildable.

### 时间线

- 2002: The LGames website footer marks the start of the hosted project era.
- 2007-09-27: SourceForge lists the `lgeneral-1.2beta-13` source archive.
- 2010-09-29: SourceForge lists `lgeneral-1.2.tar.gz`.
- 2017-08-27: SourceForge lists `lgeneral-1.4.0.tar.gz`.
- 2021-01-08: SourceForge lists `lgeneral-1.4.4.tar.gz` and a Windows zip.

### Related projects

- LGeneral is related to Panzer General, LGames projects such as LBreakout and LTris, SDL, SDL_mixer, K.u.k General data, Flathub packaging, and old-game data conversion tools.

### 来源

- <https://formulae.brew.sh/formula/lgeneral>
- <https://lgames.sourceforge.io/LGeneral>
- <https://sourceforge.net/projects/lgeneral/rss?path=/lgeneral>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Debian apt - lgc-pg - 1.4.4-4: normalized package name match | Debian stable package indexes: lgc-pg from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | LGeneral converter for Panzer General game data | https://lgames.sourceforge.net
- Debian apt - lgeneral - 1.4.4-4: normalized package name match | Debian stable package indexes: lgeneral from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | strategy game in the tradition of Panzer General | https://lgames.sourceforge.net
- Ubuntu apt - lgc-pg - 1.4.4-2: normalized package name match | Ubuntu 24.04 LTS package indexes: lgc-pg from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | LGeneral converter for Panzer General game data | http://lgames.sourceforge.net
- Ubuntu apt - lgeneral - 1.4.4-2: normalized package name match | Ubuntu 24.04 LTS package indexes: lgeneral from https://archive.ubuntu.com/ubuntu/dists/noble/multiverse/binary-amd64/Packages.gz | strategy game in the tradition of Panzer General | http://lgames.sourceforge.net
- MacPorts - lgeneral: normalized package name match | MacPorts ports tree: games/lgeneral/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/lgeneral.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lgeneral.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
