# 使用 Homebrew, apk, MacPorts, Nix, pacman, scoop, apt, zypper 安装 cocogitto

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

## 安装

```sh
sudo av install brew:cocogitto
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cocogitto
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cocogitto
```

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

### Linux

- apk (92%):

```sh
sudo apk add cocogitto
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#cocogitto
```

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

- pacman (92%):

```sh
sudo pacman -S cocogitto
```

  证据: Arch Linux sync databases: cocogitto from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install cog
```

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

- zypper (92%):

```sh
sudo zypper install cog
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/cocogitto
```

  证据: Scoop official bucket manifest trees: bucket/cocogitto.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:cocogitto
- **软件包管理器:** Homebrew
- **版本:** 7.0.0
- **来源摘要:** Conventional Commits toolbox
- **主页:** <https://docs.cocogitto.io/>
- **仓库:** <https://github.com/cocogitto/cocogitto>
- **最后更新:** 2026-06-22T14:03:03-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cog (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Cocogitto is a Rust CLI and GitOps toolbox for Conventional Commits and Semantic Versioning. It packages commit-message creation, commit-history checking, changelog generation, version bumping, hooks, and CI integrations into the `cog` command.

### 项目历史

The GitHub repository was created in September 2020, and crates.io shows the `cocogitto` crate created later that month. The project README describes it as the Conventional Commits toolbox.

Early changelog entries in 2020 show rapid construction of core features: commit creation, verification, logs, changelog generation, bumping, hooks, and the move to `cog.toml` configuration. Later releases expanded CI/CD, Docker, monorepo workflows, signing support, and generated configuration reference docs.

### 采用历史

Cocogitto is distributed through Cargo and several OS package managers. crates.io lists more than 200 thousand downloads, while the input records packaging in Homebrew, apk, Debian, MacPorts, Nix, pacman, Scoop, and zypper.

The official docs also advertise installation through Cargo, Arch Linux, NixOS, Void Linux, Homebrew, and Chocolatey, showing that the project deliberately supports both Rust-native and OS package-manager installation paths.

### 使用方式

The main binary is `cog`. Users can run `cog commit` to create Conventional Commit messages, `cog check` to validate history, `cog changelog` to generate changelogs, and `cog bump` to derive semantic versions from commit history.

Configuration lives in a repository-root `cog.toml`. The official config reference describes settings for version generation, changelog handling, commit conventions, hooks, and monorepo support.

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

Cocogitto is a package-nerd tool about packages: it automates the release metadata loop around commits, changelogs, SemVer, tags, and CI. It is especially interesting for repos that want release automation without adopting a large hosted release platform.

Its distribution story is also typical of modern Rust CLIs: a Cargo crate is the canonical package, but downstream OS packages make the same single binary available to non-Rust users.

### 时间线

- 2020: Repository created and first rapid series of 0.x changelog releases published.
- 2020: `cog.toml` configuration name introduced in the 0.32.1 era.
- 2021: 1.0.0 released.
- 2023: 6.0.0 adds Docker image support and other release-flow changes.
- 2024: 6.2.0 migrates docs to VitePress and expands configuration docs.
- 2026: 7.0.0 adds monorepo dependency resolver work and package updates.

### Related projects

- Conventional Commits and SemVer are the standards Cocogitto is built around.
- cocogitto-action and cocogitto-bot are related GitHub integrations linked from the official docs.
- Adjacent changelog/release tools include git-cliff, release-plz, semantic-release, and commitlint.

### 来源

- <https://github.com/cocogitto/cocogitto>
- <https://raw.githubusercontent.com/cocogitto/cocogitto/main/README.md>
- <https://raw.githubusercontent.com/cocogitto/cocogitto/main/CHANGELOG.md>
- <https://docs.cocogitto.io/>
- <https://docs.cocogitto.io/reference/config.html>
- <https://crates.io/crates/cocogitto>


## 安全说明

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: cog.toml
## 其他软件包管理器记录

- Nix - cocogitto: normalized package name match | nixpkgs package indexes: pkgs/by-name/co/cocogitto/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - cocogitto - 7.0.0-r0: normalized package name match | Alpine Linux edge package indexes: cocogitto from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | The Conventional Commits toolbox | https://docs.cocogitto.io/
- apk - cocogitto-bash-completion - 7.0.0-r0: normalized package name match | Alpine Linux edge package indexes: cocogitto-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for cocogitto | https://docs.cocogitto.io/
- apk - cocogitto-doc - 7.0.0-r0: normalized package name match | Alpine Linux edge package indexes: cocogitto-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | The Conventional Commits toolbox (documentation) | https://docs.cocogitto.io/
- apk - cocogitto-fish-completion - 7.0.0-r0: normalized package name match | Alpine Linux edge package indexes: cocogitto-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for cocogitto | https://docs.cocogitto.io/
- apk - cocogitto-zsh-completion - 7.0.0-r0: normalized package name match | Alpine Linux edge package indexes: cocogitto-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for cocogitto | https://docs.cocogitto.io/
- pacman - cocogitto - 7.0.0-2: normalized package name match | Arch Linux sync databases: cocogitto from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Set of CLI tools for the conventional commit and semver specifications | https://github.com/cocogitto/cocogitto
- MacPorts - cocogitto: normalized package name match | MacPorts ports tree: devel/cocogitto/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/cocogitto: normalized package name match | Scoop official bucket manifest trees: bucket/cocogitto.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- MacPorts - cog: installed executable or alias match | MacPorts ports tree: gnome/cog/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - cog - 0.18.4-1: installed executable or alias match | Debian stable package indexes: cog from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Single-window web browser based on WPE WebKit | https://github.com/Igalia/cog
- Nix - cog: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/co/cog/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - cog - 0.18.5-3.4: installed executable or alias match | openSUSE Tumbleweed package metadata: cog from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | WPE launcher and webapp container | https://github.com/Igalia/cog
- zypper - cog-devel - 0.18.5-3.4: installed executable or alias match | openSUSE Tumbleweed package metadata: cog-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for cog | https://github.com/Igalia/cog


## Combined YAML source

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