How to manage Ubuntu 16.04 snap packages

snap helpOne of the most outstanding new features that have arrived with Ubuntu 16.04 LTS is the compatibility with the snap packages. Starting with version 16.04, developers will be able to deliver their software to Canonical in the classic .deb package or as a snap, but the latter has some advantages, such as allowing us to update a package as soon as the developer has delivered it. But how will these types of packages be managed?

The information has been available since last Thursday. To access it, we just have to open a terminal and type "man snap" (snap manual) or "snap –help", the second offering more direct information and the first much more detailed information. The way to manage snap packages it won't be much different from managing apt packages. Below you have the list of options that we can use from the terminal.

Commands for managing snap packages

The options that you will see next are those that appear when you type in a terminal "snap –help". To launch any option that is going to make changes, you will need to write "sudo snap" first. For example, to install the GIMP image editor, as long as it was available as a snap package, we would have to open a terminal and write, without the quotes, "sudo snap install gimp". The options are:

  • abortion to abort a pending change.
  • ack adds an assertion to the system.
  • changes shows system changes.
  • connect connect a plug to a slot
  • disconnect disconnect a plug from a slot
  • find look for packages to install
  • install install a snap on the system (like apt get install).
  • interfaces shows interfaces on the system.
  • Known displays known claims of the intended type.
  • list displays a list of installed snaps.
  • login is identified in the Store.
  • logout exits the Store.
  • refresh refreshes a snap in the system.
  • remove removes a snap from the system.

If you want to do some tests, something that I recommend especially for the most curious, open a terminal and write "snap find" without the quotes. As it is not a command that will make changes to the system, it is not necessary to write in front sudo. If we do not remember the exact name of a package, we can write «sudo snap find l» and all packages starting with L. will appear. If you are interested in something you see, such as the Links browser, you write «sudo snap install links ». By entering the password, the package will begin to download and install. If you try it and you don't like it, as is my case, you write "sudo snap remove links" and the removal will be instantaneous. What do you think?


The content of the article adheres to our principles of editorial ethics. To report an error click here!.

A comment, leave yours

Leave a Comment

Your email address will not be published.

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Gut said

    Okay, it's one more alternative!