How To Install snap-confine on CentOS 7

In this tutorial we learn how to install snap-confine on CentOS 7. snap-confine is Confinement system for snap applications

Introduction

In this tutorial we learn how to install snap-confine on CentOS 7.

What is snap-confine

This package is used internally by snapd to apply confinement to the started snap applications.

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

Install snap-confine on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install snap-confine using yum by running the following command:

sudo yum -y install snap-confine

Install snap-confine 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 snap-confine using dnf by running the following command:

sudo dnf -y install snap-confine

How To Uninstall snap-confine on CentOS 7

To uninstall only the snap-confine package we can use the following command:

sudo dnf remove snap-confine

References

Summary

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