How to Install and Uninstall zram-generator Package on openSUSE Leap

Last updated: May 18,2024

1. Install "zram-generator" package

Please follow the steps below to install zram-generator on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install zram-generator

2. Uninstall "zram-generator" package

This tutorial shows how to uninstall zram-generator on openSUSE Leap:

$ sudo zypper remove zram-generator

3. Information about the zram-generator package on openSUSE Leap

Information for package zram-generator:
---------------------------------------
Repository : Update repository with updates from SUSE Linux Enterprise 15
Name : zram-generator
Version : 1.1.1~git5.8612dbb-150400.3.3.2
Arch : x86_64
Vendor : SUSE LLC
Installed Size : 794.4 KiB
Installed : No
Status : not installed
Source package : zram-generator-1.1.1~git5.8612dbb-150400.3.3.2.src
Upstream URL : https://github.com/systemd/zram-generator
Summary : Systemd unit generator for zram swap devices
Description :
This is a systemd unit generator that enables swap on zram.
(With zram, there is no physical swap device. Part of the avaialable RAM
is used to store compressed pages, essentially trading CPU cycles for memory.)
To configure and activate swap and zram devices with file-systems, create a configuration file in /etc/systemd/zram-generator.conf. You can consult /usr/share/doc/zram-generator/zram-generator.conf.example for an example and a list of available settings.