Questions tagged [snap]

Snap is a packaging format for distributing sandboxed applications on GNU/Linux distributions. Use this tag for all questions related to creating, distributing and running Snaps.

Snaps are applications that run in a sandboxed environment and include all necessary dependencies. This gives the application the following benefits:

  • Can be easily installed and uninstalled on most GNU/Linux distributions.
  • Grants additional protection to the base system because of sandboxing.
  • Does not depend on libraries from the base system, so alternate or multiple versions of software can be installed on the same system.

The downside to this is that the application will take up more disk space, since all dependencies are included with each application. Snaps in particular will rely on installed images that provide common dependencies.

Snap is installed on Ubuntu by default. If the Snap daemon should somehow get uninstalled, it can be installed with:

sudo apt update
sudo apt install snapd

Snap packages are comparable in nature to and . This existing Q&A explains more about the similarities and differences between the three formats.

External Links

2350 questions
204
votes
3 answers

How to uninstall a package installed from snapcraft?

I used this command line sudo snap install pwgen-tyhicks to install pwgen but I can't findout how to use it. So I want to uninstall it. How to uninstall it?
UbuntuLover
  • 2,679
  • 3
  • 11
  • 15
98
votes
9 answers

How to disable autorefresh in snap

Is it possible to disable autorefresh in snap? This link says that Snaps are updated automatically in the background to the latest version, every day. Some snaps (e.g. vlc) are built daily, and it makes no sense to install them every day.
Ko Lin
  • 981
89
votes
6 answers

How to give snaps access to /somedir

I'm just getting my feet wet with snap. I've installed vlc and want to try to use it. All my media is installed under /store, an NFS mount. And snaps don't allow access to that directory. After googling I've come to understand that I can access…
63
votes
4 answers

How can I stop snaps from listing in df?

Ubuntu is using snaps, shown below Core applications packaged as snaps Shown here So, my question is, that since snaps are shown using the df command, and they apparently flood df. It's just flooding df, and makes it harder to use. Is there a…
60
votes
3 answers

Why would I want to install a snap if I can install via apt instead?

This is not a duplicate of the following questions What is the Snap packaging format? Why do snap-packages exist - is there a real need? because: My question specifically states that I am interested in end-user experience, not ease or efficiency…
LSharkey
  • 1,093
58
votes
4 answers

Can't refresh snap-store

i've started to use Ubuntu last month. I'm getting this error in the terminal while i'm trying to refresh snap-store $ sudo snap refresh snap-store error: cannot refresh "snap-store": snap "snap-store" has running apps (ubuntu-software) Any…
57
votes
3 answers

How to list files installed by a snap package?

After a snap has been installed with sudo snap install [package] how can I list the files which have been installed by the snap?
Kalle Richter
  • 6,180
  • 21
  • 70
  • 103
48
votes
1 answer

How to run a previous version of a snap package

I have a snap package installed and I would like to run a previous version of it temporarily to test something. I can see several versions of this package is installed in /var/lib/snapd/snaps/ Is there a simple (possibly one liner) command to run…
tnagy.adam
  • 1,848
43
votes
5 answers

Snap install specific/old version

I'm using VS code installed via snap. The latest version has an annoying bug in it and I want to revert to the previous version, but I don't see a way to tell snap to install a specific version. All I see with snap info are the different channels…
42
votes
3 answers

How to uninstall snap?

I've been using Ubuntu for 12 years, and snap in the recent releases of Ubuntu is really a disgrace. It creates lots of problems. After an upgrade, Chromium does not start due to the following error: chromium_chromium.desktop[122932]: snap-confine…
Googlebot
  • 1,787
33
votes
5 answers

How can I disable automatic update for a single snap in Ubuntu?

The recommended way for a system wide installation of Intellij idea is to use snap. When I do that, snap updates the IDE installation which is a big problem for me because updating the development environment causes issues for me and as a developer…
mahonya
  • 515
31
votes
3 answers

Add a Snap Icon to the Desktop Ubuntu 16.04

How do I add a snap application (Notes) icon to the desktop? The normal method of usr/shared/applications does not work for a snap application. I have looked in the snap folder and could not find anything useful.
Dan
  • 724
31
votes
2 answers

How do I remove all snaps and snapd, preferably with a single command

I'm currently using a Ubuntu 20.04 machine with a small root volume. The default snap setup occupies ~1G space, though with only a few packages. And when I tried to remove core from snap I got the following error. # snap remove core18 error: cannot…
wlnirvana
  • 604
26
votes
5 answers

How can I get snappy to list all available snap packages?

I already know about "sudo snap find", but this doesn´t show all snap packages. Output: ~ $ sudo snap find Name Version Developer Notes Summary ag-mcphail 1.0.1 …
Bleuzen
  • 363
21
votes
2 answers

If I've installed an application both as a snap and via APT, how can I tell which one is currently running?

If I were to install the same application both as a snap and using APT, how would I be able to call each one separately and how would I know which one was running? I am not yet fully convinced that snap is best for the end-user and want to compare…
1
2 3
18 19