151 lines
463 KiB
HTML
151 lines
463 KiB
HTML
|
<!DOCTYPE html>
|
|||
|
<html lang="zh"><head><title>开源软件的概念与重要性</title><meta charset="utf-8"/><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com"/><link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=IBM Plex Mono&family=Noto Serif Simplified Chinese:wght@400;700&family=Source Sans Pro:ital,wght@0,400;0,600;1,400;1,600&display=swap"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><meta property="og:title" content="开源软件的概念与重要性"/><meta property="og:description" content="开源软件的概念与重要性."/><meta property="og:image" content="https://wiki.7wate.com/static/og-image.png"/><meta property="og:width" content="1200"/><meta property="og:height" content="675"/><link rel="icon" href="../../../../static/icon.png"/><meta name="description" content="开源软件的概念与重要性."/><meta name="generator" content="Quartz"/><link href="../../../../index.css" rel="stylesheet" type="text/css" spa-preserve/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/katex.min.css" rel="stylesheet" type="text/css" spa-preserve/><script src="../../../../prescript.js" type="application/javascript" spa-preserve></script><script type="application/javascript" spa-preserve>const fetchData = fetch("../../../../static/contentIndex.json").then(data => data.json())</script></head><body data-slug="Technology/OperatingSystem/Linux/1.文化/开源软件的概念与重要性"><div id="quartz-root" class="page"><div id="quartz-body"><div class="left sidebar"><h2 class="page-title"><a href="../../../..">🪴 X·Eden</a></h2><div class="spacer mobile-only"></div><div class="search"><button class="search-button" id="search-button"><p>搜索</p><svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 19.9 19.7"><title>Search</title><g class="search-path" fill="none"><path stroke-linecap="square" d="M18.5 18.3l-5.4-5.4"></path><circle cx="8" cy="8" r="7"></circle></g></svg></button><div id="search-container"><div id="search-space"><input autocomplete="off" id="search-bar" name="search" type="text" aria-label="搜索些什么" placeholder="搜索些什么"/><div id="search-layout" data-preview="true"></div></div></div></div><button class="darkmode" id="darkmode"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="dayIcon" x="0px" y="0px" viewBox="0 0 35 35" style="enable-background:new 0 0 35 35" xml:space="preserve" aria-label="暗色模式"><title>暗色模式</title><path d="M6,17.5C6,16.672,5.328,16,4.5,16h-3C0.672,16,0,16.672,0,17.5 S0.672,19,1.5,19h3C5.328,19,6,18.328,6,17.5z M7.5,26c-0.414,0-0.789,0.168-1.061,0.439l-2,2C4.168,28.711,4,29.086,4,29.5 C4,30.328,4.671,31,5.5,31c0.414,0,0.789-0.168,1.06-0.44l2-2C8.832,28.289,9,27.914,9,27.5C9,26.672,8.329,26,7.5,26z M17.5,6 C18.329,6,19,5.328,19,4.5v-3C19,0.672,18.329,0,17.5,0S16,0.672,16,1.5v3C16,5.328,16.671,6,17.5,6z M27.5,9 c0.414,0,0.789-0.168,1.06-0.439l2-2C30.832,6.289,31,5.914,31,5.5C31,4.672,30.329,4,29.5,4c-0.414,0-0.789,0.168-1.061,0.44 l-2,2C26.168,6.711,26,7.086,26,7.5C26,8.328,26.671,9,27.5,9z M6.439,8.561C6.711,8.832,7.086,9,7.5,9C8.328,9,9,8.328,9,7.5 c0-0.414-0.168-0.789-0.439-1.061l-2-2C6.289,4.168,5.914,4,5.5,4C4.672,4,4,4.672,4,5.5c0,0.414,0.168,0.789,0.439,1.06 L6.439,8.561z M33.5,16h-3c-0.828,0-1.5,0.672-1.5,1.5s0.672,1.5,1.5,1.5h3c0.828,0,1.5-0.672,1.5-1.5S34.328,16,33.5,16z M28.561,26.439C28.289,26.168,27.914,26,27.5,26c-0.828,0-1.5,0.672-1.5,1.5c0,0.414,0.168,0.789,0.439,1.06l2,2 C28.711,30.832,29.086,31,29.5,31c0.828,0,1.5-0.672,1.5-1.5c0-0.414-0.168-0.789-0.439-1.061L28.561,26.439z M17.5,29 c-0.829,0-1.5,0.672-1.5,1.5v3c0,0.828,0.671,1.5,1.5,1.5s1.5-0.672,1.5-1.5v-3C19,29.672,18.329,29,17.5,29z M17.5,7 C11.71,7,7,11.71,7,17.5S11.71,28,17.5,28S28,23.29,28,17.5S23.29,7,17.5,7z M17.5,25c-4.136,0-7.5-3.364-7.5-7.5 c0-4.136,3.364-7.5,7.5-7.5c4.136,0,7.5,3.364,7.5,7.5C25,21.636,21.636,25,17.5,25z"></path></svg><svg xmlns="http://www.w3.or
|
|||
|
<p>开源软件是指能够公开查看、使用、复制、修改和分发源代码的软件。<strong>源代码开放的软件并不一定是开源软件,开源软件有着严格统一的的定义,封闭软件(Closed Software)、自由软件(Free software)和开源软件(Open source software)有着显著地区别。</strong></p>
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
|
|||
|
<div class="table-container"><table><thead><tr><th style="text-align:center;">区别</th><th style="text-align:center;">自由软件</th><th style="text-align:center;">开源软件</th><th style="text-align:center;">商业软件</th></tr></thead><tbody><tr><td style="text-align:center;">私有化</td><td style="text-align:center;">反对</td><td style="text-align:center;">保护</td><td style="text-align:center;">支持</td></tr><tr><td style="text-align:center;">知识产权</td><td style="text-align:center;">反对</td><td style="text-align:center;">有条件保护</td><td style="text-align:center;">支持</td></tr><tr><td style="text-align:center;">使用条件</td><td style="text-align:center;">无限制</td><td style="text-align:center;">开放源代码</td><td style="text-align:center;">有条件</td></tr><tr><td style="text-align:center;">商业模式</td><td style="text-align:center;">可能不支持</td><td style="text-align:center;">支持</td><td style="text-align:center;">支持</td></tr></tbody></table></div>
|
|||
|
<p>自由软件与商业软件是两种截然不同的软件开发思想,前者反对脑力劳动成果私有化、反知识产权,强调软件的使用和传播应该是自由的,所有人都有权使用和修改软件。而商业软件则支持脑力劳动成果私有化,主张软件的使用应该受到一定的控制和限制,开发者有权对软件进行专利保护和商业化运营。</p>
|
|||
|
<p>开源软件则是介于两者之间的一种软件开发思想,它保护脑力劳动成果私有化和支持知识产权,但同时强调开放源代码和使用条件的公开和透明,允许其他人使用、修改和分发软件,同时也允许商业化运营,但在使用和分发上有一些条件限制。</p>
|
|||
|
<p>在商业模式方面,自由软件和开源软件可能不支持商业模式,或者支持不同类型的商业模式,例如服务、咨询和技术支持等。而商业软件则通常支持商业模式,并通过销售软件许可证等方式获取商业利益。</p>
|
|||
|
<h2 id="开源软件的定义">开源软件的定义<a role="anchor" aria-hidden="true" tabindex="-1" data-no-popover="true" href="#开源软件的定义" class="internal"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></a></h2>
|
|||
|
<p><a href="https://opensource.org/" class="external">开源软件促进协会<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a> OSI 对开源软件有明确的定义,OSI 对开源软件的定义一共有十个条款:</p>
|
|||
|
<figure data-rehype-pretty-code-figure><pre tabindex="0" data-language="markdown" data-theme="github-light github-dark"><code data-language="markdown" data-theme="github-light github-dark" style="display:grid;"><span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">1.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 自由再发布(Free Redistribution)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">2.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 源代码(Source Code)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">3.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 派生作品(Derived Works)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">4.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 作者源代码的完整性(Integrity of The Author's Source Code)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">5.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 不能歧视任何个人和团体(No Discrimination Against Persons or Groups)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">6.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 不能歧视任何领域(No Discrimination Against Fields of Endeavor)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">7.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 许可证的发布(Distribution of License)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">8.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 许可证不能针对某个产品(License Must Not Be Specific to a Product)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">9.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 许可证不能约束其他软件(License Must Not Restrict Other Software)</span></span>
|
|||
|
<span data-line><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">10.</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> 许可证必须技术中立(License Must Be Technology-Neutral)</span></span></code></pre></figure>
|
|||
|
<p>通过开源软件定义的十个条款,可以清楚的看到 OSI 所坚持的原则:</p>
|
|||
|
<ul>
|
|||
|
<li><strong>坚持开放,鼓励最大化地参与和协作</strong></li>
|
|||
|
<li><strong>尊重作者权利,同时保证程序的完整性</strong></li>
|
|||
|
<li><strong>尊重独立和中立,避免任何可能影响这种独立性的事物</strong></li>
|
|||
|
</ul>
|
|||
|
<p>有了这样一个清晰而又完整的定义,在法律层面保证了开源软件的开放性,独立性和继承性。</p>
|
|||
|
<h2 id="开源软件的优点">开源软件的优点<a role="anchor" aria-hidden="true" tabindex="-1" data-no-popover="true" href="#开源软件的优点" class="internal"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></a></h2>
|
|||
|
<p>如今,开源软件已经成为了计算机行业的重要组成部分。在云计算、大数据、人工智能、区块链等领域,开源软件已经成为了主流。开源软件具有以下优点:</p>
|
|||
|
<ol>
|
|||
|
<li>降低成本:使用开源软件可以降低企业和个人的软件开发和使用成本,促进信息技术的普及和发展。</li>
|
|||
|
<li>提高软件质量:由于开源软件可以被众多开发者修改和维护,因此往往拥有更高的质量和稳定性。</li>
|
|||
|
<li>促进创新:开源软件允许任何人自由修改和定制,因此可以促进创新和技术进步。</li>
|
|||
|
<li>社区贡献:开源软件的发展离不开庞大的社区支持和贡献。开源社区的力量可以帮助开源软件更快地发展和成长。</li>
|
|||
|
</ol>
|
|||
|
<h2 id="开源社区的贡献和影响">开源社区的贡献和影响<a role="anchor" aria-hidden="true" tabindex="-1" data-no-popover="true" href="#开源社区的贡献和影响" class="internal"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></a></h2>
|
|||
|
<p>开源社区是指一群志同道合的开发者和用户,他们自愿地为开源软件的发展做出贡献。开源社区的贡献和影响包括:</p>
|
|||
|
<ol>
|
|||
|
<li>代码贡献:开源社区的开发者可以为开源软件贡献代码和新功能,为软件的发展和改进做出贡献。</li>
|
|||
|
<li>社区支持:开源社区的用户可以为其他用户提供支持和帮助,帮助他们解决问题和改进软件。</li>
|
|||
|
<li>文档贡献:开源社区的用户可以为开源软件编写文档和教程,帮助其他用户更好地了解和使用软件。</li>
|
|||
|
<li>测试贡献:开源社区的用户可以为开源软件测试和反馈问题,帮助开发者发现和修复软件中的漏洞和问题。</li>
|
|||
|
<li>社区文化:开源社区的文化包括开放、透明、协作和互助,这种文化对软件开发和技术创新产生了重要影响。</li>
|
|||
|
</ol>
|
|||
|
<p>开源社区的贡献和影响不仅限于软件本身,还可以促进技术创新和知识共享。例如,一些开源社区的成员通过协作和分享知识,共同解决了一些重大技术难题,为社会的进步做出了贡献。同时,开源社区的文化也对软件行业和互联网文化产生了重要影响,激发了人们对于开放、自由和协作的追求。</p>
|
|||
|
<h3 id="著名的开源社区">著名的开源社区<a role="anchor" aria-hidden="true" tabindex="-1" data-no-popover="true" href="#著名的开源社区" class="internal"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></a></h3>
|
|||
|
<ol>
|
|||
|
<li><a href="https://www.linuxfoundation.org/" class="external">Linux 开源社区<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a>:Linux 是一个开源操作系统,由一群志愿者开发和维护,Linux 开源社区是 Linux 开发和用户社区的总称,包括 Linux 内核开发者、Linux 发行版开发者和 Linux 用户等。</li>
|
|||
|
<li><a href="https://www.apache.org/" class="external">Apache Software Foundation<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a>:Apache Software Foundation 是一个非营利组织,致力于支持开源软件项目的开发和维护,旗下拥有众多著名的开源软件项目,如 Apache HTTP Server、Hadoop、Tomcat 等。</li>
|
|||
|
<li><a href="https://github.com/" class="external">GitHub 开源社区<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a>:GitHub 是一个代码托管和开源社区平台,用户可以在 GitHub 上创建和维护开源项目,并与其他开发者协作开发和维护项目。</li>
|
|||
|
<li><a href="https://www.eclipse.org/" class="external">Eclipse 开源社区<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a>:Eclipse 开源社区是一个致力于开发和维护 Eclipse 开源软件的社区,Eclipse 是一个跨平台的集成开发环境(IDE),被广泛用于 Java 开发和其他编程语言的开发。</li>
|
|||
|
<li><a href="https://www.mozilla.org/en-US/" class="external">Mozilla 开源社区<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a>:Mozilla 开源社区是一个致力于推广开放网络和开源软件的组织,旗下拥有著名的开源软件项目,如 Firefox 浏览器、Thunderbird 邮件客户端等。</li>
|
|||
|
</ol>
|
|||
|
<p>这些开源社区不仅在技术上做出了巨大贡献,还形成了独特的开源文化和价值观,成为了全球开源社区的重要组成部分。</p>
|
|||
|
<h2 id="开源软件的风险">开源软件的风险<a role="anchor" aria-hidden="true" tabindex="-1" data-no-popover="true" href="#开源软件的风险" class="internal"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></a></h2>
|
|||
|
<p>开源软件主要风险在于 <code>管理维护</code> 和 <code>技术支持</code> 以及 <code>许可证法律纠纷</code>,由于开源软件采用的协作方式,你可能无法追究某一处代码的作者(部分协议要求作者著名)。以及如果出现问题,你可能无法寻找官方的技术支持,更多的支持可能来自于社区,可这种支持不是每次都有好人跳出来帮忙。还有如果你不了解许可证可能会带来的法律风险(部分国家法律不同,如果源代码无许可证,默认著作权属于作者)。</p>
|
|||
|
<h2 id="开源许可证简介">开源许可证简介<a role="anchor" aria-hidden="true" tabindex="-1" data-no-popover="true" href="#开源许可证简介" class="internal"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></a></h2>
|
|||
|
<p>开源许可证并不只是保护作者的权利,更多是赋予用户各项权利,许可证规定了使用主体,方式,用途。明确说明了用户可以是个人或者公司等,怎么修改和运行以及是否可以用来进行其他合法用途。</p>
|
|||
|
<p>在使用开源软件要做的第一步就是找出开源软件中所涉及的所有许可证。每个开源软件的不同版本可能会使用不同的许可证,同时还有注意许可证的版本,以及有些开源软件会采用双重或多重许可(dual-license)的模式。</p>
|
|||
|
<p>在 OSI 的网站上列出的 <a href="https://opensource.org/licenses/category" class="external"><strong>流行并广泛使用且拥有广泛社区的许可证</strong><svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a>,分别是:</p>
|
|||
|
<ul>
|
|||
|
<li><a href="https://www.apache.org/licenses/LICENSE-2.0" class="external">Apache 许可证 2.0<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
<li><a href="https://opensource.org/licenses/BSD-3-Clause" class="external">BSD 许可证 3-Clause<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
<li><a href="https://opensource.org/licenses/BSD-2-Clause" class="external">BSD 许可证 2-Clause<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
<li><a href="https://opensource.org/licenses/gpl-license" class="external">GNU 通用公共许可证(简称 GPL)<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
<li><a href="https://opensource.org/licenses/lgpl-license" class="external">GNU 宽通用公共许可证(简称 LGPL)<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
<li><a href="https://opensource.org/licenses/MIT" class="external">MIT 许可证<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
<li><a href="https://opensource.org/licenses/MPL-2.0" class="external">Mozilla 公共许可证 2.0(简称 MPL)<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
<li><a href="https://opensource.org/licenses/CDDL-1.0" class="external">通用开发和发布许可证 1.0(简称 CDDL)<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
<li><a href="https://opensource.org/licenses/EPL-2.0" class="external">Eclipse 公共许可证 2.0(简称 EPL)<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></li>
|
|||
|
</ul>
|
|||
|
<p>开源软件许可证规定了软件代码的使用、修改和分发等方面的条款和条件,不同的许可证可能有不同的限制和要求。在使用开源软件时,需要仔细阅读和理解相应的许可证,确保自己的使用行为符合许可证的要求。</p>
|
|||
|
<h2 id="许可证的兼容性">许可证的兼容性<a role="anchor" aria-hidden="true" tabindex="-1" data-no-popover="true" href="#许可证的兼容性" class="internal"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></a></h2>
|
|||
|
<p>目前经过 ISO 认证的许可证多达 70 多种,被自由软件基金会认可的自由软件许可证也有数十种,而它们的条款又各不相同,有些甚至互相矛盾。这种兼容性问题被称为 <code>许可证增值问题(License proliferation)</code>。</p>
|
|||
|
<p>怎么样才算兼容呢?如果使用许可证 A 的代码和使用许可证 B 的代码能在一个广域作品中结合在一起,那么 A 和 B 就是兼容的,否则就是不兼容的。更近一步,如果结合后的广义作品可以用许可证 A 发布,那么许可证 B 就是许可证 A 兼容的(A-compatible)。反之亦然,但需要注意的是兼容性并<strong>不可逆</strong>。</p>
|
|||
|
<h3 id="如何选择许可证">如何选择许可证<a role="anchor" aria-hidden="true" tabindex="-1" data-no-popover="true" href="#如何选择许可证" class="internal"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg></a></h3>
|
|||
|
<p><img src="https://static.7wate.com/img/2020/07/02/fe11588b073bf.png" alt="开源许可证.png"/></p>
|
|||
|
<ul>
|
|||
|
<li><strong><a href="https://kaiyuanshe.cn/license-tool/" class="external">开源许可证选择工具<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></strong></li>
|
|||
|
</ul>
|
|||
|
<p>如今开源软件早已经成为了软件领域不可或缺的重要组成部分,要以辨证的观点看待开源软件。它自由,平等,协作的精神实践了信息和知识共享的理念,并且实现了知识产权保护和分享之间的微妙平衡。同时开源带来的自由,免费有可能也是最贵的。</p>
|
|||
|
<blockquote>
|
|||
|
<p>参考:
|
|||
|
《开源软件之道》
|
|||
|
<a href="https://kaiyuanshe.cn/license-tool/" class="external">开源社——开源许可证选择器<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a>
|
|||
|
<a href="https://opensource.org/" class="external">Open Source Initiative<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a>
|
|||
|
<a href="http://www.ruanyifeng.com/blog/2011/05/how_to_choose_free_software_licenses.html" class="external">阮一峰《如何选择开源许可证》<svg aria-hidden="true" class="external-icon" viewBox="0 0 512 512"><path d="M320 0H288V64h32 82.7L201.4 265.4 178.7 288 224 333.3l22.6-22.6L448 109.3V192v32h64V192 32 0H480 320zM32 32H0V64 480v32H32 456h32V480 352 320H424v32 96H64V96h96 32V32H160 32z"></path></svg></a></p>
|
|||
|
</blockquote></article><hr/><div class="page-footer"></div></div><div class="right sidebar"><div class="graph"><h3>关系图谱</h3><div class="graph-outer"><div id="graph-container" data-cfg="{"drag":true,"zoom":true,"depth":1,"scale":1.1,"repelForce":0.5,"centerForce":0.3,"linkDistance":30,"fontSize":0.6,"opacityScale":1,"showTags":true,"removeTags":[],"focusOnHover":false}"></div><button id="global-graph-icon" aria-label="Global Graph"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 55 55" fill="currentColor" xml:space="preserve"><path d="M49,0c-3.309,0-6,2.691-6,6c0,1.035,0.263,2.009,0.726,2.86l-9.829,9.829C32.542,17.634,30.846,17,29,17
|
|||
|
s-3.542,0.634-4.898,1.688l-7.669-7.669C16.785,10.424,17,9.74,17,9c0-2.206-1.794-4-4-4S9,6.794,9,9s1.794,4,4,4
|
|||
|
c0.74,0,1.424-0.215,2.019-0.567l7.669,7.669C21.634,21.458,21,23.154,21,25s0.634,3.542,1.688,4.897L10.024,42.562
|
|||
|
C8.958,41.595,7.549,41,6,41c-3.309,0-6,2.691-6,6s2.691,6,6,6s6-2.691,6-6c0-1.035-0.263-2.009-0.726-2.86l12.829-12.829
|
|||
|
c1.106,0.86,2.44,1.436,3.898,1.619v10.16c-2.833,0.478-5,2.942-5,5.91c0,3.309,2.691,6,6,6s6-2.691,6-6c0-2.967-2.167-5.431-5-5.91
|
|||
|
v-10.16c1.458-0.183,2.792-0.759,3.898-1.619l7.669,7.669C41.215,39.576,41,40.26,41,41c0,2.206,1.794,4,4,4s4-1.794,4-4
|
|||
|
s-1.794-4-4-4c-0.74,0-1.424,0.215-2.019,0.567l-7.669-7.669C36.366,28.542,37,26.846,37,25s-0.634-3.542-1.688-4.897l9.665-9.665
|
|||
|
C46.042,11.405,47.451,12,49,12c3.309,0,6-2.691,6-6S52.309,0,49,0z M11,9c0-1.103,0.897-2,2-2s2,0.897,2,2s-0.897,2-2,2
|
|||
|
S11,10.103,11,9z M6,51c-2.206,0-4-1.794-4-4s1.794-4,4-4s4,1.794,4,4S8.206,51,6,51z M33,49c0,2.206-1.794,4-4,4s-4-1.794-4-4
|
|||
|
s1.794-4,4-4S33,46.794,33,49z M29,31c-3.309,0-6-2.691-6-6s2.691-6,6-6s6,2.691,6,6S32.309,31,29,31z M47,41c0,1.103-0.897,2-2,2
|
|||
|
s-2-0.897-2-2s0.897-2,2-2S47,39.897,47,41z M49,10c-2.206,0-4-1.794-4-4s1.794-4,4-4s4,1.794,4,4S51.206,10,49,10z"></path></svg></button></div><div id="global-graph-outer"><div id="global-graph-container" data-cfg="{"drag":true,"zoom":true,"depth":-1,"scale":0.9,"repelForce":0.5,"centerForce":0.3,"linkDistance":30,"fontSize":0.6,"opacityScale":1,"showTags":true,"removeTags":[],"focusOnHover":true}"></div></div></div><div class="toc desktop-only"><button type="button" id="toc" class aria-controls="toc-content" aria-expanded="true"><h3>目录</h3><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="fold"><polyline points="6 9 12 15 18 9"></polyline></svg></button><div id="toc-content" class><ul class="overflow"><li class="depth-0"><a href="#开源软件的定义" data-for="开源软件的定义">开源软件的定义</a></li><li class="depth-0"><a href="#开源软件的优点" data-for="开源软件的优点">开源软件的优点</a></li><li class="depth-0"><a href="#开源社区的贡献和影响" data-for="开源社区的贡献和影响">开源社区的贡献和影响</a></li><li class="depth-1"><a href="#著名的开源社区" data-for="著名的开源社区">著名的开源社区</a></li><li class="depth-0"><a href="#开源软件的风险" data-for="开源软件的风险">开源软件的风险</a></li><li class="depth-0"><a href="#开源许可证简介" data-for="开源许可证简介">开源许可证简介</a></li><li class="depth-0"><a href="#许可证的兼容性" data-for="许可证的兼容性">许可证的兼容性</a></li><li class="depth-1"><a href="#如何选择许可证" data-for="如何选择许可证">如何选择许可证</a></li></ul></div></div><div class="explorer mobile-only"><button type="button" id="explorer" data-behavior="collapse" data-collapsed="collapsed" data-savestate="true" data-tree="[{"path":"Personal","collapsed":true},{"path":"Personal/Blog","collapsed":true},{"path":"Personal/Blog/2018","collapsed":true},{"path":"Personal/Blog/2020","collapsed":true},{"path":"Personal/Blog/2021","collapsed":true},{"path":"Personal/Blog/2022","collapsed":true},{"path":"Personal/Blog/2023","collapsed":true},{"path":"Personal/Blog/2024","collapsed":true},{"path":"Personal/Book","collapsed":true},{"path":"Personal/Book/个人成长","collapsed":true},{"path":"Personal/Book/医学健康","collapsed":true},{"path":"Personal/Book/历史","collapsed":true},{"path":"Personal/Book/哲学宗教","collapsed":true},{"path":"Personal/Book/心理","collapsed":true},{"path":"Personal/Book/政治军事","collapsed":true},{"path":"Personal/Book/教育学习","collapsed":true},{"path":"Personal/Book/文学","collapsed":true},{"path":"Personal/Book/生活百科","collapsed":true},{"path":"Personal/Book/社会文化","collapsed":true},{"path":"Personal/Book/科学技术","collapsed":true},{"path":"Personal/Book/经济理财","collapsed":true},{"path":"Personal/Book/艺术","collapsed":true},{"path":"Personal/Book/计算机","collapsed":true},{"path":"Personal/Journal","collapsed":true},{"path":"Personal/Journal/2022","collapsed&
|
|||
|
</script><script type="module">
|
|||
|
let mermaidImport = undefined
|
|||
|
document.addEventListener('nav', async () => {
|
|||
|
if (document.querySelector("code.mermaid")) {
|
|||
|
mermaidImport ||= await import('https://cdnjs.cloudflare.com/ajax/libs/mermaid/10.7.0/mermaid.esm.min.mjs')
|
|||
|
const mermaid = mermaidImport.default
|
|||
|
const darkMode = document.documentElement.getAttribute('saved-theme') === 'dark'
|
|||
|
mermaid.initialize({
|
|||
|
startOnLoad: false,
|
|||
|
securityLevel: 'loose',
|
|||
|
theme: darkMode ? 'dark' : 'default'
|
|||
|
})
|
|||
|
|
|||
|
await mermaid.run({
|
|||
|
querySelector: '.mermaid'
|
|||
|
})
|
|||
|
}
|
|||
|
});
|
|||
|
</script><script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.16.9/contrib/copy-tex.min.js" type="application/javascript"></script><script src="../../../../postscript.js" type="module"></script></html>
|