LicensePlain 中文 visits —
Home / Licences / GNU GPL v2.0
Strong copyleftSPDX GPL-2.0-onlyOSI approvedFSF free

GNU GPL v2.0

You may sell software under it but if you distribute a derivative work you must hand recipients the source under the same licence.

Commercial useYes — commercially, without asking.

You may sell products that contain this code, charge for them and keep the revenue. No royalty is owed and no permission is needed.

What you can do

  • sell a product that uses it
  • run it as a service without publishing anything

What you must do

  1. keep the copyright and permission notice in every copy
  2. mark the files you changed
  3. hand the source to anyone you distribute binaries to
  4. license the whole derivative work under the same licence

What you cannot do

  • keep your derivative closed source
  • change the licence on a derivative work
  • modify it without marking the changes

Where it fits

Legacy kernel-adjacent and embedded projects that never upgraded.

The thing people get wrong

GPL-2.0-only cannot be mixed with GPL-3.0 code or with Apache-2.0 code; projects that say "or later" avoid both problems.

Mixing it with other licences

One-way: can code under this licence live inside a project released under the licence in the table?

Outbound licenceSPDXVerdict
MITmitNo
Apache-2.0apache-2.0No
BSD-3bsd-3-clauseNo
ISCiscNo
MPL-2.0mpl-2.0No
LGPL-3.0lgpl-3.0No
GPL-3.0gpl-3.0No
AGPL-3.0agpl-3.0No
EPL-2.0epl-2.0No

Full 10 × 10 matrix — read the direction of the table before quoting it

Not legal advice. Read the licence file in the repository you are actually using; this page summarises the published text.

Related

Can I use it commercially?GNU GPL v2.0 vs MIT LicenseGNU GPL v2.0 vs Apache License 2.0GNU GPL v2.0 vs GNU GPL v3.0

Questions

Can I use GNU GPL v2.0 commercially?

You may sell products that contain this code, charge for them and keep the revenue. No royalty is owed and no permission is needed.

Do I have to keep the copyright notice?

Ship the source with binaries; licence the derivative work under GPL-2.0; keep notices; no extra restrictions.

Do I have to publish my changes?

Ship the source with binaries; licence the derivative work under GPL-2.0; keep notices; no extra restrictions.

Is GNU GPL v2.0 OSI approved and FSF free?

OSI: Yes. FSF: Yes.

What do people get wrong about GNU GPL v2.0?

GPL-2.0-only cannot be mixed with GPL-3.0 code or with Apache-2.0 code; projects that say "or later" avoid both problems.