How to Install and Uninstall dphys-swapfile Package on Ubuntu 21.04 (Hirsute Hippo)

Last updated: November 26,2024

1. Install "dphys-swapfile" package

Please follow the step by step instructions below to install dphys-swapfile on Ubuntu 21.04 (Hirsute Hippo)

$ sudo apt update $ sudo apt install dphys-swapfile

2. Uninstall "dphys-swapfile" package

This guide covers the steps necessary to uninstall dphys-swapfile on Ubuntu 21.04 (Hirsute Hippo):

$ sudo apt remove dphys-swapfile $ sudo apt autoclean && sudo apt autoremove

3. Information about the dphys-swapfile package on Ubuntu 21.04 (Hirsute Hippo)

Package: dphys-swapfile
Architecture: all
Version: 20100506-7
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Axel Beckert
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 68
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: dc, e2fsprogs, lsb-base (>= 3.0-6)
Filename: pool/universe/d/dphys-swapfile/dphys-swapfile_20100506-7_all.deb
Size: 15204
MD5sum: 1f3648739aa1f8c09d68780f6e036b32
SHA1: 2b77adc3dce1f0a8798ba3c442642a1a38798e4c
SHA256: 5bac9658f3ad27d62c3513a0148f1d9815bee5c22a624e5047be91432229dec3
SHA512: 00f50e942f46fc837aeeb4a55a92d7cbadb921dfa5530ebe79c35f4b7da1508cf8413f0ec260ccd49f31240cd1d5f258e0c3739378a7c421d8e6000fd0dbee45
Homepage: http://neil.franklin.ch/Projects/dphys-swapfile/
Description-en: Autogenerate and use a swap file
This init.d script exists so one does not need to have a fixed size
swap partition. Instead install without swap partition and then run this,
with file size (re-)computed automatically to fit the current RAM size.
.
By default (and hence on installation) it creates swapfile twice as
big as the present RAM amount with an upper limit of 2 GB.
.
It's also very helpful when included in SD card, USB stick or disk
images which are distributed and run on many machines with different
amount of RAM, e.g. different models of the Raspberry Pi or cloud
images.
Description-md5: b00608070510dc33cb909eeb3fb6aa5f