Snap Core on Linux

Windows Articles

Monitoring Ubuntu 20.04 with Stacer

Normally if we use Linux on a production server, it is important to monitor it. On the other hand, in everyday use, many users...

How to get the Android 11 Notification Panel

It's no secret that even though Android is the most widely used mobile operating system. Not always our device has the latest...

How to create backups in Windows 10 with FileFort Backup

There is no doubt that the computer is an essential element in our lives. Indeed, its uses go beyond work or study....

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...

There’s literally no limit of how many Linux distros can be out there, right? Now, add the fact that they all use different type of software installation methods and voila! You’re at the damn confusing scenario – which one to get????

Well, for making things easier, there’s a better solution that’s already established itself in the heart of the community. The “snap” package system offers a really intuitive method of installing all the popular software of Linux in a universal manner. No more messing around with confusing command lines, DEB/RPM/TAR.GZ files and others.

Setting “snap” core

Well, not all the Linux distros come up with “snap” preconfigured. In most cases, you have to prepare your system by yourself so that it can handle “snap” packages. Don’t worry; it’s an easy job.

Just run the following command(s) according to your Linux distro.

  • Ubuntu
sudo apt update

sudo apt install snapd

  • Debian
sudo apt update

sudo apt install snapd

If “sudo” isn’t installed, then follow the following steps.

su root

apt update

apt install snapd
  • Fedora
sudo dnf install snapd

sudo ln -s /var/lib/snapd/snap /snap
  • OpenSUSE

Enable repo –

sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.0 snappy

sudo zypper dup --from snappy

Install “snap” service –

sudo zypper install snapd

sudo systemctl enable snapd

sudo systemctl start snapd
  • Arch Linux
git clone https://aur.archlinux.org/snapd.git

cd snapd

makepkg -si

sudo systemctl enable --now snapd.socket

sudo ln -s /var/lib/snapd/snap /snap

Configuring “snap”

For “snap” to work properly, you need the “core” snap package. Run the following command –

sudo snap install core

For other Linux distros, check out the official documentation of “snapd”.

Voila! Installation complete!

Using “snap”

When you issue a command for installing a snap package, the “snapd” will grab it from the snap servers and install it into your system.

For installing a snap, find it out first in the Snapcraft Store.

Then, run the following command for installing the snap.

sudo snap install <snap_package_name>

Need to find out how many snap packages are installed?

snap list

You can easily disable/enable a snap package.

sudo snap disable <snap_package_name>

sudo snap enable <snap_package_name>

You don’t have to manually update snap packages. The “snapd” regularly checks for updates and updates all the snap packages to the latest version. However, you can manually issue an update order.

sudo snap refresh

Need to find out all the available things you can do with snap?

snap --help

Enjoy!

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

Monitoring Ubuntu 20.04 with Stacer

Normally if we use Linux on a production server, it is important to monitor it. On the other hand, in everyday use, many users...

How to get the Android 11 Notification Panel

It's no secret that even though Android is the most widely used mobile operating system. Not always our device has the latest...

How to create backups in Windows 10 with FileFort Backup

There is no doubt that the computer is an essential element in our lives. Indeed, its uses go beyond work or study....

Trisquel 9.0 available

Trisquel is a GNU/Linux distribution endorsed and supported by the Free Software Foundation. This means that in addition to incorporating the Linux...

How to install PandoraFMS on CentOS 8?

Worldwide many IT infrastructures are running Linux on one of their servers. This opens the door to an endless number of different...
x