How To Install rust-zram-generator-devel on Fedora 36

In this tutorial we learn how to install rust-zram-generator-devel in Fedora 36. rust-zram-generator-devel is Default configuration for zram-generator

Introduction

In this tutorial we learn how to install rust-zram-generator-devel on Fedora 36.

What is rust-zram-generator-devel

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. This package contains library source intended for building other packages which use the “zram-generator” crate.

We can use yum or dnf to install rust-zram-generator-devel on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install rust-zram-generator-devel.

Install rust-zram-generator-devel 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 rust-zram-generator-devel using dnf by running the following command:

sudo dnf -y install rust-zram-generator-devel

Install rust-zram-generator-devel 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 rust-zram-generator-devel using yum by running the following command:

sudo yum -y install rust-zram-generator-devel

How To Uninstall rust-zram-generator-devel on Fedora 36

To uninstall only the rust-zram-generator-devel package we can use the following command:

sudo dnf remove rust-zram-generator-devel

rust-zram-generator-devel Package Contents on Fedora 36

/usr/share/cargo/registry/zram-generator-1.1.2
/usr/share/cargo/registry/zram-generator-1.1.2/.cargo-checksum.json
/usr/share/cargo/registry/zram-generator-1.1.2/Cargo.toml
/usr/share/cargo/registry/zram-generator-1.1.2/LICENSE
/usr/share/cargo/registry/zram-generator-1.1.2/Makefile
/usr/share/cargo/registry/zram-generator-1.1.2/README.md
/usr/share/cargo/registry/zram-generator-1.1.2/man
/usr/share/cargo/registry/zram-generator-1.1.2/man/index.txt
/usr/share/cargo/registry/zram-generator-1.1.2/man/zram-generator.8
/usr/share/cargo/registry/zram-generator-1.1.2/man/zram-generator.8.html
/usr/share/cargo/registry/zram-generator-1.1.2/man/zram-generator.conf.5
/usr/share/cargo/registry/zram-generator-1.1.2/man/zram-generator.conf.5.html
/usr/share/cargo/registry/zram-generator-1.1.2/man/zram-generator.conf.md
/usr/share/cargo/registry/zram-generator-1.1.2/man/zram-generator.md
/usr/share/cargo/registry/zram-generator-1.1.2/src
/usr/share/cargo/registry/zram-generator-1.1.2/src/config.rs
/usr/share/cargo/registry/zram-generator-1.1.2/src/generator.rs
/usr/share/cargo/registry/zram-generator-1.1.2/src/kernlog.rs
/usr/share/cargo/registry/zram-generator-1.1.2/src/lib.rs
/usr/share/cargo/registry/zram-generator-1.1.2/src/main.rs
/usr/share/cargo/registry/zram-generator-1.1.2/src/setup.rs
/usr/share/cargo/registry/zram-generator-1.1.2/tests
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/run.expected
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/run.expected/units
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/run.expected/units/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/run.expected/units/swap.target.wants
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/run.expected/units/swap.target.wants/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/usr
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/usr/lib
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/usr/lib/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/01-basic/usr/lib/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/etc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/etc/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/etc/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/run.expected
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/run.expected/units
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/run.expected/units/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/run.expected/units/swap.target.wants
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/run.expected/units/swap.target.wants/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/02-zstd/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/03-too-much-memory
/usr/share/cargo/registry/zram-generator-1.1.2/tests/03-too-much-memory/etc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/03-too-much-memory/etc/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/03-too-much-memory/etc/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/03-too-much-memory/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/03-too-much-memory/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/etc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/etc/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/etc/systemd/zram-generator.conf.d
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/etc/systemd/zram-generator.conf.d/03-drop3.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/etc/systemd/zram-generator.conf.d/04-drop4.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/etc/systemd/zram-generator.conf.d/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/dev-zram2.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/swap.target.wants
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/swap.target.wants/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/swap.target.wants/dev-zram2.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/usr
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/usr/lib
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/usr/lib/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/usr/lib/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/usr/lib/systemd/zram-generator.conf.d
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/usr/lib/systemd/zram-generator.conf.d/01-drop1.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/usr/lib/systemd/zram-generator.conf.d/02-drop2.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/04-dropins/usr/lib/systemd/zram-generator.conf.d/03-drop3.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/proc/cmdline
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/run.expected
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/run.expected/units
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/usr
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/usr/lib
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/usr/lib/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/05-kernel-disabled/usr/lib/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/proc/cmdline
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/run.expected
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/run.expected/units
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/run.expected/units/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/run.expected/units/swap.target.wants
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/run.expected/units/swap.target.wants/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/06-kernel-enabled/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/etc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/etc/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/etc/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/-.mount
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/foo-bar-baz.mount
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/local-fs.target.wants
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/local-fs.target.wants/-.mount
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/local-fs.target.wants/foo-bar-baz.mount
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/local-fs.target.wants/var-compressed.mount
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/local-fs.target.wants/var-folded.mount
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/var-compressed.mount
/usr/share/cargo/registry/zram-generator-1.1.2/tests/07-mount-point/run.expected/units/var-folded.mount
/usr/share/cargo/registry/zram-generator-1.1.2/tests/08-plain-device
/usr/share/cargo/registry/zram-generator-1.1.2/tests/08-plain-device/etc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/08-plain-device/etc/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/08-plain-device/etc/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/08-plain-device/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/08-plain-device/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/08-plain-device/proc/self
/usr/share/cargo/registry/zram-generator-1.1.2/tests/08-plain-device/proc/self/mountinfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/etc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/etc/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/etc/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/run.expected
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/run.expected/units
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/run.expected/units/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/run.expected/units/swap.target.wants
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/run.expected/units/swap.target.wants/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/09-zram-size/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/etc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/etc/systemd
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/etc/systemd/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/proc
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/proc/meminfo
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/dev-zram1.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/swap.target.wants
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/swap.target.wants/dev-zram0.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/swap.target.wants/dev-zram1.swap
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/tests/11-obsolete/run.expected/units/[email protected]/bindings.conf
/usr/share/cargo/registry/zram-generator-1.1.2/tests/test_cases.rs
/usr/share/cargo/registry/zram-generator-1.1.2/units
/usr/share/cargo/registry/zram-generator-1.1.2/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/units/[email protected]/binary-location.conf
/usr/share/cargo/registry/zram-generator-1.1.2/units/[email protected]
/usr/share/cargo/registry/zram-generator-1.1.2/zram-generator.conf
/usr/share/cargo/registry/zram-generator-1.1.2/zram-generator.conf.example
/usr/share/doc/rust-zram-generator-devel
/usr/share/doc/rust-zram-generator-devel/README.md
/usr/share/licenses/rust-zram-generator-devel
/usr/share/licenses/rust-zram-generator-devel/LICENSE

References

Summary

In this tutorial we learn how to install rust-zram-generator-devel on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).