Why Ubuntu plans to replace traditional Linux packages with something better

Ngoc Huynh

Ubuntu will embrace smarter, stand-alone Snappy images instead of relying on Deb packages and apt-get.

How traditional Linux packages work

To understand what’s changing, it’s necessary to understand how current Linux package managers work.

Like Debian, Ubuntu currently uses .deb packages. These are basically archives of files that your package manager extracts onto your system, sometimes with additional configuration scripts. Files are placed in system-wide directories on your hard drive. Their libraries go into the system-wide library directory, executables go into the system-wide binary directory, and other resources go into other system-wide directories.

Packages frequently depend on other packages. A package has a list of packages it depends on, and those packages must be installed to install that package. Modern package managers like apt-get deal with this automatically. When you install an application like the GIMP image editor on your Linux system, the package manager automatically downloads the other necessary packages and ensures you have the correct versions installed. Everything is installed system-wide, and packages could potentially interfere with each other.

How Snappy packages are different

Ubuntu’s Snappy system is currently used for cloud servers and smart devices, and the Snappy Ubuntu Core debuted recently in Ubuntu 15.04 .

Snappy works differently. Applications are no longer installed system-wide. The base Ubuntu operating system is kept securely isolated from applications you install later. Both the base system and Snappy packages are kept as read-only images.

Those applications are installed to separate directories and isolated from each other via the Linux-kernel-based AppArmor system. Snappy packages can include all the libraries and files they need, so they don’t depend on other packages. Ubuntu is currently working on “deduplication” support, which means duplicate copies of files won’t be kept—if two Snappy packages include the same library, it will only be stored in one place on disk.

Snappy also offers “worry-free” transaction updates. An update can never fail, as a package installation could potentially fail and become incomplete with typical Linux packages. Before a package is updated, your data is backed up—if the update fails, everything is rolled back. You can also easily roll back to a previous package version at any time, something that can be tedious with current Linux packages.

Snappy also supports “delta” updates, which means only the changed bits of the package need to be downloaded and installed. The Ubuntu core system can also be updated with Snappy, meaning faster, more-reliable updates also apply to the core operating system.

Share the news now

Source : http://www.pcworld.com/