Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 2

Linux Distributions and Their Uses

Recommended resources

Hello! Welcome to your second lesson.

In our previous session, we established a foundational understanding of the Linux operating system's architecture, focusing on the kernel, its subsystems, and the crucial separation between kernel space and user space. We learned that the kernel is the core, but it's not the whole story.

Today, we'll build directly on that knowledge to address the learning outcome: to identify major Linux distributions and their use cases. We'll explore how the Linux kernel is packaged with user-space software to create the complete, usable operating systems we call "distributions" or "distros." Understanding the landscape of major distros—their origins, philosophies, and target audiences—is essential for any Linux professional, as it informs decisions about which tool is right for a specific job.

1. What is a Linux Distribution?

If the Linux kernel is an engine, a distribution is the entire car built around it. A distro bundles the kernel with a vast collection of user-space software: system utilities, programming libraries, documentation, and often a graphical desktop environment. Crucially, it also includes a package manager, a tool that lets you easily install, update, and remove software.

To get a quick and engaging overview of what a distro is and why so many exist, let's start with a short video.

Why so many distros? The Weird History of Linux

This video from the Fireship channel, 'Why so many distros?', provides a fast-paced and clear explanation of what a distribution is and the reasons behind their diversity.

Please watch from 02:41 to 03:29. Focus on the definition of a 'distro' and the different purposes they are designed to serve.

As the video highlights, the open-source nature of the Linux kernel and its surrounding components means anyone can customize and package them. This has led to hundreds of distros, each tailored for a different purpose: some prioritize stability for servers, others offer the latest software for developers, and many focus on being easy to use for new users on desktop computers.


2. The Major Linux Families

While there are countless distros, most can be traced back to a few influential "family trees." For the CompTIA Linux+ exam and general system administration, the two most important families are Debian-based and Red Hat-based.

This family tree diagram gives a great visual overview of how these distros relate to one another. You'll see the major branches we're about to discuss.

Linux Distribution Family Tree
This diagram illustrates the lineage of major Linux distributions. Notice how popular distros like Ubuntu are derived from Debian, while Fedora and CentOS are part of the Red Hat family.

Let's dive into the specifics of these families and other key independent distributions. For a detailed, server-focused comparison, the following video is an excellent resource. We'll refer to specific segments as we go.

Linux Servers: Which Distro should you use?!

The video 'Linux Servers: Which Distro should you use?!' from Learn Linux TV offers a professional perspective on the most common distributions used in server environments, which is a critical focus area for Linux professionals.

You don't need to watch the whole video at once. I will guide you to specific timestamps for each distribution we discuss.

The Debian Family

The Debian project, started in 1993, is one of the oldest and most influential. It is a massive, volunteer-driven, non-commercial project. Its core principles are stability and software freedom.

Key Characteristics:

  • Package Management: Uses the dpkg system with the APT (Advanced Package Tool) front-end. Packages are in the .deb format.
  • Release Branches: Famously offers three main branches:
    • Stable: Rock-solid and reliable, with old but thoroughly tested software. The top choice for production servers.
    • Testing: The next Stable release. Contains newer packages that have been in Unstable for a while.
    • Unstable (Codename: Sid): The development version with the latest software, but with a higher potential for bugs.

Use Case: Its stability makes Debian Stable a premier choice for servers of all kinds, from web servers to database servers.

Ubuntu:
Launched in 2004 by the company Canonical, Ubuntu is based on Debian's Unstable branch. It aimed to make Linux more user-friendly and accessible.

Key Characteristics:

  • Predictable Releases: New versions are released every six months, with a Long-Term Support (LTS) version released every two years.
  • LTS Releases: These are the standard for server and enterprise deployments, offering free security updates for five years. Non-LTS releases are only supported for nine months.
  • Commercial Backing: Backed by Canonical, which offers paid commercial support—a key factor for many businesses.
  • Use Case: Extremely popular on both desktops (for its ease of use) and servers (thanks to LTS releases). Widely used in cloud computing.

For a deeper dive into how Debian and Ubuntu function in a server context, watch these segments from the Learn Linux TV video.

Linux Servers: Which Distro should you use?!

Let's return to the 'Linux Servers' video to get more detail on Debian and Ubuntu.

Watch the section on Debian from 01:02 to 07:16. Then, watch the section on Ubuntu from 07:16 to 12:44. Pay attention to the discussion of stability vs. package age for Debian, and the importance of LTS releases for Ubuntu.

Other Debian Derivatives:

  • Linux Mint: Based on Ubuntu, it focuses on providing a classic, easy-to-use desktop experience, often preferred by users transitioning from other operating systems.

The Red Hat Family

Red Hat, Inc. is a major player in the enterprise software world. Its distributions are dominant in corporate data centers.

Key Characteristics:

  • Package Management: Uses the RPM (Red Hat Package Manager) system with front-end tools like YUM (older) and DNF (modern).
  • Enterprise Focus: Strong emphasis on security, stability, and long-term paid support.

Red Hat Enterprise Linux (RHEL):
This is Red Hat's flagship product. It's a commercial distribution that requires a paid subscription, which includes access to software, updates, and technical support.

  • Use Case: The standard for many large corporate environments, especially in finance, healthcare, and government, where a support contract is a requirement.

Fedora:
Fedora is a community-driven project sponsored by Red Hat. It serves as the upstream source for future versions of RHEL.

  • Key Characteristics: It's known for being innovative and adopting new technologies early. It has a much shorter release cycle (about 6 months) and support life than RHEL.
  • Use Case: A great choice for developers, engineers, and enthusiasts who want the latest software and features in the Linux world.

