SPDX Pairwise Compatibility · Both Directions

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

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

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

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

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

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

AGPL-3.0-only network copyleft conflicts with GPL-2.0-only

AGPL-3.0-only requires full source disclosure even for SaaS/network interaction (§13) and propagates across combined works, which is incompatible with keeping a project under GPL-2.0-only.

  • Do not link AGPL-3.0-only dependencies into a GPL-2.0-only service or package.
  • Isolate as a separate network service or upgrade the entire combined application to AGPL-3.0-only.

Side-by-Side SPDX License Obligations

Attribute GPL-2.0-only AGPL-3.0-only
Full Name GNU GPL v2.0 only GNU Affero GPL v3.0 only
OSI Approved Yes Yes
Copyleft Scope Strong (Combined work) Strong + Network (§13)
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. Strong copyleft extending source-code disclosure duties to network/SaaS users interacting with modified versions remotely (§13).

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) → AGPL-3.0-only (Project) INCOMPATIBLE

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

GPL-2.0-only's terms (§6) are mutually incompatible with AGPL-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 AGPL-3.0-only distribution.
  • Verify whether upstream actually licensed under GPL-2.0-or-later or replace the dependency.

Frequently Asked Questions

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

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

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

INCOMPATIBLE: AGPL-3.0-only requires full source disclosure even for SaaS/network interaction (§13) and propagates across combined works, which is incompatible with keeping a project under 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.