Software Development Process

What You Need to Know About Snaps on Ubuntu 20.04

 tháng 4 30, 2020     No comments   

Ubuntu's official snap packages icon.
Ubuntu

Ubuntu 20.04 Focal Fossa is a fantastic release that's been widely praised. However, the decision to change the Software Center to install snap-based applications is controversial. We'll explain what that means for you.

What's a Snap Package on Linux?

"Snap" refers to both the snap command and a snap installation file. A snap bundles an application and all its dependents into one compressed file. The dependents might be library files, web or database servers, or anything else an application must have to launch and run.

The upside to snaps is they make installations simpler because they avoid the heartache of dependency hell. This is what occurs when a new application can't run either because a required resource isn't available, it's the wrong version, or its installation overwrites files required by existing applications so they can't run.

You might expect a snap to be uncompressed and the files extracted at install time. However, it's at run time that the snap file is mounted on a block loop device. This allows the file's internal SquashFS file system to be accessed.

The application is executed in an encapsulated, ring-fenced way, so its files can't interfere with those on your computer. You can even install multiple versions of the same application, and they won't cross-pollinate or fight amongst themselves.

The downside is the installation files are bigger than the traditional Debian package manager (DEB) files. They also use more hard drive real estate. With snaps, every application that needs a particular resource installs its own copy. This isn't the most efficient use of hard drive space. Although hard drives are getting bigger and cheaper, traditionalists still balk at the extravagance of each application running in its own mini-container. Launching applications is slower, too.

Snaps have also been criticized for not following the theme of the desktop and their automatic upgrades. Some people are also wary because snaps aren't necessarily made by the authors of the software. Therefore, they don't consider them to be 100 percent "official."

So, with Focal Fossa, Canonical has replaced the Ubuntu Software application with a version that installs snaps by default. What does this mean to you?

RELATED: What’s New in Ubuntu 20.04 LTS “Focal Fossa”

The Ubuntu Software Center

We can use the df command to list the SquashFS file systems mounted on your computer. We'll use the -t (type) option to restrict the output to the file systems we're interested in:

df -t squashfs

We then use the snap list command to list the snaps that are installed:

snap list

df -t squashfs in a terminal window.

There are two snaps related to the GNOME desktop, two related to core snap functionality, one for GTK themes, and one for the snap store. Of course, the snap-store application is also a snap.

Here's the thing: if you run the snap-store command in a terminal window, the application launched is the Ubuntu Software.

Of course, you'd usually run the Ubuntu Software application by clicking its icon. We're launching it from the command line to demonstrate that beneath the surface, it's now the snap-store application:

snap-store

The Ubuntu Software application.

The Ubuntu Software application looks just as you'd expect. You can search for all the same software you could previously.

Let's search for and install the "sqlitebrowser" application. The results screen shows the details of the application and a screenshot. Select "Install" to install the software.

SQLite browser application installation page in the Ubuntu Software application.

If you didn't know, you wouldn't suspect the changes beneath the hood. Scroll down, and you'll see some new, snap-specific information.

Snap-specific information related to SQLITebrowser in the Ubuntu Software application.

