I Finally Understood Linux Repositories (Main, Universe, Restricted & Multiverse) as a Linux Mint Beginner
DEV Community

I Finally Understood Linux Repositories (Main, Universe, Restricted & Multiverse) as a Linux Mint Beginner

Introduction

When I switched from Windows to Linux Mint, I noticed something interesting. Almost every installation guide started with commands like sudo apt install package-name or sudo add-apt-repository ppa:...

The commands worked, but one question kept bothering me: "Where is Linux downloading these applications from?" In Windows, we usually visit a website, download an installer, and install it ourselves. Linux works differently. Instead of downloading software from random websites, Linux installs most software from repositories. Once I understood what a repository is, many other Linux concepts suddenly made sense.

Before We Learn About Repositories...

Let's first understand how installing software works in Windows. Imagine you want VLC Media Player. What do you usually do?

  1. Open Browser โ†“
  2. Search "Download VLC" โ†“
  3. Visit Website โ†“
  4. Download Installer (.exe) โ†“
  5. Double-click โ†“
  6. Install

We're so used to this process that we don't even think about it. Linux takes a different approach.

Linux Works More Like a Phone

Think about your Android phone. When you want WhatsApp, you don't search Google for an installer. You simply open the Play Store (Google Play Store).

  • WhatsApp
  • Instagram
  • Spotify
  • Telegram
  • Thousands of Apps

Linux has a very similar idea. Instead of an App Store, it has something called a Repository.

So... What is a Repository?

A repository is simply a trusted online store of software. It contains thousands of applications that your computer can download safely.

  • Linux Repository
  • Firefox
  • LibreOffice
  • GIMP
  • VLC
  • Thunderbird
  • VS Code
  • Thousands more...

When you run:

sudo apt install vlc

your computer doesn't search the internet. It already knows where the trusted repositories are and downloads VLC from there.

Why Does Linux Have Multiple Repositories?

This confused me at first. I wondered, "Why not keep everything in one big repository?" The answer is simple. Not all software is the same.

Some software is officially maintained. Some is maintained by the open-source community. Some contains proprietary drivers. Some has legal or licensing restrictions. To keep things organized, Ubuntu (and Linux Mint) separates software into different repositories.

The Four Main Repository Sections

Repository Purpose Think of it as...
Main Officially supported software The core, trusted software for Ubuntu/Linux Mint
Universe Community-maintained software A huge library of extra applications
Restricted Proprietary drivers and firmware Hardware drivers that aren't open source
Multiverse Software with licensing restrictions Software that may have legal or licensing limitations

1. Main Repository

This is the repository Ubuntu officially maintains. Think of it as the core software collection. Software here is carefully tested and supported. As a beginner, this is the software you can trust the most.

2. Universe Repository

This is where things get exciting. The Universe repository contains thousands of additional applications maintained by the open-source community. Many popular developer tools, utilities, and desktop applications live here. As a Linux Mint user, you'll probably install software from Universe without even realizing it.

3. Restricted Repository

Some hardware manufacturers don't make their drivers open source. For example:

  • NVIDIA graphics drivers
  • Some Wi-Fi drivers
  • Hardware firmware

Linux still provides these drivers because they help your hardware work correctly. They're called Restricted because their licenses don't allow them to be fully open source.

4. Multiverse Repository

Some software has legal or licensing restrictions. For example, it may be covered by patents or have redistribution rules in certain countries. Instead of mixing it with the main software repositories, Ubuntu keeps it separate in Multiverse. Most beginners don't need to worry much about this, but it's useful to know why it exists.

Where Does Linux Mint Get These Repositories?

Linux Mint is based on Ubuntu LTS. That means it inherits Ubuntu's repository system. So when you're using Linux Mint, you're also using Ubuntu's trusted software repositories.

What About PPAs?

Sometimes the software you want isn't available in the official repositories. Or maybe the version there is old. That's where a PPA (Personal Package Archive) comes in.

A PPA is simply an additional software repository created by a developer or organization. Think of it like adding another trusted app store.

For example, Ulauncher provides an official PPA. After adding it, Linux Mint's Update Manager can automatically update Ulauncher just like it updates Firefox or LibreOffice.

Why This Was an "Aha!" Moment for Me

Before learning this, I thought Linux worked like Windows:

  • Website โ†“
  • Download โ†“
  • Install โ†“
  • Repeat for every update

Now I understand Linux works more like this:

  • Repository โ†“
  • APT downloads software โ†“
  • Software gets installed โ†“
  • Update Manager keeps it updated

No more searching for installers every time a new version is released.

Key Takeaways

If you only remember five things from this article, remember these:

  • A repository is a trusted online collection of software.
  • Linux Mint installs most applications from repositories instead of random websites.
  • Main contains officially supported software.
  • Universe contains thousands of community-maintained applications.
  • PPAs are additional repositories that let you install or receive updates for software that isn't in the official repositories.
Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.