Apache License 2.0 vs GNU GPL v2.0
Incompatible: the surprise of the licence world.
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.
| Attribute | Apache License 2.0 | GNU GPL v2.0 |
|---|---|---|
| OSI approved | Yes | Yes |
| FSF free licence | Yes | Yes |
| Commercial use | Yes | Yes |
| Closed-source product | Yes | No |
| Patent grant | Yes | Partly |
| Trademark grant | No | No |
| Notice required | Yes | Yes |
| Mark modified files | Yes | Yes |
| Disclose source | Nothing | Distribution |
| Same licence covers | Nothing | The whole work |
| Network clause | No | No |
| Link into proprietary | Yes | No |
| Relicense freely | Partly | No |
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.
Can you mix them?
Apache License 2.0 → GNU GPL v2.0
not compatible
GNU GPL v2.0 → Apache License 2.0
not compatible