How to Install and Uninstall systemd-zram-service Package on openSUSE Leap

Last updated: December 25,2024

1. Install "systemd-zram-service" package

This guide covers the steps necessary to install systemd-zram-service on openSUSE Leap

$ sudo zypper refresh $ sudo zypper install systemd-zram-service

2. Uninstall "systemd-zram-service" package

Here is a brief guide to show you how to uninstall systemd-zram-service on openSUSE Leap:

$ sudo zypper remove systemd-zram-service

3. Information about the systemd-zram-service package on openSUSE Leap

Information for package systemd-zram-service:
---------------------------------------------
Repository : Main Repository
Name : systemd-zram-service
Version : 0.2.1-bp155.6.5
Arch : noarch
Vendor : openSUSE
Installed Size : 3.0 KiB
Installed : No
Status : not installed
Source package : systemd-zram-service-0.2.1-bp155.6.5.src
Upstream URL : https://code.launchpad.net/~elementary-os/elementaryos/zramswap-enabler
Summary : Systemd service for zram
Description :
A successor to compcache, zRam, has been already integrated in the Linux kernel
for a while now. This means that no additional compilation nor tweaking is
required to benefit from compressing memory on the fly and massively reduced
swapping.
This package contains command line scripts zramswapon, zramswapoff to enable
zRam devices as required, or at boot time via a systemd service.
Individual Compressed RAM Block Devices are created based on cores/threads
available, the size of each block device is calculated on cores/threads divided
by total ram installed. The final total is then added to system swap.

5. The same packages on other Linux Distributions