The script would also show the name of the package being removed. When I ran the script, it reduced a lot of disk space. Check the box System - Wipe Free Disk Space. sh in a directory (for example clean_snap.sh), give it executable permission and run. Snap remove "$snapname" -revision="$revision" LANG=en_US.UTF-8 snap list -all | awk '/disabled/' | Here’s the script we will use to clean the Snap up. In a post in SuperUser, Popey, the ex-Engineering Manager at Canonical, provided a simple script that can clean up old versions of Snaps and keep the latest one. sudo snap set system refresh.retain=2 Clean Up Snap Versions However, you can easily modify the count using the following command. We all have a few games and/or applications that we hardly use. Uninstall unnecessary applications Recommended. If you read the apt-get commands guide, you might have. One method is to either purchase new hardware or re-purpose an existing computer system on which to install and run the operating system. Get rid of packages that are no longer required Recommended. Installing Ubuntu 20.04 on a Clean Disk Drive There are now three ways in which an Ubuntu system can be deployed. This is okay if you do not have constraints on your disk space.īut for servers and other use cases, this can easily run into cost issues, consuming your disk space. How to free up disk space in Ubuntu and Linux Mint 1. That means Snap keeps three older versions of each package, including the active version. The default value is 3 for several revisions for retention.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |