# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 bitwise

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

## 安装

```sh
sudo av install brew:bitwise
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bitwise
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bitwise
```

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

### Linux

- apk (92%):

```sh
sudo apk add bitwise
```

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

- Debian apt (92%):

```sh
sudo apt install bitwise
```

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

- dnf (92%):

```sh
sudo dnf install bitwise
```

  证据: Fedora Rawhide package metadata: bitwise from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#bitwise
```

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

- zypper (92%):

```sh
sudo zypper install bitwise
```

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

## 软件包事实

- **软件包键:** brew:bitwise
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bitwise>
- **版本:** 0.50
- **来源摘要:** Terminal based bit manipulator in ncurses
- **主页:** <https://github.com/mellowcandle/bitwise>
- **仓库:** <https://github.com/mellowcandle/bitwise>
- **上游文档:** <https://github.com/mellowcandle/bitwise#readme>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/mellowcandle/bitwise/releases/download/v0.50/bitwise-v0.50.tar.gz>
- **已生成:** 2026-07-25T07:20:51+00:00

## 可执行文件

- bitwise (cli)
- bitwise (别名)

## 依赖

- readline

## 构建依赖

- autoconf
- automake

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

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

Bitwise is a terminal bit-manipulation calculator with an ncurses interface and a command-line expression mode. The README describes it as a multi-base interactive calculator for low-level hackers, kernel developers, and device-driver developers.

### 项目历史

The GitHub repository was created in 2019. Releases moved quickly through 0.3x and 0.4x in 2019, with v0.50 published in July 2023 and reflected in the generated man page.

### 采用历史

The README documents installation across Ubuntu, Snap, openSUSE, Arch AUR, Void, Fedora, Buildroot, Yocto, MacPorts, Homebrew, and Nix. The input package-manager data also lists several mainstream Unix package managers.

Its packaging footprint is broader than its small scope because bit/base conversion is useful in embedded, kernel, networking, and driver work where terminal tools are preferred.

### 使用方式

Without arguments, bitwise starts in interactive mode, where users can toggle individual bits, change bit widths, reverse endianness, and evaluate expressions. With an expression argument, it prints results in multiple bases, including binary.

The README also documents IPv4 address parsing and a Vim integration project, making it useful as both a standalone terminal tool and a helper for editor-driven low-level work.

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

Bitwise is a compact example of the sort of utility package that earns its place by replacing mental arithmetic and ad hoc shell snippets with one focused terminal UI.

Its significance is not ecosystem size but shape: ncurses, readline, packaged across Unix systems, and aimed at people reading registers, masks, addresses, and wire-level values.

### 时间线

- 2019: mellowcandle/bitwise repository created.
- 2019-07-10: v0.30 release published.
- 2021-11-01: v0.43 release published.
- 2023-07-20: v0.50 release published.

### Related projects

- vim-bitwise is linked by the README as editor integration.
- ncurses and readline are build-time/runtime libraries used for the terminal interface.
- Buildroot and Yocto are relevant downstream environments because the README notes Bitwise availability there.

### 来源

- <https://github.com/mellowcandle/bitwise#readme>
- <https://github.com/mellowcandle/bitwise/blob/master/bitwise.1>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bitwise
- **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 - bitwise - 0.50-1+b1: normalized package name match | Debian stable package indexes: bitwise from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Interactive bitwise operation in ncurses | https://github.com/mellowcandle/bitwise
- Nix - bitwise: normalized package name match | nixpkgs package indexes: pkgs/by-name/bi/bitwise/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bitwise - 0.50-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: bitwise from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Interactive bitwise operation in ncurses | https://github.com/mellowcandle/bitwise
- apk - bitwise - 0.50-r2: normalized package name match | Alpine Linux edge package indexes: bitwise from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal based bit manipulator in ncurses | https://github.com/mellowcandle/bitwise
- apk - bitwise-doc - 0.50-r2: normalized package name match | Alpine Linux edge package indexes: bitwise-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Terminal based bit manipulator in ncurses (documentation) | https://github.com/mellowcandle/bitwise
- dnf - bitwise - 0.50-8.fc44: normalized package name match | Fedora Rawhide package metadata: bitwise from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Terminal based bit manipulator in ncurses | https://github.com/mellowcandle/bitwise
- zypper - bitwise - 0.50-1.8: normalized package name match | openSUSE Tumbleweed package metadata: bitwise from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Interactive bit-wise operation in ncurses | https://github.com/mellowcandle/bitwise
- MacPorts - bitwise: normalized package name match | MacPorts ports tree: devel/bitwise/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [dex](https://www.automicvault.com/zh-hans/pkg/brew/dex/) - Shares av.db curated category or tags: cli, developer-tools, ncurses, terminal.
- [tweak](https://www.automicvault.com/zh-hans/pkg/brew/tweak/) - Shares av.db curated category or tags: cli, developer-tools, ncurses, terminal.
- [aha](https://www.automicvault.com/zh-hans/pkg/brew/aha/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ain](https://www.automicvault.com/zh-hans/pkg/brew/ain/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [ansifilter](https://www.automicvault.com/zh-hans/pkg/brew/ansifilter/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [asciinema](https://www.automicvault.com/zh-hans/pkg/brew/asciinema/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [atac](https://www.automicvault.com/zh-hans/pkg/brew/atac/) - Shares av.db curated category or tags: cli, developer-tools, terminal.
- [bcal](https://www.automicvault.com/zh-hans/pkg/brew/bcal/) - Shares av.db curated category or tags: calculator, cli, developer-tools.
- [rlwrap](https://www.automicvault.com/zh-hans/pkg/brew/rlwrap/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, readline, terminal.
- [dwarf](https://www.automicvault.com/zh-hans/pkg/brew/dwarf/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, manipulation, readline.

## Combined YAML source

View the package source record on GitHub. [combined/bitwise.yml](https://github.com/automic-vault/db/blob/main/combined/bitwise.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
