# apgdiff mit Homebrew, apt, MacPorts, Nix installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für apgdiff in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:apgdiff
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install apgdiff
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install apgdiff
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install apgdiff
```

  Evidenz: Debian stable package indexes: apgdiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#apgdiff
```

  Evidenz: nixpkgs package indexes: pkgs/by-name/ap/apgdiff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Paketfakten

- **Paketschlüssel:** brew:apgdiff
- **Paketmanager:** Homebrew
- **Paketmanager-Seite:** <https://formulae.brew.sh/formula/apgdiff>
- **Version:** 2.7.0
- **Quellzusammenfassung:** Another PostgreSQL diff tool
- **Homepage:** <https://www.apgdiff.com/>
- **Repository:** <https://github.com/fordfrog/apgdiff>
- **Upstream-Dokumentation:** <https://github.com/fordfrog/apgdiff#readme>
- **Lizenz:** MIT
- **Quellarchiv:** <https://github.com/fordfrog/apgdiff/archive/refs/tags/release_2.7.0.tar.gz>
- **Generiert:** 2026-07-08T07:18:31+00:00

## Executables

- apgdiff (cli)
- apgdiff (Alias)

## Abhängigkeiten

- openjdk

## Installationsverhalten

- Post-install-Hook: nicht definiert
- Bottle: verfügbar auf all

## Version und Aktualität

- Seite generiert: 2026-07-08
- Manager-Version: 2.7.0
- lokale Daten: OK
- Upstream-Repository: https://github.com/fordfrog/apgdiff
- Info: No package-manager update timestamp was available.
- Info: No cached GitHub release or tag data was available.
## Projektgeschichte und Nutzung

Another PostgreSQL Diff Tool, usually packaged as apgdiff, is a Java command-line utility for comparing PostgreSQL schema dumps and generating DDL needed to move an old schema toward a new one. Its niche is intentionally narrow: it is for schema-diffing PostgreSQL dump files, not for live database migration orchestration.

### Projektgeschichte

The official site presents apgdiff as a free PostgreSQL database schema diff tool and notes that it compares two database dump files to produce SQL statements describing schema changes. The project predates its GitHub repository: the web site lists 2010-era 2.x releases, and a 2012 news entry says the sources and issue tracker moved to GitHub to make participation easier.

The GitHub README describes the repository as mainly unmaintained, while still accepting useful bug-fix pull requests. The changelog shows the package's long tail of PostgreSQL compatibility work: version 2.0 rewrote the SQL parser, version 2.4 added schema-creation and Slony-trigger options, version 2.5 added materialized views, extensions, foreign tables, grants, and ownership support, version 2.6 added PostgreSQL 10 support, and version 2.7.0 added early support for PostgreSQL 12-era syntax such as partitioning and identity columns.

### Adoptionsgeschichte

The official home page states that apgdiff was already being used by many developers worldwide. The batch input shows it has also crossed into several package-manager ecosystems, including Homebrew, Debian, Ubuntu, MacPorts, and Nix, which is typical for small database utilities that remain useful in scripts long after active feature development slows.

### Wie es verwendet wird

Typical use is to dump two PostgreSQL schemas, run apgdiff against the old and new dumps, and review or apply the generated DDL. The official site emphasizes command-line use from batches and web applications, and the project README points users to GitHub issues for bugs.

Package users care about PostgreSQL version support because apgdiff parses SQL dump syntax. Its changelog is therefore practically part of the compatibility contract: support for materialized views, unlogged tables, extensions, foreign tables, sequences, triggers, rules, grants, views, and newer CREATE syntax determines whether a given schema dump can be diffed safely.

### Warum Paket-Nerds sich dafür interessieren

apgdiff is the kind of small, stable package that package managers preserve because it solves one specific operational problem without needing a server. It is especially interesting to PostgreSQL users who want schema comparison in CI or release scripts and are willing to inspect generated SQL rather than adopt a larger migration framework.

### Zeitleiste

- 2010: Version 2.0 rewrote the SQL parser and expanded supported PostgreSQL DDL.
- 2012: The project moved its sources and issue tracker to GitHub.
- 2012: Version 2.4 shipped with trigger, schema, and parser fixes.
- 2016: GitHub releases recorded 2.5.0 prereleases.
- 2018-2020: Changelog entries added PostgreSQL 10, Java 11 development, PostgreSQL 12-related syntax, partitioning, and identity-column support.

### Related projects

- PostgreSQL schema dump tooling, database migration frameworks, and schema comparison utilities are adjacent, but apgdiff remains focused on diffing two PostgreSQL dump files and emitting DDL.

### Quellen

- <https://api.github.com/repos/fordfrog/apgdiff>
- <https://github.com/fordfrog/apgdiff#readme>
- <https://www.apgdiff.com/>
- input source_facts.package-manager


## Sicherheitshinweise

broad file, network, media, or database tool signal.

- **Geiger-Risiko:** blue / mittel
- broad file, network, media, or database tool signal

## Details aus der Quelldatenbank

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

## Andere Paketmanager-Einträge

- Debian apt - apgdiff - 2.7.0-1: normalized package name match | Debian stable package indexes: apgdiff from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Another PostgreSQL Diff Tool | https://www.apgdiff.com/
- Nix - apgdiff: normalized package name match | nixpkgs package indexes: pkgs/by-name/ap/apgdiff/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - apgdiff - 2.7.0-1: normalized package name match | Ubuntu 24.04 LTS package indexes: apgdiff from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Another PostgreSQL Diff Tool | https://www.apgdiff.com/
- MacPorts - apgdiff: normalized package name match | MacPorts ports tree: databases/apgdiff/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Verwandte Links

- [Secret-risk packages](https://www.automicvault.com/de/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/de/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/de/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://www.automicvault.com/de/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [openjdk](https://www.automicvault.com/de/pkg/brew/openjdk/) - Runtime dependency declared by Homebrew.
- [doltgres](https://www.automicvault.com/de/pkg/brew/doltgres/) - Shares av.db curated category or tags: cli, data, postgresql, sql.
- [lazysql](https://www.automicvault.com/de/pkg/brew/lazysql/) - Shares av.db curated category or tags: cli, data, postgresql, sql.
- [anyquery](https://www.automicvault.com/de/pkg/brew/anyquery/) - Shares av.db curated category or tags: cli, data, sql.
- [apache-drill](https://www.automicvault.com/de/pkg/brew/apache-drill/) - Shares av.db curated category or tags: cli, data, sql.
- [athenacli](https://www.automicvault.com/de/pkg/brew/athenacli/) - Shares av.db curated category or tags: cli, data, sql.
- [barman](https://www.automicvault.com/de/pkg/brew/barman/) - Shares av.db curated category or tags: cli, data, postgresql.
- [beanquery](https://www.automicvault.com/de/pkg/brew/beanquery/) - Shares av.db curated category or tags: cli, data, sql.
- [check_postgres](https://www.automicvault.com/de/pkg/brew/check-postgres/) - Shares av.db curated category or tags: cli, data, postgresql.
- [h2](https://www.automicvault.com/de/pkg/brew/h2/) - Local package facts share a topical domain. Shared terms: cli, data, openjdk, sql.
- [questdb](https://www.automicvault.com/de/pkg/brew/questdb/) - Local package facts share a topical domain. Shared terms: cli, data, openjdk, sql.
- [trino](https://www.automicvault.com/de/pkg/brew/trino/) - Local package facts share a topical domain. Shared terms: cli, data, openjdk, sql.

## Combined YAML source

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


## Quellen

- 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
