How To Install qemu-user-binfmt.x86_64 on Amazon Linux 2

In this tutorial we learn how to install qemu-user-binfmt.x86_64 in Amazon Linux 2. qemu-user-binfmt.x86_64 is QEMU user mode emulation of qemu targets

Introduction

In this tutorial we learn how to install qemu-user-binfmt.x86_64 on Amazon Linux 2.

What is qemu-user-binfmt.x86_64

This package provides the user mode emulation of qemu targets

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

Install qemu-user-binfmt.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 qemu-user-binfmt.x86_64 using yum by running the following command:

sudo yum -y install qemu-user-binfmt.x86_64

How To Uninstall qemu-user-binfmt.x86_64 on Amazon Linux 2

To uninstall only the qemu-user-binfmt.x86_64 package we can use the following command:

sudo yum remove qemu-user-binfmt.x86_64

qemu-user-binfmt.x86_64 Package Contents on Amazon Linux 2

/usr/lib/binfmt.d/qemu-aarch64-dynamic.conf
/usr/lib/binfmt.d/qemu-aarch64_be-dynamic.conf
/usr/lib/binfmt.d/qemu-alpha-dynamic.conf
/usr/lib/binfmt.d/qemu-arm-dynamic.conf
/usr/lib/binfmt.d/qemu-armeb-dynamic.conf
/usr/lib/binfmt.d/qemu-hppa-dynamic.conf
/usr/lib/binfmt.d/qemu-m68k-dynamic.conf
/usr/lib/binfmt.d/qemu-microblaze-dynamic.conf
/usr/lib/binfmt.d/qemu-microblazeel-dynamic.conf
/usr/lib/binfmt.d/qemu-mips-dynamic.conf
/usr/lib/binfmt.d/qemu-mips64-dynamic.conf
/usr/lib/binfmt.d/qemu-mips64el-dynamic.conf
/usr/lib/binfmt.d/qemu-mipsel-dynamic.conf
/usr/lib/binfmt.d/qemu-mipsn32-dynamic.conf
/usr/lib/binfmt.d/qemu-mipsn32el-dynamic.conf
/usr/lib/binfmt.d/qemu-or1k-dynamic.conf
/usr/lib/binfmt.d/qemu-ppc-dynamic.conf
/usr/lib/binfmt.d/qemu-ppc64-dynamic.conf
/usr/lib/binfmt.d/qemu-ppc64le-dynamic.conf
/usr/lib/binfmt.d/qemu-riscv32-dynamic.conf
/usr/lib/binfmt.d/qemu-riscv64-dynamic.conf
/usr/lib/binfmt.d/qemu-s390x-dynamic.conf
/usr/lib/binfmt.d/qemu-sh4-dynamic.conf
/usr/lib/binfmt.d/qemu-sh4eb-dynamic.conf
/usr/lib/binfmt.d/qemu-sparc32plus-dynamic.conf
/usr/lib/binfmt.d/qemu-xtensa-dynamic.conf
/usr/lib/binfmt.d/qemu-xtensaeb-dynamic.conf

References

Summary

In this tutorial we learn how to install qemu-user-binfmt.x86_64 on Amazon Linux 2 using yum.