How to Install and Uninstall dphys-swapfile Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: December 25,2024

1. Install "dphys-swapfile" package

This guide let you learn how to install dphys-swapfile on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install dphys-swapfile

2. Uninstall "dphys-swapfile" package

Here is a brief guide to show you how to uninstall dphys-swapfile on Ubuntu 20.10 (Groovy Gorilla):

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

3. Information about the dphys-swapfile package on Ubuntu 20.10 (Groovy Gorilla)

Package: dphys-swapfile
Architecture: all
Version: 20100506-6
Priority: optional
Section: universe/admin
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Axel Beckert
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 67
Pre-Depends: init-system-helpers (>= 1.54~)
Depends: dc, lsb-base (>= 3.0-6)
Filename: pool/universe/d/dphys-swapfile/dphys-swapfile_20100506-6_all.deb
Size: 15000
MD5sum: c64af47daad6bc13c74ff16106e6f1a0
SHA1: a61036546d90b0b4260443fa111cf9e8605daa82
SHA256: 234a2077a4aa10ac03eb56e0576ec6630f47106fbf57d79593bd6e40f9c4d4c0
SHA512: 5cecfd6d7de0a72784f3810567b335d73c9dc377335dab516d7627e34d671311f5dc24f35d98f79a68ac39fba9615ea3ed09da16f5113a8ea7fd8125a932a811
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