How To Install zram-generator on Fedora 36
Introduction
In this tutorial we learn how to install zram-generator
on Fedora 36.
What is zram-generator
This is a systemd unit generator that enables swap on zram. (With zram, there is no physical swap device. Part of the available RAM is used to store compressed pages, essentially trading CPU cycles for memory.) To activate, install zram-generator-defaults subpackage.
We can use yum
or dnf
to install zram-generator
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install zram-generator.
Install zram-generator on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install zram-generator
using dnf
by running the following command:
sudo dnf -y install zram-generator
Install zram-generator on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install zram-generator
using yum
by running the following command:
sudo yum -y install zram-generator
How To Uninstall zram-generator on Fedora 36
To uninstall only the zram-generator
package we can use the following command:
sudo dnf remove zram-generator
zram-generator Package Contents on Fedora 36
/usr/lib/.build-id
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/37d46817e8be33195323132e4379897b127aff
/usr/lib/systemd/system-generators/zram-generator
/usr/lib/systemd/system/[email protected]
/usr/share/doc/zram-generator
/usr/share/doc/zram-generator/README.md
/usr/share/doc/zram-generator/zram-generator.conf.example
/usr/share/licenses/zram-generator
/usr/share/licenses/zram-generator/LICENSE
/usr/share/man/man5/zram-generator.conf.5.gz
/usr/share/man/man8/zram-generator.8.gz
References
Summary
In this tutorial we learn how to install zram-generator
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).