Site Name

Copyright © 2019 All rights reserved | This template is made with ♥ by Gulshan

Remove old snaps from Ubuntu19

Create a file named remove-old-snap. Copy the following content and paste into above file: #!/bin/bash # Removes old revisions of snaps # CLOSE ALL SNAPS BEFORE RUNNING THIS set -eu LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' | while read snapname revision; do snap remove "$snapname" --revision="$revision" done Save the file. Run the script whenever you want to remove old snaps from your Ubuntu.

published by gulshan on 2019-12-02 05:10:15

1 likes 0 dislikes