Difference between revisions of "/var/lib/snapd/snaps/"

From wikieduonline
Jump to navigation Jump to search
Line 10: Line 10:
 
  du -hs /var/lib/snapd/snaps/
 
  du -hs /var/lib/snapd/snaps/
 
  #!/bin/sh
 
  #!/bin/sh
  LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
+
  LANG=en_US.UTF-8 snap list --all | awk '/[[disabled]]/{print $1, $3}' |
 
  while read pkg revision; do
 
  while read pkg revision; do
 
   sudo [[snap remove]] "$pkg" --revision="$revision"
 
   sudo [[snap remove]] "$pkg" --revision="$revision"

Revision as of 11:51, 20 October 2023

/var/lib/snapd/snaps/
/var/lib/snapd/snaps/partial/
.snap
du -hs /var/lib/snapd/snaps/


du -hs /var/lib/snapd/snaps/
#!/bin/sh
LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |
while read pkg revision; do
  sudo snap remove "$pkg" --revision="$revision"
done
du -hs /var/lib/snapd/snaps/

Related

See also

Advertising: