Friday, April 26, 2024

一张图看懂开源许可证的区别(LGPL,Mozilla,GPL,BSD,MIT,Apache)

如何为代码选择开源许可证,这是一个问题。

世界上的开源许可证,大概有上百种。很少有人搞得清楚它们的区别。即使在最流行的六种—-GPL、BSD、MIT、Mozilla、Apache和LGPL—-之中做选择,也很复杂。

乌克兰程序员Paul Bagwell,画了一张分析图,说明应该怎么选择。只用两分钟,你就能搞清楚这六种许可证之间的最大区别。

下面是阮一峰制作的中文版。

从图中可以知道,MIT开源许可证是最为宽松的。

Firefox、Thunderbird基于MPL开源许可证。
Linux、WordPress基于GPL开源许可证。
FreeBSD基于BSD开源许可证。
PuTTY、Ruby on Rails基于MIT开源许可证。
Apache基于Apache开源许可证。

LGPL开源许可证:http://www.gnu.org/licenses/lgpl.html
Mozilla开源许可证:https://www.mozilla.org/en-US/MPL/
GPL开源许可证:http://www.gnu.org/licenses/gpl.html
BSD开源许可证:https://www.freebsd.org/copyright/license.html
MIT开源许可证:https://opensource.org/licenses/MIT
Apache开源许可证:http://www.apache.org/licenses/

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.