शब्दकोश · प्रोग्रामिंग

Software License (MIT, GPL, Apache)

A software license is the legal agreement that states how code may be used, modified and redistributed, such as the permissive MIT or copyleft GPL.

अपडेट: अक्टूबर 6, 2026

A software license is the legal document that grants you permission to use, copy, modify and share a piece of software, along with its conditions. Without a license, code is by default all rights reserved, even if it is publicly visible.

Why it matters

Using a dependency means accepting its license. Permissive licenses such as MIT and Apache 2.0 allow commercial use and modification with few conditions, mainly keeping the copyright notice. Copyleft licenses such as the GPL require that distributed derivative works also be released under the same license. Violating terms can force you to remove or open your own code.

Example

LicenseTypeKey condition
MITPermissiveKeep the copyright notice
Apache 2.0PermissiveKeep notices, includes a patent grant
GPLCopyleftShare derivative works under the GPL

Check the project's LICENSE file, and for legal questions ask a lawyer.

Common mistakes

  • Assuming public code on GitHub is free to reuse when it has no license.
  • Mixing incompatible licenses in one product.
  • Ignoring the licenses of transitive dependencies.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.