How To Install libvirt-login-shell.x86_64 on Amazon Linux 2

In this tutorial we learn how to install libvirt-login-shell.x86_64 in Amazon Linux 2. libvirt-login-shell.x86_64 is Login shell for connecting users to an LXC container

Introduction

In this tutorial we learn how to install libvirt-login-shell.x86_64 on Amazon Linux 2.

What is libvirt-login-shell.x86_64

Provides the set-uid virt-login-shell binary that is used to connect a user to an LXC container when they login, by switching namespaces.

We can use yum to install libvirt-login-shell.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install libvirt-login-shell.x86_64.

Install libvirt-login-shell.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install libvirt-login-shell.x86_64 using yum by running the following command:

sudo yum -y install libvirt-login-shell.x86_64

How To Uninstall libvirt-login-shell.x86_64 on Amazon Linux 2

To uninstall only the libvirt-login-shell.x86_64 package we can use the following command:

sudo yum remove libvirt-login-shell.x86_64

libvirt-login-shell.x86_64 Package Contents on Amazon Linux 2

/etc/libvirt/virt-login-shell.conf
/usr/bin/virt-login-shell
/usr/share/man/man1/virt-login-shell.1.gz

References

Summary

In this tutorial we learn how to install libvirt-login-shell.x86_64 on Amazon Linux 2 using yum.