Three questions settle most of what you need to know.

Section 01Find the licence, then ask three things

The licence file is almost always called LICENSE, LICENCE, or COPYING, sitting at the root of a project's repository or source archive. Most project pages name the licence prominently — look for a badge or a sidebar entry. If neither is obvious, the Open Source Initiative and the Free Software Foundation both maintain searchable lists of approved licences with plain-English summaries.

Once you have it, ignore the legal boilerplate for now and ask three questions.

Can you share it? Some licences — the MIT, BSD, and Apache 2.0 licences among them — let you pass the software on freely, with or without changes. Others restrict redistribution or require that any copy you share carries the same licence. This is the copyleft question, and it matters most if you plan to bundle the software in something else.

Can you modify it? Nearly every open licence allows you to alter the source code, but the conditions on what you do next vary widely. Copyleft licences such as the GNU GPL require that derivative works carry the same terms; permissive licences do not. If you are curious about the distinction in more depth, the five major licences compared lays them out side by side.

Does it disclaim warranty? Almost universally, yes. That bold block of capitals is standard protective language, not a trap. It means the authors take no legal responsibility if the software misbehaves — sensible for volunteers distributing code at no charge.

Those three answers cover the vast majority of everyday decisions. If your use is more complicated — commercial redistribution, patent-sensitive code, government procurement — that is when an actual lawyer earns their fee.

a mechanical keyboard on a wooden desk in low light
a mechanical keyboard on a wooden desk in low light — the desk, where all of this actually happens.

Key facts · the words used here

copyleft
licence condition requiring derivative works to carry the same terms
permissive licence
open licence with minimal conditions on reuse and redistribution
GPL
GNU General Public Licence, the most widely used copyleft licence
disclaimer of warranty
legal text removing author liability for software defects

Open Source Initiative

Referenced in this piece

US non-profit that maintains the official list of approved open-source licences

Free Software Foundation

Referenced in this piece

non-profit that publishes and advocates for the GNU family of licences

Programs and organisations are named as examples, not recommendations. Where we link, we link the official project page. The desk hosts no files and ranks no vendors.