Introduction
In this tutorial we learn how to install snap-confine
on CentOS 8.
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 8. 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 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install snap-confine
using dnf
by running the following command:
sudo dnf -y install snap-confine
Install snap-confine on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install snap-confine
using yum
by running the following command:
sudo yum -y install snap-confine
How To Uninstall snap-confine on CentOS 8
To uninstall only the snap-confine
package we can use the following command:
sudo dnf remove snap-confine
snap-confine Package Contents on CentOS 8
/usr/lib/.build-id
/usr/lib/.build-id/0c
/usr/lib/.build-id/0c/b85acab9973d924d7abfcda7bb3e81feec7c40
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/ebd6fcf87195f9542e7f18564967df443dca18
/usr/lib/.build-id/48
/usr/lib/.build-id/48/c0463ecfdb0eddb6e4c3a56b4b0049a498bafa
/usr/lib/.build-id/4f
/usr/lib/.build-id/4f/bd027148c105d31fe849f8adddcfd3b4573979
/usr/lib/.build-id/72
/usr/lib/.build-id/72/3d6d915542e1a8c5a3316afab26ef67a1d97cd
/usr/lib/.build-id/78
/usr/lib/.build-id/78/55702a9eb17f0b0191689ef50802580518c439
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/01938545ea2f54da25bcbc3b7f2c1b5794beff
/usr/lib/systemd/system-generators/snapd-generator
/usr/libexec/snapd
/usr/libexec/snapd/snap-confine
/usr/libexec/snapd/snap-device-helper
/usr/libexec/snapd/snap-discard-ns
/usr/libexec/snapd/snap-gdb-shim
/usr/libexec/snapd/snap-gdbserver-shim
/usr/libexec/snapd/snap-seccomp
/usr/libexec/snapd/snap-update-ns
/usr/share/doc/snap-confine
/usr/share/doc/snap-confine/PORTING
/usr/share/licenses/snap-confine
/usr/share/licenses/snap-confine/COPYING
/usr/share/man/man8/snap-confine.8.gz
/usr/share/man/man8/snap-discard-ns.8.gz
/var/lib/snapd/void
References
Summary
In this tutorial we learn how to install snap-confine
on CentOS 8 using yum and dnf.