databases/cdb 20251021 FreeBSD
Fast lookup database library & utilities
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- PD
- Categories
- databases
- Package size
- 40.6 KiB, 246.3 KiB installed
Description
cdb is a fast, reliable, lightweight package for creating and reading constant databases. Its database structure provides several features:
* Fast lookups: A successful lookup in a large database normally takes just two disk accesses. An unsuccessful lookup takes only one. * Low overhead: A database uses 2048 bytes (or 4096 bytes for cdb64), plus 24 bytes per record (or 48 bytes per record for cdb64), plus the space for keys and data. * No random limits: cdb can handle any database up to 4 gigabytes (or up to an exabyte for cdb64). There are no other restrictions. Records are streamed and don't have to fit into memory. Databases are stored in a machine-independent format (one format for cdb, one format for cdb64). * Fast atomic database replacement: `cdbmake` rewrites an entire database much more quickly than other hashing packages. Database replacement is safe against system crashes. Readers don't pause during a rewrite: they continue transparently using the old database until the new database is in place. * Fast database dumps: `cdbdump` prints the contents of a database in cdbmake-compatible format.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | databases/cdb | 20251021 |
| NetBSD | databases/cdb | 20251021 |
| DragonFly | databases/cdb | 0.75 |
Install
Binary package:
pkg install cdb
From the ports tree:
cd /usr/ports/databases/cdb/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= cdb>0:databases/cdb
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 20251021 | 20251021 | 0.75 | 0.75_1 | 20251021 |
| FreeBSD:14:quarterly | 20251021 | 20251021 | n/a | 0.75_1 | 20251021 |
| FreeBSD:15:latest | 20251021 | 20251021 | n/a | 0.75_1 | 0.75_1 |
| FreeBSD:15:quarterly | 20251021 | 20251021 | n/a | n/a | n/a |
| FreeBSD:16:latest | 20251021 | 20251021 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Configuration
Options name: databases_cdb
| Option | Default | Description |
|---|---|---|
| DOCS | off | Build and/or install documentation |
- Service scripts
- none
Files
pkg-plist 14
- bin/cdb64dump
- bin/cdb64get
- bin/cdb64make
- bin/cdb64make-12
- bin/cdb64make-sv
- bin/cdb64stats
- bin/cdb64test
- bin/cdbdump
- bin/cdbget
- bin/cdbmake
- bin/cdbmake-12
- bin/cdbmake-sv
- bin/cdbstats
- bin/cdbtest
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| cdb-20251021.tar.gz | 111952 | 8e531d6390bcd7c9a4cbd16fed36326eee78e8b0e5c0783a8158a6a79437e3dd |
Master sites 1
- https://cdb.cr.yp.to/
Commit history 0
No commits in the history this site was built from.