zram - disable, stop, remove

As the title says, how to remove or disable zram. Thank you

Answer:

systemctl disable zramswap.service

@VernDog:

But, if you want to use the zRam devices, how do you plan to initialise and configure them?

  • By using the Kernel’s sysfs services?
  • By using the systemd zramctl utility?

If only the first choice, you do not need to install the “zramcfg”, “zram-generator” and “systemd-zram-service” packages.

  • If those packages have been pulled in by dependencies of the “libudisks2-0_zram” package then, you can deinstall/remove them but, you’ll have to black-list them to prevent them being reinstalled when the zRam UDisks package is patched or updated …