How To Install 0install on CentOS 7

In this tutorial we learn how to install 0install on CentOS 7. 0install is A decentralized cross-distribution software installation system

Introduction

In this tutorial we learn how to install 0install on CentOS 7.

What is 0install

Zero Install is a decentralized cross-distribution software installation system available under the LGPL. It allows software developers to publish programs directly from their own web-sites, while supporting features familiar from centralized distribution repositories such as shared libraries, automatic updates and digital signatures. It is intended to complement, rather than replace, the operating system’s package management. 0install packages never interfere with those provided by the distribution. 0install does not define a new packaging format; unmodified tarballs or zip archives can be used. Instead, it defines an XML metadata format to describe these packages and the dependencies between them. A single metadata file can be used on multiple platforms (e.g. Ubuntu, Debian, Fedora, openSUSE, Mac OS X and Windows), assuming binary or source archives are available that work on those systems. 0install also has some interesting features not often found in traditional package managers. For example, while it will share libraries whenever possible, it can always install multiple versions of a package in parallel when there are conflicting requirements. Installation is always side-effect-free (each package is unpacked to its own directory and will not touch shared directories such as /usr/bin), making it ideal for use with sandboxing technologies and virtualization. The XML file describing the program’s requirements can also be included in a source-code repository, allowing full dependency handling for unreleased developer versions. For example, a user can clone a Git repository and build and test the program, automatically downloading newer versions of libraries where necessary, without interfering with the versions of those libraries installed by their distribution, which continue to be used for other software.

We can use yum or dnf to install 0install on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install 0install.

Install 0install on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install 0install using yum by running the following command:

sudo yum -y install 0install

Install 0install on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install 0install using dnf by running the following command:

sudo dnf -y install 0install

How To Uninstall 0install on CentOS 7

To uninstall only the 0install package we can use the following command:

sudo dnf remove 0install

References

Summary

In this tutorial we learn how to install 0install on CentOS 7 using yum and dnf.