Skip to content
BENIBIX Learn

GNU GPL vs LGPL

People think the LGPL is just a short name for the GPL, and it is not. The GPL covers the whole program that uses the code, so that program must be open too. The LGPL is made for libraries. A closed app may use an LGPL library, as long as changes to the library itself are shared.

Development🚀 Product & Releases

GNU General Public License (GPL)

An open source license. Changes you share must stay open source too.

The GNU GPL is an open source license that keeps code open after others change it. You may use, change and share the code. But if you share a changed version, you must share its code under the GPL too. This rule is called copyleft. Linux uses version 2, and the newest is version 3, from 2007.

Example
Lucy builds an app on a GPL library and starts selling copies. Because she gives the app to others, she must also offer them its source code under the GPL.
Why it matters
It stops companies from taking open code, changing it and closing it off. Everyone keeps the right to see the code.
Full entry
Development🚀 Product & Releases

GNU Lesser General Public License (LGPL)

A copyleft rule made for libraries. Your app can stay closed. Fixes to the library get shared.

The LGPL is a weaker copyleft license made for libraries. A closed or paid program may use an LGPL library without opening its own code. But if you change the library itself, you must share those changes under the same license. Users must also be able to swap in their own copy of the library. It sits between the MIT license and the GPL.

Example
Emma's paid video app uses an LGPL library to read files. Her app stays closed, but a bug fix she makes to the library is shared.
Why it matters
Paid apps can use a free library like this. The library itself still stays open for all.
Full entry

In one line

GNU General Public License (GPL)
An open source license. Changes you share must stay open source too.
GNU Lesser General Public License (LGPL)
A copyleft rule made for libraries. Your app can stay closed. Fixes to the library get shared.