GNU General Public License 3.0
CopyleftGPL-3.0Strong copyleft: share a program that includes it, and you share the whole source under the GPL.
- Used by
- Bash, GIMP, Ansible
- Watch out
- Running it as a website is not sharing. On consumer devices you sell, users must be able to install changed versions.
- Use it at work✓YesRunning it inside your company is fine.
- Sell what you build with it✓Yes, with conditionsYou may charge for copies, but buyers get the full source and the same rights.
- Keep your own code private✓Yes, with conditionsOnly while you don’t share copies. If you share your app, share its full source under the GPL-3.0.
- Put it in a closed-source app✕NoIf you ship an app that includes it, the whole app must be under the GPL-3.0. Separate programs next to it are fine.
- Run it as an online service✓YesRunning it on your server is not sharing copies, so nothing extra applies.
- Credit the authors!RequiredKeep the notices and mark the files you changed.
- Some authors also sell a license with other terms. Ask them if these rules don’t fit.
Read the full license (GPL-3.0) ↗GNU General Public License 2.0
CopyleftGPL-2.0The older GPL, with the same core rule: share the program, share the whole source.
- Used by
- Linux kernel, Git, WordPress
- Watch out
- GPL-2.0-only code can’t be combined with GPL-3.0 or Apache-2.0 code. Check for “or later”.
- Use it at work✓YesRunning it inside your company is fine.
- Sell what you build with it✓Yes, with conditionsYou may charge for copies, but buyers get the full source and the same rights.
- Keep your own code private✓Yes, with conditionsOnly while you don’t share copies. If you share your app, share its full source under the GPL-2.0.
- Put it in a closed-source app✕NoIf you ship an app that includes it, the whole app must be under the GPL-2.0. Separate programs next to it are fine.
- Run it as an online service✓YesRunning it on your server is not sharing copies, so nothing extra applies.
- Credit the authors!RequiredKeep the notices and mark the files you changed.
- Some authors also sell a license with other terms. Ask them if these rules don’t fit.
Read the full license (GPL-2.0) ↗