Snap remove [package-name] does not remove the installation file

Hi. I try to install some package by

sudo snap install intellij-idea-ultimate --classic

it will need some time to download. then I run

sudo snap remove intellij-idea-ultimate

it shows intellij-idea-ultimate removed. If I run

sudo snap install intellij-idea-ultimate --classic

again, this time the package will be installed immediately without downloading, does it means the installation file still exists soemwhere after removing the package?

1 Like

It’s cached under /var/lib/snapd/cache and will be evicted when new snap downloads happen. IIRC by default up to 5 ‘unused’ snaps are kept in the cache. By unused, I mean the objects that aren’t hardlinked to /var/lib/snapd/snaps.