openSUSE is a community project supported by SUSE and others. It is related to SUSE Linux Enterprise, and it is used on desktops and servers.
Leap or Tumbleweed
openSUSE offers two main distributions:
- Leap: regular releases with a stable base, closely tied to SUSE Linux Enterprise
- Tumbleweed: a rolling release with new software, delivered as tested snapshots
Choose Leap if you prefer fewer changes, Tumbleweed if you want current software.
$ grep PRETTY_NAME /etc/os-release
PRETTY_NAME="openSUSE Leap 15.6"Packages with zypper
openSUSE uses RPM packages, managed by zypper.
$ sudo zypper refresh
$ sudo zypper install htop
$ zypper search htop
$ sudo zypper remove htoprefresh updates repository information.
How you update depends on the edition. On Leap, within one release, use:
$ sudo zypper updateOn Tumbleweed, use a distribution upgrade:
$ sudo zypper dupdup lets packages be replaced, removed or downgraded to match the current snapshot, which a plain update is more cautious about.
Snapshots and rollback
With the default Btrfs root file system, openSUSE uses Snapper to take snapshots, including before and after zypper changes.
$ sudo snapper listIf an update breaks the system, you can boot an older snapshot from the boot menu, check that it works, and then make it permanent:
$ sudo snapper rollbackThis depends on the file system layout, so a custom install may not offer it. Snapshots live on the same disk and are no replacement for backups.
Admin tools
openSUSE has long been known for YaST, a central tool for settings such as software, users and network. Newer releases are moving away from it: Leap 16 uses other tools, including Cockpit for web-based administration. Check which your version has. The firewall is firewalld.
$ sudo firewall-cmd --state
runningTry it
Install openSUSE in a virtual machine. Run grep PRETTY_NAME /etc/os-release, then sudo zypper refresh. Install htop, and run sudo snapper list to find the snapshots around that install. To practice updating and inspecting packages and disks, try the packages and disk lab.
Check your understanding
openSUSE
All 4 sections ยท no timer
Unlimited retries
Questions from every section are combined into one assessment. Answer them all correctly to complete the article.
Your completion saves in this browser. Sign in to sync it to your account.