How to Use Ubuntu Snap Packages

29/12/2020
When running Linux, snap is one of the most powerful features you can enjoy. It allows running the same app over multiple platforms without needing to change the code of the program the slightest bit. That’s why you can also call snap packages as universal apps for the Linux platform.  Ubuntu is one of the most popular Linux distros for its simplicity and usability. Let’s check out on using snap packages on Ubuntu.

Features of snap packages

Snap packages are managed by the snap core, a powerful app manager with tons of powerful features. It allows running any snap package on any platform. There are tons of apps available as snap packages.  Snap also makes the work of developers a lot easier. The devs only have to develop the snap packages and forget about making the app inter-compatible. Managing snap packages is also very easy. Just run a simple command to install/uninstall apps. No need to worry about updating the app as the “core” will always keep everything up-to-date.

Installing snap core

Before you start enjoying all the available snap packages, you need to have the snap “core” in your system. It’s essentially the installer that will enable running all the snap packages.

Run the following command for installing snap core –

sudo apt install snapd

After the installation is complete, you’re not done yet. You have to install the “core” snap package. Run the following command –

sudo snap install core

When the installation completes, you’re now free to enjoy all the snap packages on Snapcraft store.

Installing a snap package

It’s time to install your snap packages. For example, I’ll be installing Spotify from the snap store.

Click on the “Install” icon.

There you have the command line you have to run for installing Spotify. Let’s run it in a terminal –

sudo snap install Spotify

Launch Spotify –

Other snap commands

There are a whole bunch of available things you can perform with the “snap”. Run the following command for finding out all the available options –

snap help

Here are a few commands to remember for ease of usage.

  • install – Install a snap package (like we used earlier).
  • remove – Uninstall a snap package from the system.
  • disable – Disable an installed snap package.
  • enable – Enable an installed snap package.
  • buy – Purchase a paid snap package.
  • download – Download a specific snap package (no installation).
  • refresh – Update all the installed snap packages. This is not usually necessary as the snap client will check for updates on a regular basis.
  • list – List all the installed snap packages.

I also strongly recommend running snap commands with “sudo” or root mode for avoiding any file permission related problems.

Sandclock IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, Sandclock IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

exFAT Compatibility in Ubuntu

Users running Linux on Desktop often run into the problem or file system compatibility. Especially, when they are sharing...
29/12/2020

Squid Proxy Manager cài đặt và quản lý Proxy Squid tự động trên ubuntu

Các tính năng chính : ADDIPTOSERVER SHOWAVAILABLEPROXIES ADDUSER ASSIGNIPTOUSER SHOWSUSERSEXPIREDATE MODIFYUSERSEXPIRYDATE SHOWUSERSPROXYINFO DELETEIPFROMSERVER DELETEUSERPROXY DELETEUSER SHUTDOWNPROXY STARTPROXY EXPORTAVAILABLEPROXY EXPORTUSERSPROXY ADDBLACKLIST SHOWBLACKLIST DELETEBLACKLIST EXIT RANDOMPROXIES CHANGEIP-MULTIPLIER Cài...
20/10/2021

22 Best Ubuntu Apps Recommended for 2017

As a regular Linux user, one daunting task I sometimes face is finding the right Linux Applications to install on my linux...
12/02/2020
Bài Viết

Bài Viết Mới Cập Nhật

Hướng dẫn chuyển đổi windows server windows evaluation to standard và active windows server 2008 + 2012 + 2016 + 2019
26/10/2021

How to Update Ubuntu Linux
24/10/2021

Squid Proxy Manager cài đặt và quản lý Proxy Squid tự động trên ubuntu
20/10/2021

Hướng dẫn cài đặt Apache CloudStack 4.15.2.0
19/10/2021

Hướng dẫn ký file PDF bằng chữ ký số (chữ ký điện tử) và sửa lỗi mới nhất 2021 foxit reader
19/10/2021