LicensePlain 中文 visits —
Home / Compare / Apache License 2.0 vs GNU GPL v2.0
Apache-2.0 vs GPL-2.0Permissive · Strong copyleft

Apache License 2.0 vs GNU GPL v2.0

Incompatible: the surprise of the licence world.

CompatibilityNot compatible

Apache-2.0's patent and indemnity terms are additional restrictions under GPL-2.0, so the two cannot be combined into one distributable work. The usual workarounds are upgrading the GPL side to v3, or keeping the components in separate processes.

Side by side

Rows that differ are marked. Everything else behaves the same in both licences.

AttributeApache License 2.0GNU GPL v2.0
OSI approvedYesYes
FSF free licenceYesYes
Commercial useYesYes
Closed-source productYesNo
Patent grantYesPartly
Trademark grantNoNo
Notice requiredYesYes
Mark modified filesYesYes
Disclose sourceNothingDistribution
Same licence coversNothingThe whole work
Network clauseNoNo
Link into proprietaryYesNo
Relicense freelyPartlyNo

What actually differs

  • Closed-source product — Yes for Apache License 2.0, No for GNU GPL v2.0.
  • Patent grant — Yes for Apache License 2.0, Partly for GNU GPL v2.0.
  • Disclose source — Nothing for Apache License 2.0, Distribution for GNU GPL v2.0.
  • Same licence covers — Nothing for Apache License 2.0, The whole work for GNU GPL v2.0.
  • Link into proprietary — Yes for Apache License 2.0, No for GNU GPL v2.0.
  • Relicense freely — Partly for Apache License 2.0, No for GNU GPL v2.0.

Same in both: OSI approved, FSF free licence, Commercial use, Trademark grant, Notice required, Mark modified files, Network clause.

Which one to pick

Apache License 2.0

Corporate-friendly default when patents matter — infrastructure SDKs and anything a company may want to adopt.

Licence page

GNU GPL v2.0

Legacy kernel-adjacent and embedded projects that never upgraded.

Licence page

Can you mix them?

Apache License 2.0 → GNU GPL v2.0

not compatible

GNU GPL v2.0 → Apache License 2.0

not compatible

Compatibility statements are one-way and general. How you combine the code — linking, subprocess, copying files — can change the answer, so check the FSF list for anything unusual.

Questions

Can I use Apache License 2.0 and GNU GPL v2.0 in the same project?

Apache-2.0's patent and indemnity terms are additional restrictions under GPL-2.0, so the two cannot be combined into one distributable work.

What happens if I get the direction wrong?

You end up distributing code under terms its authors never granted — which is copyright infringement, not a technicality. The fix is usually to relicense the outbound side to the stricter licence.

Do both licences require a NOTICE file?

Apache-2.0 does when the upstream project ships one; MIT and the BSD licences have no NOTICE convention at all.