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

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

## 安装

```sh
sudo av install brew:leveldb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install leveldb
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install leveldb
```

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

### Linux

- apk (92%):

```sh
sudo apk add leveldb
```

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

- dnf (92%):

```sh
sudo dnf install leveldb
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#leveldb
```

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

- pacman (92%):

```sh
sudo pacman -S leveldb
```

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

- zypper (92%):

```sh
sudo zypper install leveldb
```

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

- Debian apt (92%):

```sh
sudo apt install leveldb-doc
```

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

## 软件包事实

- **软件包键:** brew:leveldb
- **软件包管理器:** Homebrew
- **版本:** 1.23
- **来源摘要:** Key-value storage library with ordered mapping
- **主页:** <https://github.com/google/leveldb/>
- **仓库:** <https://github.com/google/leveldb>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- leveldbutil (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

LevelDB is Google's embeddable, ordered key-value storage library. It is small enough to package as a C++ library but historically important because it made log-structured merge-tree storage, Snappy compression, and sorted key iteration available as a reusable building block.

### 项目历史

Google announced LevelDB as open source on July 27, 2011 under a BSD-style license. The announcement described it as a fast persistent key-value store written at Google and designed for use in browsers, operating systems, applications, and higher-level storage systems.

The upstream repository credits Google Inc. and lists Jeffrey Dean and Sanjay Ghemawat as the initial version authors. The README and documentation describe the core model that made LevelDB influential: string keys and values, ordered storage by key, atomic batch writes, snapshots, forward/backward iteration, and optional compression.

### 采用历史

Google's 2011 announcement already named early adoption targets and relatives: Chrome's IndexedDB implementation was being built on LevelDB, Bigtable tablets were a design ancestor, and Riak had added LevelDB support for per-node storage. Over time, LevelDB also became a common dependency in language bindings, blockchain clients, browser storage, and package-manager indexes.

### 使用方式

LevelDB is normally linked into an application rather than run as a server. Package managers often ship the library, headers, and small utility programs so downstream software can embed fast local key-value storage without adding an external database daemon.

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

Package nerds care about LevelDB because it is one of the canonical small C++ libraries that quietly sits underneath larger systems. It also produced a family tree: RocksDB and many language-specific Level* packages made the LevelDB API and storage pattern part of everyday infrastructure.

### 时间线

- 2011: Google announced LevelDB as open source on July 27, 2011.
- 2011: Google's announcement described Chrome IndexedDB, Bigtable, and Riak connections.
- 2014: The `google/leveldb` GitHub repository was created on August 27, 2014.
- 2016: LevelDB 1.19 release notes added APIs such as approximate memory usage and ARM64 support.
- 2026: The upstream repository remained the canonical source for the library and documentation.

### Related projects

- LevelDB is related to Bigtable conceptually, to Chrome IndexedDB as an embedded storage backend, to Riak through backend adoption, and to RocksDB as a major descendant. It also has a broad ecosystem of bindings and ports in Go, Node.js, Rust, Python, and other languages.

### 来源

- <https://api.github.com/repos/google/leveldb>
- <https://formulae.brew.sh/formula/leveldb>
- <https://github.com/google/leveldb>
- <https://github.com/google/leveldb/blob/main/AUTHORS>
- <https://github.com/google/leveldb/blob/main/doc/index.md>
- <https://opensource.googleblog.com/2011/07/leveldb-fast-persistent-key-value-store.html>


## 安全说明

library-like package without higher-risk signals.

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

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

- Debian apt - leveldb-doc - 1.23-5: normalized package name match | Debian stable package indexes: leveldb-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | LevelDB documentation | https://github.com/google/leveldb
- Debian apt - libleveldb-dev - 1.23-5+b2: normalized package name match | Debian stable package indexes: libleveldb-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast key-value storage library (development files) | https://github.com/google/leveldb
- Debian apt - libleveldb1d - 1.23-5+b2: normalized package name match | Debian stable package indexes: libleveldb1d from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | fast key-value storage library | https://github.com/google/leveldb
- Nix - leveldb: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/leveldb/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - leveldb-doc - 1.23-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: leveldb-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | LevelDB documentation | https://github.com/google/leveldb
- Ubuntu apt - libleveldb-dev - 1.23-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libleveldb-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast key-value storage library (development files) | https://github.com/google/leveldb
- Ubuntu apt - libleveldb1d - 1.23-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libleveldb1d from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | fast key-value storage library | https://github.com/google/leveldb
- apk - leveldb - 1.23-r1: normalized package name match | Alpine Linux edge package indexes: leveldb from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A fast and lightweight key/value database library by Google | https://github.com/google/leveldb
- apk - leveldb-dev - 1.23-r1: normalized package name match | Alpine Linux edge package indexes: leveldb-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A fast and lightweight key/value database library by Google (development files) | https://github.com/google/leveldb
- apk - leveldb-doc - 1.23-r1: normalized package name match | Alpine Linux edge package indexes: leveldb-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A fast and lightweight key/value database library by Google (documentation) | https://github.com/google/leveldb
- dnf - leveldb - 1.23-15.fc45: normalized package name match | Fedora Rawhide package metadata: leveldb from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A fast and lightweight key/value database library by Google | https://github.com/google/leveldb
- dnf - leveldb-devel - 1.23-15.fc45: normalized package name match | Fedora Rawhide package metadata: leveldb-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for leveldb | https://github.com/google/leveldb
- pacman - leveldb - 1.23-4: normalized package name match | Arch Linux sync databases: leveldb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A fast and lightweight key/value database library | https://github.com/google/leveldb/
- zypper - leveldb - 1.23-6.5: normalized package name match | openSUSE Tumbleweed package metadata: leveldb from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A key/value-store | https://github.com/google/leveldb
- zypper - leveldb-devel - 1.23-6.5: normalized package name match | openSUSE Tumbleweed package metadata: leveldb-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for leveldb | https://github.com/google/leveldb
- zypper - leveldb-devel-static - 1.23-6.5: normalized package name match | openSUSE Tumbleweed package metadata: leveldb-devel-static from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for statically link leveldb | https://github.com/google/leveldb


## Combined YAML source

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