RHEL Clones (CentOS, Rocky Linux, AlmaLinux):
Because RHEL is open-source, its source code is publicly available. Historically, the CentOS project recompiled this source code to create a free version of RHEL, 100% binary compatible but without the paid support. This was hugely popular.

Recently, Red Hat shifted CentOS to CentOS Stream, which is now a preview of what's coming to RHEL. In response, the community created new RHEL clones to fill the void left by the original CentOS:

  • Rocky Linux (started by the original founder of CentOS)

  • AlmaLinux

  • Use Case: These distros are for users who need the stability and compatibility of RHEL but without the cost of a support subscription. They are excellent choices for production servers in small to medium-sized businesses.

The following segments from the Learn Linux TV video explain this ecosystem clearly.

Linux Servers: Which Distro should you use?!

Let's go back to the 'Linux Servers' video to understand the Red Hat ecosystem.

Watch the segment on RHEL from 12:44 to 15:13. Then, watch the critical section on CentOS, CentOS Stream, AlmaLinux, and Rocky Linux from 15:13 to 19:05. Understanding the shift from CentOS to CentOS Stream and the rise of its successors is important modern Linux knowledge.


Other Notable Distributions

Arch Linux:
Arch stands apart with its "Keep It Simple, Stupid" (KISS) philosophy. It provides a minimal base system and lets the user build everything on top of it.

  • Key Characteristics:
    • Rolling Release: There are no version numbers. The system is continuously updated.
    • Pacman: Uses its own powerful package manager called pacman.
    • The Arch Wiki: Has what is widely considered the most comprehensive and high-quality documentation of any Linux project.
  • Use Case: For intermediate to advanced users who want to build a highly customized, lightweight system and have complete control.

SUSE Linux:
A major distribution with strong European roots and a long history, particularly in the enterprise space.

  • Key Characteristics:
    • YaST: Its most famous feature is the "Yet another Setup Tool," a comprehensive graphical tool for system administration.
    • openSUSE: The community version. It comes in two flavors:
      • Leap: A stable, point-release version that shares a core with SUSE Linux Enterprise (SLE).
      • Tumbleweed: A rolling-release version.
  • Use Case: SUSE Linux Enterprise Server (SLES) is a major competitor to RHEL in the enterprise market. openSUSE is a solid choice for both desktops and servers.

3. Summary and Comparison

To help you organize this information for study, here is a summary of the distributions we've discussed. For a quick reference with pros and cons, the DistroWatch "Major Distributions" page is a useful resource to bookmark.

An overview of major Linux distributions and FreeBSD

The webpage 'An overview of major Linux distributions' from DistroWatch provides concise, text-based summaries for each distro, including pros, cons, and package management details. It's a great reference to complement the videos.

You don't need to read this entire page now, but I recommend looking over the sections for Debian GNU/Linux, Ubuntu, Red Hat Enterprise Linux, Fedora, Arch Linux, and openSUSE to reinforce what you've learned. Notice the consistent structure of Pros, Cons, and Software package management.

Here's a table to consolidate the key facts:

Distribution Based On Primary Use Case(s) Package Manager Key Characteristic
Debian Independent Stable Servers apt / .deb Non-commercial, rock-solid stability.
Ubuntu Debian Desktop, Cloud, Servers apt / .deb User-friendly, strong commercial backing (Canonical), LTS releases.
RHEL Fedora Enterprise Servers dnf (yum) / .rpm Commercial, paid support, extreme stability.
Fedora Independent Developer Workstations dnf / .rpm Cutting-edge, innovative, upstream for RHEL.
Rocky/Alma RHEL Enterprise Servers dnf (yum) / .rpm Free, binary-compatible clone of RHEL.
Arch Linux Independent Custom User Systems pacman Minimalist, rolling release, highly customizable, excellent documentation.
openSUSE Independent Desktops, Servers zypper / .rpm Known for the YaST configuration tool.
Test your understanding!

A small startup needs to set up a web server for its new application. Their requirements are:

  1. The operating system must be free to use.
  2. It needs to be very stable and receive security patches for many years.
  3. Their small technical team is most familiar with apt for installing software.

Based on these requirements, which two distributions would be the most suitable choices, and why?

Show answer

The two most suitable choices would be Debian Stable and Ubuntu LTS.

  • Debian Stable: It is free, famously stable, and has a very long support cycle. It uses apt, fitting the team's experience perfectly.
  • Ubuntu LTS (Long-Term Support): It is also free, designed for production servers with 5 years of support, and uses apt since it is based on Debian.

A RHEL clone like Rocky Linux would meet the first two criteria but fails the third, as it uses dnf/rpm, not apt.


Conclusion

You now have a map of the Linux world. You've seen that while all distributions share the Linux kernel, they differ significantly in their goals, software, and management philosophy.

Key takeaways from this lesson:

  • A distribution (distro) is the Linux kernel bundled with user-space software and a package manager.
  • The main families are Debian-based (using apt) and Red Hat-based (using dnf/rpm).
  • Use cases drive the choice of distro:
    • For stable, free servers: Debian, Ubuntu LTS, Rocky/AlmaLinux.
    • For corporate enterprise servers with paid support: RHEL, SLES.
    • For modern developer desktops: Fedora, Ubuntu.
    • For highly customized systems by advanced users: Arch Linux.

In our next lesson, we will get more technical and begin to look at what happens when you turn on a Linux machine. We will describe the boot sequence from power-on to kernel loading, covering BIOS/UEFI and the GRUB bootloader. This will bridge the gap between the hardware and the operating system we've just defined.