banner



How To Remove And Clean Front Cup Holder In Crv

Snapcraft logo

I was using Disk Usage Analyzer recently to see if I could free upward some space on my Ubuntu 18.ten desktop, when I noticed that the /var/lib/snapd/snaps/ folder was quite large.

While investigating how I could free up some space / clear the snap cache from the /var/lib/snapd/snaps/ folder without removing the snap packages I had installed, I found out that past default, iii snap versions are stored by the organization after snap packet updates. Meaning that for each installed snap package that had at least 2 updates, I had iii revisions stored on my system, taking up quite a fleck of deejay infinite.

There is a snap option (starting with snapd version 2.34), chosen refresh.retain , to prepare the maximum number of a snap's revisions stored past the system afterwards the next refresh, which tin be set to a number between 2 and xx. Y'all tin can change this from the default value of 3 to 2 by using:

            sudo snap set organization refresh.retain=2          

Related, but for Flatpak packages: How To Remove Unused Flatpak Runtimes To Costless Upward Disk Space

But what if you lot desire to remove all versions kept on the system for all snap packages that had updates? This is a script created past Popey, Community Manager in Ubuntu Engineering science at Canonical, to remove ALL old versions of snaps, but keeping the current active version (updated with LANG=en_US.UTF-viii so information technology works with non-English locales, thanks to William in the comments):

            #!/bin/bash # Removes old revisions of snaps # Shut ALL SNAPS Before RUNNING THIS set -eu  LANG=en_US.UTF-8 snap listing --all | awk '/disabled/{print $1, $3}' |     while read snapname revision; do         snap remove "$snapname" --revision="$revision"     done          

Using this script should free up some significant disk space (depending on the number of snap packages installed on your system, and if they had updates since they were installed). In my example, the script reduced the size of the /var/lib/snapd/snaps/ binder by more than 50%.

Update: It looks like this script only works with English. For other languages y'all'll need to supplant /disabled/ in the command with its translation to your linguistic communication.

To employ this script create a file named remove-old-snaps , paste the contents from the code block above, save the file in your home directory, and make it executable using:

            chmod +ten remove-old-snaps          


Run the script with sudo to remove former snap revisions (make sure to close all running snaps earlier running the script):

            sudo ./remove-old-snaps          

This is the script running on my system, removing old snap package revisions:

            $ sudo ./remove-one-time-snaps  cantlet (revision 223) removed atom (revision 222) removed bitwarden (revision 15) removed bitwarden (revision 16) removed canonical-livepatch (revision 50) removed canonical-livepatch (revision 54) removed chromium (revision 607) removed chromium (revision 660) removed core (revision 6531) removed core (revision 6405) removed core18 (revision 719) removed core18 (revision 731) removed gallery-dl (revision 36) removed gallery-dl (revision 167) removed gimp (revision 110) removed gimp (revision 113) removed          

Source: https://www.LinuxUprising.com/2019/04/how-to-remove-old-snap-versions-to-free.html

Posted by: klausalearright.blogspot.com

0 Response to "How To Remove And Clean Front Cup Holder In Crv"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel