amazon media file explorer download upload index folder image licenses menu widget Play Pause profile-settings more dots-two-horizontal dots-two-vertical more-vertical pending google-plus hangouts facebook instagram whatsapp spotify telegram twitter vine renren rss youtube twitch vimeo flickr dribble behance deviantart 500px steam github soundcloud skype reddit linkedin lastfm delicious stackoverflow pinterest xing flattr foursquare yelp World

Understanding The Differences Between Debian & Snap Packages [Ubuntu]

There's generally two different types of package format available in Ubuntu, one is Debian package and the other is a snap package.

But before we understand the difference between the two, what are packages?
A package is a type of archive file that contains all of the files necessary to make a set of related features or command work.

For example, a package may contain executable files or even source code. An example of a package format is Android apk format, most of the application you download on android usually ends with the apk format; the apk is compressed archive file that contains the files necessary to make the application work correctly. On the other hand, Because Ubuntu is a fork of Debian, it uses the Debian package as its main package and the package names end with .deb.

Now that you have a basic understanding of packages, let's get back into...

The Differences Between Debian & Snap Packages

Debian packages are the main type of packages in Ubuntu, it is inherited from Debian distribution when Ubuntu was forked from Debian.

Debian packages are what you have probably been installing ever since you got your Ubuntu server up and running. While Debian packages are the norm in Ubuntu, they come with some drawbacks...

Firstly, software updates are usually delayed until the next release of the distribution is available which if you ask me, doesn't make sense! If you want a version of MySQL that's newer than what your current release of Ubuntu features, you would have to wait until the release of the distribution.

Secondly, the entire distro is made up of Debian packages, the Linux kernel, libraries, system packages, software applications are all Debian packages. While this may seem like a smart move in the sense of maintenance, it tends to be more problematic, and here is why:

Any other software packages (for example, PHP, Apache, Nginx, e.t.c) you'll be installing are also Debian packages and it may conflict with the system packages, for example, if a software depends on system packages and the packages get corrupted, the software would also fail. This isn't something you'll encounter as the maintainer of Ubuntu pay great attention to this.

This is where the other type of package comes into play...

The Snap Package:

The snap package or simply snaps is built to stand out from the underlying Debian packages while not interfering or depending on it in any way. The snaps are built to overcome the Debian package issues, for example:

It doesn't conflict with your system packages and you can finally have a newer version of an application without waiting for the next release of the distribution. Snaps come with its not so downside too:

  • They are larger packages, and this is due to the fact that they include the application together with the libraries needed in one single package, but honestly, they are not that large and shouldn't cause an issue with disk space, but this would depend on the package you are installing
  • Major packages aren't available in snaps yet

Which Should You Use?

If what you are trying to install isn't available in Snap format, then you should fall back to the standard Debian packages. Snaps are still gaining the ground and not all software manufacturers have migrated to snap just yet.

You can learn more on how to download, search and install snap packages in this guide: Installing, Removing and Search Software Packages

Related Post(s)

  • How To Access Windows 10 Drive/Folder in VirtualBox

    To access Windows drive or folder in your Guest OS, you first of all, install VirtualBox guest utilities: sudo apt-get install virtualbox-guest-utils You then Add a shared folder by going into: Setti

  • Send Mail with Attachment Using Mutt in GNU/Linux

    Mutt is a powerful text-based mail client for Unix/Linux operating systems. It features color support, message threading, MIME support...

  • Using Pageant To Automatically Authenticate SSH key in Putty

    I can't count how many times I have typed my ssh key passphrase whenever my ssh connection times out, it is so annoying and repetitive. Well, thanks to the putty pageant, you can do that seamlessly.

  • Installing WP-CLI In a GNU/Linux Server

    WP-CLI is a command-line interface for WordPress. It can also be used with ClassicPress, as they are no differences in their usage, maybe just minimal if you are updating or downloading new ClassicPr

  • How To Send Mail To Multiple Addresses Using (mailx)

    In this guide, you'll learn a couple of ways you can send mail to multiple addresses using mailx. mailx is a utility program for sending and receiving mail. I assume you already have mailx command, i

  • Mounting and Unmounting Cloud Storage With (Rclone) in GNU/Linux

    Ever wondered if you could mount your preferred cloud storage as a virtual drive on your system? Thanks to Rclone, you can mount and access different kinds of cloud storage from a file manager, I'll