Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Snap Cheatsheet

📅 2023-Sep-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ snap ⬩ 📚 Archive

Snap is the new package format that Ubuntu is pushing for many of its applications instead of the Deb package (installed using apt). The main advantage is that the snap package is self contained and so that allows developers to push new versions of their package directly without requiring integration with the Ubuntu package repository or its specific versions of libraries.

$ snap find foobar
$ snap info foobar

Info includes descriptions, the channels available for this package (stable, beta etc.) and the versions in those channels.

$ sudo snap install foobar

To install from a different channel, beta for example:

$ sudo snap install foobar --channel beta
$ sudo snap remove foobar
$ snap list


Tried with: Snap 2.59.5 and Ubuntu 22.04

© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email