# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/lunar-date>
- **版本:** 3.2.0
- **来源摘要:** Chinese lunar date library
- **主页:** <https://github.com/yetist/lunar-date>
- **仓库:** <https://github.com/yetist/lunar-date>
- **许可证:** LGPL-2.1-or-later
- **源码归档:** <https://github.com/yetist/lunar-date/releases/download/v3.2.0/lunar-date-3.2.0.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- lunar-date (cli)
- lunar-date (别名)

## 依赖

- gettext
- glib

## 构建依赖

- meson
- ninja
- pkgconf

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 3.2.0
- 本地数据: OK
- 上游仓库: https://github.com/yetist/lunar-date
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** lunar-date
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- 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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [glib](https://pkg.so/zh-hans/brew/glib/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ninja](https://pkg.so/zh-hans/brew/ninja/) - Build dependency declared by Homebrew.
- [meson](https://pkg.so/zh-hans/brew/meson/) - Build dependency declared by Homebrew.
- [enchant](https://pkg.so/zh-hans/brew/enchant/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [notcurses](https://pkg.so/zh-hans/brew/notcurses/) - Shares pkgdb curated category or tags: c, cli, developer-tools, library.
- [ada-url](https://pkg.so/zh-hans/brew/ada-url/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [cgal](https://pkg.so/zh-hans/brew/cgal/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [json-glib](https://pkg.so/zh-hans/brew/json-glib/) - Shares pkgdb curated category or tags: c, cli, developer-tools, glib, library.
- [libvterm](https://pkg.so/zh-hans/brew/libvterm/) - Shares pkgdb curated category or tags: cli, developer-tools, library.
- [libdazzle](https://pkg.so/zh-hans/brew/libdazzle/) - Shares pkgdb curated category or tags: cli, developer-tools, glib, gobject, library.
- [gplugin](https://pkg.so/zh-hans/brew/gplugin/) - Shares pkgdb curated category or tags: cli, developer-tools, glib, gobject, library.
- [vala-language-server](https://pkg.so/zh-hans/brew/vala-language-server/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gettext, glib.
- [valabind](https://pkg.so/zh-hans/brew/valabind/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gettext, glib.
- [cutter-cli](https://pkg.so/zh-hans/brew/cutter-cli/) - Local package facts share a topical domain. Shared terms: c, cli, developer, developer-tools, gettext.

## 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
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
