# 使用 Homebrew, apt, zypper 安装 lunar-date

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

## 安装

```sh
sudo av install brew:lunar-date
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lunar-date
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install lunar-date
```

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

- zypper (92%):

```sh
sudo zypper install lunar-date
```

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

## 软件包事实

- **软件包键:** brew:lunar-date
- **软件包管理器:** Homebrew
- **版本:** 3.2.0
- **来源摘要:** Chinese lunar date library
- **主页:** <https://github.com/yetist/lunar-date>
- **仓库:** <https://github.com/yetist/lunar-date>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lunar-date (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

LunarDate is a Chinese lunar calendar date library with a C/GObject API, generated API documentation, language bindings, a D-Bus service, and a command-line tool.

### 项目历史

The GitHub repository was created in January 2013, but its NEWS file preserves an older liblunar lineage with releases from the 0.x, 1.x, and 2.x series. The changelog records the rename from `liblunar`/`lunar-calendar` lineage to `lunar-date` in version 2.4.0, separating the date library from the calendar application.

The 3.0.0 series modernized the project: the API version moved to 3.0, the build system moved to Meson, lunar date data was extended to 2100, GLib became the core dependency, holiday APIs were revised, obsolete APIs were removed, and a D-Bus service plus the `lunar-date` command-line tool were added.

### 采用历史

LunarDate is a niche library, but it is packaged beyond Homebrew: the source facts list Debian and Ubuntu GObject-introspection packages and an openSUSE shared-library package. That footprint reflects its role as a reusable system library rather than an end-user app.

The official API site documents LunarDate 3.0 with library version 3.2.0, GLib and GObject dependencies, headers under `lunar-date/lunar-date.h`, and source links back to GitHub. GitHub releases show maintenance continuing through version 3.2.0 in December 2025.

### 使用方式

Developers use LunarDate when they need Chinese lunar calendar calculations from C or GObject-introspection-friendly environments. The README shows Meson build options for documentation, introspection, Vala API generation, tests, and Windows cross-compilation.

The command-line surface is packaged as `lunar-date`, while the library surface is aimed at applications that need calendar conversion, holidays, solar terms, or GLib/GObject integration.

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

LunarDate matters to package maintainers because it is a small cultural-calendar library with ABI/API versioning, introspection data, Vala bindings, Meson options, Windows cross-build support, and distro package splits. Its history also shows the common open-source transition from a desktop-widget-adjacent library to a narrower reusable system library.

### 时间线

- 2013: Public GitHub repository created.
- 2.4.0: Project renamed to `lunar-date` and split from `lunar-calendar`.
- 2019: 2.9.x releases move away from autotools toward Meson.
- 2021: 3.0.0 releases API 3.0, Meson build, D-Bus service, and `lunar-date` CLI.
- 2025: 3.2.0 release adds legal-holiday information and gi-docgen documentation.

### Related projects

- GLib and GObject are the documented runtime dependencies.
- gi-docgen is used for generated API documentation.
- The NEWS file links the project historically to liblunar and lunar-calendar.

### 来源

- <https://api.github.com/repos/yetist/lunar-date>
- <https://api.github.com/repos/yetist/lunar-date/releases>
- <https://formulae.brew.sh/formula/lunar-date>
- <https://github.com/yetist/lunar-date>
- <https://github.com/yetist/lunar-date/blob/master/NEWS>
- <https://lunar-date.zhcn.cc/>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

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

- Debian apt - gir1.2-lunardate-3.0 - 3.0.1-2+b3: normalized package name match | Debian stable package indexes: gir1.2-lunardate-3.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GObject Introspection for lunar-date | https://github.com/yetist/lunar-date
- Debian apt - liblunar-date-3.0-1 - 3.0.1-2+b3: normalized package name match | Debian stable package indexes: liblunar-date-3.0-1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Chinese Lunar library based on GObject | https://github.com/yetist/lunar-date
- Debian apt - liblunar-date-dev - 3.0.1-2+b3: normalized package name match | Debian stable package indexes: liblunar-date-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Chinese Lunar library based on GObject - develop files | https://github.com/yetist/lunar-date
- Debian apt - liblunar-date-doc - 3.0.1-2: normalized package name match | Debian stable package indexes: liblunar-date-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Chinese Lunar library based on GObject - API documents | https://github.com/yetist/lunar-date
- Debian apt - lunar-date - 3.0.1-2+b3: normalized package name match | Debian stable package indexes: lunar-date from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Chinese Lunar library based on GObject - command and D-Bus | https://github.com/yetist/lunar-date
- Ubuntu apt - gir1.2-lunardate-3.0 - 3.0.1-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-lunardate-3.0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GObject Introspection for lunar-date | https://github.com/yetist/lunar-date
- Ubuntu apt - liblunar-date-3.0-1 - 3.0.1-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblunar-date-3.0-1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Chinese Lunar library based on GObject | https://github.com/yetist/lunar-date
- Ubuntu apt - liblunar-date-dev - 3.0.1-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblunar-date-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Chinese Lunar library based on GObject - develop files | https://github.com/yetist/lunar-date
- Ubuntu apt - liblunar-date-doc - 3.0.1-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: liblunar-date-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Chinese Lunar library based on GObject - API documents | https://github.com/yetist/lunar-date
- Ubuntu apt - lunar-date - 3.0.1-2build3: normalized package name match | Ubuntu 24.04 LTS package indexes: lunar-date from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Chinese Lunar library based on GObject - command and D-Bus | https://github.com/yetist/lunar-date
- zypper - liblunar-date-3_0-1 - 3.0.1-1.10: normalized package name match | openSUSE Tumbleweed package metadata: liblunar-date-3_0-1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Chinese Lunar calendar library | https://github.com/yetist/lunar-date
- zypper - lunar-date - 3.0.1-1.10: normalized package name match | openSUSE Tumbleweed package metadata: lunar-date from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Chinese Lunar calendar library | https://github.com/yetist/lunar-date
- zypper - lunar-date-devel - 3.0.1-1.10: normalized package name match | openSUSE Tumbleweed package metadata: lunar-date-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Chinese Lunar calendar library development files | https://github.com/yetist/lunar-date
- zypper - lunar-date-doc - 3.0.1-1.10: normalized package name match | openSUSE Tumbleweed package metadata: lunar-date-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Chinese Lunar calendar library Documents | https://github.com/yetist/lunar-date
- zypper - lunar-date-lang - 3.0.1-1.10: normalized package name match | openSUSE Tumbleweed package metadata: lunar-date-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Translations for package lunar-date | https://github.com/yetist/lunar-date
- zypper - typelib-1_0-LunarDate-3_0 - 3.0.1-1.10: normalized package name match | openSUSE Tumbleweed package metadata: typelib-1_0-LunarDate-3_0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Chinese Lunar calendar introspection bindings | https://github.com/yetist/lunar-date


## Combined YAML source

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