How To Install lxc on Rocky Linux 8

In this tutorial we learn how to install lxc on Rocky Linux 8. lxc is Linux Resource Containers

Introduction

In this tutorial we learn how to install lxc on Rocky Linux 8.

What is lxc

Linux Resource Containers provide process and resource isolation without the overhead of full virtualization.

We can use yum or dnf to install lxc on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install lxc.

Install lxc on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install lxc

Install lxc on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install lxc

How To Uninstall lxc on Rocky Linux 8

To uninstall only the lxc package we can use the following command:

sudo dnf remove lxc

lxc Package Contents on Rocky Linux 8

/usr/bin/lxc-attach
/usr/bin/lxc-cgroup
/usr/bin/lxc-checkconfig
/usr/bin/lxc-checkpoint
/usr/bin/lxc-config
/usr/bin/lxc-console
/usr/bin/lxc-copy
/usr/bin/lxc-create
/usr/bin/lxc-destroy
/usr/bin/lxc-device
/usr/bin/lxc-execute
/usr/bin/lxc-freeze
/usr/bin/lxc-info
/usr/bin/lxc-ls
/usr/bin/lxc-monitor
/usr/bin/lxc-snapshot
/usr/bin/lxc-start
/usr/bin/lxc-stop
/usr/bin/lxc-top
/usr/bin/lxc-unfreeze
/usr/bin/lxc-unshare
/usr/bin/lxc-update-config
/usr/bin/lxc-usernsexec
/usr/bin/lxc-wait
/usr/lib/.build-id
/usr/lib/.build-id/02
/usr/lib/.build-id/02/bc678b7f274396e338878ca9da689241c5fa95
/usr/lib/.build-id/08
/usr/lib/.build-id/08/4ee0866b0d763d978a4d14f83f66b10a0cd5a0
/usr/lib/.build-id/18
/usr/lib/.build-id/18/5ce789aeacc02042ca917d7f3f175718f5f648
/usr/lib/.build-id/29
/usr/lib/.build-id/29/875516dad70c1de9151c46bdc26d7eea04ac20
/usr/lib/.build-id/48
/usr/lib/.build-id/48/fa645e41b3fd886f028688867dc538a022a1c0
/usr/lib/.build-id/55
/usr/lib/.build-id/55/8c65299c9c458da8945863a24dff4a1c62b59e
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/2645d7827d3f3364b5e9c838770e512b564c51
/usr/lib/.build-id/77
/usr/lib/.build-id/77/1a45bf9a0971b5d507da33fb89574de5ef900d
/usr/lib/.build-id/7b
/usr/lib/.build-id/7b/b87b2e6b5b34fc27bc2f18c8db37aab579b16f
/usr/lib/.build-id/87
/usr/lib/.build-id/87/962f896235bce14559048964680ad32fbfc414
/usr/lib/.build-id/8b
/usr/lib/.build-id/8b/060b6b834cc06f48a03b0873d262821e1b432f
/usr/lib/.build-id/94
/usr/lib/.build-id/94/c7ba43a7e2401e5c3a7616f2bbc04d3185de88
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/fd387bca17f3fdabf8ab0e0c5362bc5b04a5e4
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/bf6511abde1f8e0f1d1eb687bcc44fb4d97b3b
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/41df79987d6761330dc1dd051b2bfaefeb38c4
/usr/lib/.build-id/c6
/usr/lib/.build-id/c6/fbd11f279ba2c86c5e6b6015f95a2673e8ed92
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/70de5e017d3c0427f8ae2c23ba1afc18204757
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/4111f45456a7a2293a15f6da33e5184a91cc79
/usr/lib/.build-id/e7
/usr/lib/.build-id/e7/26b2471c37b0dc51acf13181fb8713b378c885
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/28ab1e5f5af614245e241afa40323c63ee632d
/usr/lib/.build-id/fa
/usr/lib/.build-id/fa/5bdaa2c3ec85495674f536eba7a320e014904c
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/4d952f72b56453a8089d7226a15eacd0abc56a
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/17fbe9633c3a77e3eb51eafedb6d82422bbacd
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/lxc
/usr/share/lxc/lxc.functions
/usr/share/man/ja/man1/lxc-attach.1.gz
/usr/share/man/ja/man1/lxc-cgroup.1.gz
/usr/share/man/ja/man1/lxc-checkconfig.1.gz
/usr/share/man/ja/man1/lxc-checkpoint.1.gz
/usr/share/man/ja/man1/lxc-config.1.gz
/usr/share/man/ja/man1/lxc-console.1.gz
/usr/share/man/ja/man1/lxc-copy.1.gz
/usr/share/man/ja/man1/lxc-create.1.gz
/usr/share/man/ja/man1/lxc-destroy.1.gz
/usr/share/man/ja/man1/lxc-device.1.gz
/usr/share/man/ja/man1/lxc-execute.1.gz
/usr/share/man/ja/man1/lxc-freeze.1.gz
/usr/share/man/ja/man1/lxc-info.1.gz
/usr/share/man/ja/man1/lxc-ls.1.gz
/usr/share/man/ja/man1/lxc-monitor.1.gz
/usr/share/man/ja/man1/lxc-snapshot.1.gz
/usr/share/man/ja/man1/lxc-start.1.gz
/usr/share/man/ja/man1/lxc-stop.1.gz
/usr/share/man/ja/man1/lxc-top.1.gz
/usr/share/man/ja/man1/lxc-unfreeze.1.gz
/usr/share/man/ja/man1/lxc-unshare.1.gz
/usr/share/man/ja/man1/lxc-update-config.1.gz
/usr/share/man/ja/man1/lxc-usernsexec.1.gz
/usr/share/man/ja/man1/lxc-wait.1.gz
/usr/share/man/ko/man1/lxc-attach.1.gz
/usr/share/man/ko/man1/lxc-cgroup.1.gz
/usr/share/man/ko/man1/lxc-checkconfig.1.gz
/usr/share/man/ko/man1/lxc-checkpoint.1.gz
/usr/share/man/ko/man1/lxc-config.1.gz
/usr/share/man/ko/man1/lxc-console.1.gz
/usr/share/man/ko/man1/lxc-copy.1.gz
/usr/share/man/ko/man1/lxc-create.1.gz
/usr/share/man/ko/man1/lxc-destroy.1.gz
/usr/share/man/ko/man1/lxc-device.1.gz
/usr/share/man/ko/man1/lxc-execute.1.gz
/usr/share/man/ko/man1/lxc-freeze.1.gz
/usr/share/man/ko/man1/lxc-info.1.gz
/usr/share/man/ko/man1/lxc-ls.1.gz
/usr/share/man/ko/man1/lxc-monitor.1.gz
/usr/share/man/ko/man1/lxc-snapshot.1.gz
/usr/share/man/ko/man1/lxc-start.1.gz
/usr/share/man/ko/man1/lxc-stop.1.gz
/usr/share/man/ko/man1/lxc-top.1.gz
/usr/share/man/ko/man1/lxc-unfreeze.1.gz
/usr/share/man/ko/man1/lxc-unshare.1.gz
/usr/share/man/ko/man1/lxc-usernsexec.1.gz
/usr/share/man/ko/man1/lxc-wait.1.gz
/usr/share/man/man1/lxc-attach.1.gz
/usr/share/man/man1/lxc-cgroup.1.gz
/usr/share/man/man1/lxc-checkconfig.1.gz
/usr/share/man/man1/lxc-checkpoint.1.gz
/usr/share/man/man1/lxc-config.1.gz
/usr/share/man/man1/lxc-console.1.gz
/usr/share/man/man1/lxc-copy.1.gz
/usr/share/man/man1/lxc-create.1.gz
/usr/share/man/man1/lxc-destroy.1.gz
/usr/share/man/man1/lxc-device.1.gz
/usr/share/man/man1/lxc-execute.1.gz
/usr/share/man/man1/lxc-freeze.1.gz
/usr/share/man/man1/lxc-info.1.gz
/usr/share/man/man1/lxc-ls.1.gz
/usr/share/man/man1/lxc-monitor.1.gz
/usr/share/man/man1/lxc-snapshot.1.gz
/usr/share/man/man1/lxc-start.1.gz
/usr/share/man/man1/lxc-stop.1.gz
/usr/share/man/man1/lxc-top.1.gz
/usr/share/man/man1/lxc-unfreeze.1.gz
/usr/share/man/man1/lxc-unshare.1.gz
/usr/share/man/man1/lxc-update-config.1.gz
/usr/share/man/man1/lxc-usernsexec.1.gz
/usr/share/man/man1/lxc-wait.1.gz

References

Summary

In this tutorial we learn how to install lxc on Rocky Linux 8 using yum and dnf.