GNU GPL 2.0 only (GPL-2.0-only)
Strong copyleft. Distributing a derivative work forces the whole work to GPLv2 with source offer. Incompatible with GPLv3 and with Apache-2.0. SaaS does NOT trigger disclosure (no distribution).
Key facts
- SPDX id
- GPL-2.0-only
- Category
- Strong copyleft
- Copyleft scope
- strong
- Express patent grant
- No
- SaaS triggers disclosure
- No
- GPL-compatible
- Same version only — combines only within its own GPL version family.
Obligations
When redistributing as open source.
- GPL-2.0-only: retain the copyright notice and license text.
- GPL-2.0-only: state significant changes made to the code.
- GPL-2.0-only: provide complete corresponding source of the combined work.
- GPL-2.0-only: the combined distributed work must be licensed under GPL-2.0-only.
Internal use only (never distributed)
- GPL-2.0-only: retain the copyright notice and license text.
- GPL-2.0-only: state significant changes made to the code.
Public SaaS / hosted web service
- GPL-2.0-only: retain the copyright notice and license text.
- GPL-2.0-only: state significant changes made to the code.
Commercial use
Commercial use is permitted, but distributing the combined work requires releasing the whole work under GPL-2.0-only with source. A closed-source binary is not possible.
- GPL-2.0-only: retain the copyright notice and license text.
- GPL-2.0-only: state significant changes made to the code.
- GPL-2.0-only: provide complete corresponding source of the combined work.
- GPL-2.0-only: the combined distributed work must be licensed under GPL-2.0-only.
Permissive: include notices (Apache also needs NOTICE + change statements). Weak copyleft: disclose only the modified library/files and, for LGPL static linking, provide a relink path. Strong copyleft (GPL): NOT possible to keep proprietary if GPL code is in the derivative work. AGPL: same as GPL plus network rules.
FAQ
- Can I use GPL-2.0-only in a commercial product?
- Commercial use is permitted, but distributing the combined work requires releasing the whole work under GPL-2.0-only with source. A closed-source binary is not possible.
- Do I have to open-source my code if I use GPL-2.0-only?
- Yes, when you distribute — the combined work's source must be provided under GPL-2.0-only. Internal use and SaaS hosting do not trigger it.
- Does running GPL-2.0-only software as a SaaS require source disclosure?
- No. Hosting is not distribution under GPL-2.0-only; running it as a service does not trigger source disclosure.
- Is GPL-2.0-only compatible with the GPL?
- Same version only — combines only within its own GPL version family.
Compatibility with other licenses
- Is GPL-2.0-only compatible with MIT? Yes
- Is BSD-2-Clause compatible with GPL-2.0-only? Yes
- Is BSD-3-Clause compatible with GPL-2.0-only? Yes
- Is GPL-2.0-only compatible with ISC? Yes
- Is Apache-2.0 compatible with GPL-2.0-only? No
- Is BSL-1.0 compatible with GPL-2.0-only? Yes
- Is GPL-2.0-only compatible with Unlicense? Yes
- Is CC0-1.0 compatible with GPL-2.0-only? Yes
- Is GPL-2.0-only compatible with MPL-2.0? Yes
- Is EPL-2.0 compatible with GPL-2.0-only? No
- Is GPL-2.0-only compatible with LGPL-2.1? Yes
- Is GPL-2.0-only compatible with LGPL-3.0? No
- Is GPL-2.0-only compatible with GPL-2.0-or-later? It depends
- Is GPL-2.0-only compatible with GPL-3.0-only? No
- Is AGPL-3.0 compatible with GPL-2.0-only? No