欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

软件开源协议

程序员文章站 2022-03-15 19:19:44
...

什么是开源协议

开源协议是一种法律许可。通过它,版权拥有人明确允许,用户可以免费地使用、修改、共享版本软件。

在网上看到一张很好懂的图:
软件开源协议

协议都有哪些限制

软件开源协议

如何快速选择开源软件协议

1、我需要一个简单宽松的协议

MIT License是一个简短、宽松、*的协议。该协议允许人们使用你的代码,但必须要保留你的版权信息。与此同时,并不会给你带来任何责任和风险。jQuery、.NET Core 和 Rails 使用的均是 MIT License。

The
 MIT License (MIT)Copyright (c) <year> <copyright 
holders>Permission is hereby granted, free of charge, to any person 
obtaining a copy of this software and associated documentation files 
(the "Software"), to deal in the Software without restriction, including
 without limitation the rights to use, copy, modify, merge, publish, 
distribute, sublicense, and/or sell copies of the Software, and to 
permit persons to whom the Software is furnished to do so, subject to 
the following conditions:The above copyright notice and this permission 
notice shall be included in all copies or substantial portions of the 
Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

2、我更加关心自己的专利

Apache License 2.0 是一项和 MIT License 相似的协议,但自己希望自己的专利能在开源免费使用的同时,保留自己在开源产品中的专利权益。同样,该协议要求使用者必须保留你的版权信息。 Android、Apache 和 Swift 使用的均是 Apache License 2.0 协议。

Apache
 License Version 2.0Copyright [yyyy] [name of copyright owner]Licensed 
under the Apache License, Version 2.0 (the "License");you may not use 
this file except in compliance with the License.You may obtain a copy of
 the License at http://www.apache.org/licenses/LICENSE-2.0Unless 
required by applicable law or agreed to in writing, softwaredistributed 
under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES 
OR CONDITIONS OF ANY KIND, either express or implied.See the License for
 the specific language governing permissions andlimitations under the 
License.

3、我关心代码的分享以及促进

如果你希望别人在分享的自己的作品之后,也必须遵循相同的协议,也必须是开源和免费。那么 GPLv3 是你更好的选择。该协议当中也明确地包含了贡献人的专利权益方面的款项。原作品的版权条款也必须延续保留。GPL 协议存在非常强的“传染性” ,Bash、GIMP 和 Privacy Badger 使用的均是 GPLv3 协议。

GNU
 GENERAL PUBLIC LICENSE Version 3Copyright (C) {year} {name of 
author}This program is free software: you can redistribute it and/or 
modifyit under the terms of the GNU General Public License as published 
bythe Free Software Foundation, either version 3 of the License, or(at 
your option) any later version.This program is distributed in the hope 
that it will be useful,but WITHOUT ANY WARRANTY; without even the 
implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
See theGNU General Public License for more details.You should have 
received a copy of the GNU General Public Licensealong with this 
program. If not, see <http://www.gnu.org/licenses/>.

如果你的产品是基于终端的,你还可以加上如下一段,使得使用者知晓如何可以联系到你。

{project}
 Copyright (C) {year} {fullname}This program comes with ABSOLUTELY NO 
WARRANTY; for details type `show w'.This is free software, and you are 
welcome to redistribute itunder certain conditions; type `show c' for 
details.
相关标签: MIT 开源协议