SPDX Pairwise Compatibility · Both Directions

GPL-2.0-only & GPL-3.0-only License Compatibility

Directional engineering analysis comparing GNU GPL v2.0 only and GNU GPL v3.0 only across dependency linking, patent terms, and redistribution obligations.

GPL-2.0-only (Dep) → GPL-3.0-only (Project) INCOMPATIBLE

GPL-2.0-only dependency cannot be used inside a GPL-3.0-only project

GPL-2.0-only's terms (§6) are mutually incompatible with GPL-3.0-only (v2-only lacks the 'or any later version' upgrade clause).

  • Do not link GPL-2.0-only libraries inside a GPL-3.0-only distribution.
  • Verify whether upstream actually licensed under GPL-2.0-or-later or replace the dependency.
GPL-3.0-only (Dep) → GPL-2.0-only (Project) INCOMPATIBLE

GPL-3.0-only dependency cannot be shipped under GPL-2.0-only

GPL-3.0-only is strong copyleft: distributing a combined work containing a GPL-3.0-only dependency requires licensing the entire combined work under GPL-3.0-only (or AGPL-3.0-only), incompatible with GPL-2.0-only.

  • Do not bundle GPL-3.0-only dependencies inside a GPL-2.0-only release.
  • Replace the dependency or relicense the combined application under GPL-3.0-only.

Side-by-Side SPDX License Obligations

Attribute GPL-2.0-only GPL-3.0-only
Full Name GNU GPL v2.0 only GNU GPL v3.0 only
OSI Approved Yes Yes
Copyleft Scope Strong (Combined work) Strong (Combined work)
Patent Terms Implicit only (§7 liberty-or-death) Explicit grant + anti-Tivoization
Key Rule Classic strong copyleft license requiring derivative and statically/dynamically linked works to be distributed strictly under GPL-2.0-only. Modern strong copyleft adding explicit patent terms, anti-Tivoization installation info, and Apache-2.0 / AGPL-3.0 compatibility.

Interactive Compatibility Explorer

Informational engineering matrix based on SPDX / FSF / OSI guidance — not formal legal advice. Consult qualified counsel for commercial license exceptions.
GPL-2.0-only (Dependency) → GPL-3.0-only (Project) INCOMPATIBLE

GPL-2.0-only dependency cannot be used inside a GPL-3.0-only project

GPL-2.0-only's terms (§6) are mutually incompatible with GPL-3.0-only (v2-only lacks the 'or any later version' upgrade clause).

Engineering Obligations & Actions
  • Do not link GPL-2.0-only libraries inside a GPL-3.0-only distribution.
  • Verify whether upstream actually licensed under GPL-2.0-or-later or replace the dependency.

Frequently Asked Questions

Can a GPL-3.0-only project use a GPL-2.0-only dependency?

INCOMPATIBLE: GPL-2.0-only's terms (§6) are mutually incompatible with GPL-3.0-only (v2-only lacks the 'or any later version' upgrade clause).

Can a GPL-2.0-only project use a GPL-3.0-only dependency?

INCOMPATIBLE: GPL-3.0-only is strong copyleft: distributing a combined work containing a GPL-3.0-only dependency requires licensing the entire combined work under GPL-3.0-only (or AGPL-3.0-only), incompatible with GPL-2.0-only.

Is this matrix formal legal advice?

No. This is an informational engineering compatibility matrix based on SPDX, FSF, and OSI licensing guidance. Consult qualified legal counsel for binding commercial or dual-licensing reviews.