Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql_b0ff5_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /home/wirefan.com/public_html/wp-includes/class-wpdb.php on line 2349

Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql_b0ff5_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /home/wirefan.com/public_html/wp-includes/class-wpdb.php on line 2349
Technology

How to install software on Linux using Snap (and why you should)


man working on laptop

Getty Images/Hinterhaus Productions

I’m a firm believer in using the right tools for the right job. Because I use Linux as my primary operating system, that means I sometimes use open-source software and sometimes use proprietary. For example, I use the LibreOffice office suite (open source) but also use Spotify and Slack (both are proprietary). Very often, to install proprietary software, I have to turn to one of the universal package managers, Snap and/or Flatpak. And, as a Pop!_OS user, I have both installed, so I don’t have to miss out on any piece of software I need or want.

Also: How to choose the right Linux desktop distribution

For those who don’t know, Snap and Flatpak are package managers that remove the dependency issues that (for a very long time) plagued tools like apt and yum. So, instead of having to first install the required dependencies for a piece of software (or hope the built-in package manager catches them for you), you only have to install the software you need. How does this work? 

Snap and Flatpak packages include everything they need to run, all rolled up into a universal ‘container’ that can be installed on any Linux system. One thing to keep in mind is that Snap and Flatpak are not interchangeable. In fact, these two systems are competitors, each vying to win over the open-source communities and every Linux distribution on the market. 

Also: How to install Ubuntu Linux (It’s easy!)

At present, Snap is mostly confined to Ubuntu-based distributions and Flatpak to all others. That doesn’t mean you can’t install Snap on non-Ubuntu distros or Flatpak on Ubuntu distros. You can. As I said, my Pop!_OS desktop distribution (based on Ubuntu) has both Snap and Flatpak and I install applications with both.

But how do you do that?

Let me show you how. In this article, we’ll focus on Snap. What I’m going to show you is how to install software from the command line. Fret not, it’s actually very simple. You might find your distribution of choice has Snap support built into the GUI application manager (such as GNOME Software or KDE Plasma’s Discover). If your built-in GUI package manager has support for Snap built-in, you won’t have to worry about touching the command line. Even so, it’s a fun skill to learn. And, if your package manager doesn’t include support for the technology, it’s something you’ll want to know.

Let’s talk Snap.

How to install Snap

What you’ll need:

The only things you’ll need for this are a Linux distribution that supports Snap and a user with sudo privileges.

The first thing to do is open the terminal window. This can be done from your desktop menu or Applications Overview. 

From the terminal window, issue the following command:

The output should look something like this:

snap    2.59.1
snapd   2.59.1
series  16
pop     22.04

If Snap isn’t installed, you can install it on Ubuntu-based distributions with the command:

sudo apt-get install snapd -y

For Red Hat-based distributions, you must first install the EPEL repository with:

sudo dnf install epel-release -y

Next, update dnf with:

Finally, install Snap with:

How to install software with Snap

Now that Snap is installed, it’s time to install something with it. Let’s install the popular music-streaming app Spotify. 

Also: How to use Spotify’s built-in equalizer for better-sounding music

One nice thing about Snap is that the usage is the same, regardless of which Linux distribution you use.

1. Open the terminal

You probably still have the terminal window open from installing Snap. If not, go ahead and open it again.

2. Install Spotify

To install Spotify with Snap, the command is simply:

sudo snap install spotify

That’s it. Spotify will install and you should find it in your desktop menu (or Applications Overview).

3. How to upgrade Spotify with Snap

Changes are pretty good, as Snap will automatically update your installed packages for you. However, on the off-chance you want to do it manually, the command to do so is:

4. How to remove applications with Snap

To remove Spotify from Snap, the command would be:

And that’s all there is to installing software with Snap. One thing to keep in mind is that, if you’re unsure if a piece of software is available via Snap, you can search for it with the find command like so:

In the command line above, NAME is the name of the software you’re looking for. If it shows up in the search, you can install it.



Source link


Warning: mysqli_query(): (HY000/1021): Disk full (/tmp/#sql_b0ff5_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device") in /home/wirefan.com/public_html/wp-includes/class-wpdb.php on line 2349

Fatal error: Uncaught wfWAFStorageFileException: Unable to verify temporary file contents for atomic writing. in /home/wirefan.com/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php:51 Stack trace: #0 /home/wirefan.com/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php(658): wfWAFStorageFile::atomicFilePutContents('/home/wirefan.c...', '<?php exit('Acc...') #1 [internal function]: wfWAFStorageFile->saveConfig('livewaf') #2 {main} thrown in /home/wirefan.com/public_html/wp-content/plugins/wordfence/vendor/wordfence/wf-waf/src/lib/storage/file.php on line 51