Pebellslearn by building
0%
RoadmapsMatrixCoursesSandboxSign in
Operating System  ›  Lesson

RHEL, Its Relatives and SUSE

RHEL / Derivatives 12 minThe RHEL family and SUSE both use rpm packages, managed with dnf and zypper respectively, while systemd keeps service commands the same across families.

RHEL, Its Relatives and SUSE

A company's older servers run Red Hat Enterprise Linux, and the new database cluster runs SUSE. You type apt install out of habit and get "command not found". Nothing is broken; you are simply talking to a different family.

The rule

Red Hat speaks rpm and dnf; SUSE speaks rpm and zypper.

RHEL (Red Hat Enterprise Linux) is a commercial distribution sold with a support subscription, popular in banks, governments and large companies. Around it sits a family:

  • Fedora: the fast-moving community distro where new ideas are tried first.
  • CentOS Stream: a preview of the next RHEL minor release.
  • Rocky Linux and AlmaLinux: free rebuilds designed to be compatible with RHEL.

They all use .rpm packages and the dnf tool, which replaced the older yum. On current releases, typing yum still works because it is kept as a compatible alias.

SUSE Linux Enterprise and the community openSUSE also use .rpm packages, but their tool is zypper.

Two other differences catch newcomers on RHEL-family servers:

  • The firewall is usually managed with firewall-cmd (firewalld), where Ubuntu often uses ufw.
  • SELinux is on by default. It can block a service from reading files or opening ports even when normal file permissions look correct.

The shortcut

Keep a translation table in your head. The verbs are nearly the same; only the tool name changes:

Task Debian / Ubuntu RHEL family SUSE
Install apt install nginx dnf install nginx zypper install nginx
Upgrade all apt upgrade dnf upgrade zypper update
Search apt search nginx dnf search nginx zypper search nginx
Package file .deb .rpm .rpm

Service management is the same everywhere thanks to systemd: systemctl start, stop, restart, enable, status.

Deploying notes-api to a Rocky Linux serverStep 1 of 4
  1. Identify

    /etc/os-release shows ID="rocky" and ID_LIKE="rhel centos fedora".

The trap: the service starts but cannot reach its files or port, and permissions look fine. On the RHEL family, suspect SELinux and check the audit log before loosening file permissions.

Drills

Answer fast — trust the rule.

quick drill

Which command installs nginx on a Rocky Linux server?

quick drill

What package format do RHEL and SUSE share?

quick drill

On an openSUSE server, which tool manages packages?

quick drill

On RHEL, nginx is running but cannot read a folder even though chmod looks right. What should you suspect first?

Remember

  • Red Hat speaks rpm and dnf; SUSE speaks rpm and zypper; Debian speaks deb and apt.
  • Shortcut: same verb, different tool; systemctl is the same everywhere.
  • Trap: forgetting firewalld and SELinux on the RHEL family.

Practice — level up

0/1 solved

Write your answer, then compare it with a rubric and a model answer.

ExplainTranslate a runbook

Your runbook says apt install nginx and ufw allow http, but the new server runs AlmaLinux. Explain how you would translate the runbook and what extra RHEL-family behaviour you would watch for.