How to use SNAP to manage Package on Ubuntu

This tutorial will show you How to use SNAP to manage Package on Ubuntu

Installation

sudo apt update
sudo apt install snapd
snap find <search_text>
sudo snap install <package>

Channel is snap concept that stands for the release of a snap

sudo snap install --channel=edge <package>

Running installed snaps

 <package>

See a list of installed apps

snap list

Updating Installed Snaps (apps/packages)

sudo snap refresh <package>
sudo snap refresh --list

Downgrading Installed Snaps (apps/packages)

sudo snap revert <package>

Removing Installed Snaps (apps/packages)

sudo snap remove <package>

Enabling and Disabling Snaps (apps/packages)

sudo snap disable <package> 
sudo snap enable <package>

Showing a list of running services

sudo snap services lxd Service    

Restarting, Starting and Stopping snap services

sudo snap restart lxd
sudo snap start lxd.daemon 
sudo snap stop lxd.daemon 

Set and Get Snaps Configurations

sudo snap get <package>
sudo snap set <package> key=value

Download and Install Snap apps offline

snap download <package>
snap ack <package.assert>
snap install <package.snap>

if you want latest update and find more tips and tricks to build your own business platform, please checkout more articles on https://www.productdeploy.com and https://blog.productdeploy.com

Share This

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
*