The "Details" list provides the following information:

  • Channel: The channel from which the installation will pull the application.
  • Version: The software version.
  • License: The license type.
  • Developer: The person who created the snap, or the people who wrote the application.
  • Source: The source from which the snap will be downloaded (snapcraft.io is Canonical's Snapcraft snap store).
  • Download size: The size of the snap file.

The channel can be one of the following:

  • Stable: The default, which contains the most stable, dependable packages.
  • Candidate: This channel is less stable, but very close to it because it contains release candidate level software.
  • Beta: This channel is late-development-cycle quality, but not guaranteed to be stable.
  • Edge: For early build testers and the inquisitive. You shouldn't use this channel for anything of importance.

After the installation is complete, we can check the list of installed snaps again:

snap list

snap list in a terminal window.

The new entry is listed at the bottom. Let's launch the program:

sqlitebrowser
DB Browser for SQLite main application window.

Everything about the application works just fine, although the interface looks dated. The sculpted, pseudo-3D interface elements will remind you of the GUIs of yesteryear. This isn't common across all snaps, but it's striking in this example.

RELATED: How to Work with Snap Packages on Linux

Installation from the Command Line

Nothing's changed when installing applications from the command line. You still have access to the snap command-line tool, so you can install and uninstall snaps within a terminal window. The apt-get installation command and apt, the apt-get wrapper, are still there, too.

Let's install the same application from the command line. Because the version we installed above is a snap, they won't affect each other in any way:

sudo apt-get install sqlitebrowser

sudo apt-get install sqlitebrowser in a terminal window.

Let the installation complete. Press the Super key and type "sqlitebrowser." After you type a few characters, you'll see two versions of the program on your computer.

Two DB browser for SQLite icons in the search results.

Fire them both up.

Two versions of DB Browser for SQLite running in GNOME.

As you can see, we have two different versions installed and running at the same time.

The version at the back of the image is the one we installed from the command line, and the version in front is the one in the snap:

  • The apt-get version is version 3.11.2.
  • The snap version is 3.11.99.

Despite appearances, the command-line version is the older one. Regardless, it's self-evident the two versions coexist and run together just fine. So, snaps do what they're supposed to with the ring-fencing of different versions of the same application.

Also, installing applications from the command line with apt or apt-get is the same as it always was, and isn't affected by snaps at all.

Which Should You Use?

Do you even care in the slightest which type of application you're using? If not, go with snaps.

If any of the following are deal-breakers (or several of them add up to one), steer clear of the Ubuntu Software application and install your applications the traditional way:

  • Snaps are slower to load. This will be more noticeable on old hardware.
  • Snaps take up more hard disk space.
  • Snaps are updated automatically.
  • Snaps might not match your installed themes.
  • Snaps are not always "official." They're often built by well-intentioned volunteers.

If your computer is reasonably modern, the speed difference between launching a snap or a regular application won't be massive. The biggest time penalty we noticed was during the installation. The snaps took a lot longer to download. Once the files were downloaded, the installation was fast enough. Downloading is a one-off task, though, so it's not something you'll have to deal with daily.

Even if you think snaps are the future, and you're ready to wholeheartedly embrace them, you can't go all-in with them. Some applications aren't available in snap form. In those cases, you'll still have to install them from the command line.


Plainly, Canonical is nailing its colors to the mast with this move. As far as Ubuntu's developers are concerned, snaps are here to stay. As always, you can either use them, ignore them, or have a hybrid system that mixes and matches snaps and traditional DEB-based installations.



See details

  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Gửi email bài đăng nàyBlogThis!Chia sẻ lên XChia sẻ lên Facebook

Related Posts:

  • Morning Charts 04/29/2019 SPX CHINA!!  Wooooo so scary!  https://www.zerohedge.com/news/2019-04-29/us-futures-drift-lower-chinese-stocks-extend-worst-drop-2019On to the l… Read More
  • Mozilla Says, The iPhone Is As Private As Apple ClaimedAs the tech business faces analysis and administrative weight over its treatment of client information, Apple has situated itself as a boss for securi… Read More
  • The Medicare For All HeptagonI am going to make a prediction here. No matter who we elect in 2020, Bernie or Trump or anything in between, Medicare For All is not going to happen … Read More
  • Technology Using A Printed Adversarial Patch To Fool An AI SystemA trio of specialists at the University of KU Leuven in Belgium has discovered that it is conceivable to confound an AI framework by printing a specif… Read More
  • IT Experts Design Way To Close 'backdoors' In AI-Based Security SystemsIt sounds like a plot out of a tale of espionage, with a bit of cyberpunk: A specialist approaches a safe area, ensured by a facial acknowledgment fra… Read More
Bài đăng Mới hơn Bài đăng Cũ hơn Trang chủ

0 nhận xét:

Đăng nhận xét

  • Gun Digest Book of the .22 Rifle
  • The Secret Relationship Between Blacks and Jews Volume 1 /2 /3 Physical Books!
  • The Little Book of Hygge: Danish Secrets to Happy Living [The Happiness Institut
  • Adult Color By Numbers Coloring Book: Easy Large Print Mega Jumbo Coloring ...
  • Herbs - A Concise Guide In Colour by Jirasek, Vaclay Hardback Book The Fast Free

Popular Posts

  • Smartphone Using At The Supermarket Can Add 41% To Your Shopping Bill
    It is safe to say that you are always looking at your telephone when you're and about? Do you experience difficulty opposing the bait of...
  • Windows 7 All in One ISO 32-64 Bit Free Download
    Windows 7 all in one ISO 32-64 bit genuine free is now available to download from the secure links provided below. The download comes w...
  • Forgot to post
    sorry travel day.  My bad! 
  • November Technology Updates
    So far, November has been a busy month of technology integration in all grade levels.  Teachers and students use a wide variety of devices i...
  • Morning Charts 04/30/2019 SPX
    Early post
  • Check Out The Science Behind Finding North Korea's Nuclear Weapons
    Arrangements over denuclearization of North Korea fallen at the beginning of today after North Korean despot Kim Jong Un demanded the United...
  • Morning Charts 04/10/2019 SPX
    Cause censorship is real. Our Orwellian really coming to life -  https://www.zerohedge.com/news/2019-04-09/leaked-google-docs-reveals-aggres...
  • Should You Use Hubitat to Automate Your Smarthome?
    The first step in building a smarthome is often choosing a hub, and there are many options. Hubitat is a unique cloud-independent hub. It...
  • Microsoft Staff Don't Use HoloLens For War
    Somewhere around 50 Microsoft representatives have requested the organization pull out of an arrangement with the US military to give expand...
  • Morning Charts 03/19/2019 SPX
    RC wants me to bring back the STB bracket challenge so look for a link to that later today and again tomorrow morning. If you’ve never heard...

Bài đăng nổi bật

How To Swim and Dive in ‘Animal Crossing: New Horizons’

Nintendo Animal Crossing: New Horizons has received a free update that allows players to swim and dive for sea creatures for the firs...



Work freely with Fiverr

Work freely with Fiverr

Money with Adfly

Money with Adfly
Được tạo bởi Blogger.

Make Money MyLead

Make Money MyLead

TẢI PHIM 18+ VỀ ĐIỆN THOẠI Ở ĐÂY >>

Copyright © 2025 Software Development Process | Powered by Blogger
Design by Hardeep Asrani | Blogger Theme by NewBloggerThemes.com | Distributed By Gooyaabi Templates