How To Install systemd-resolved.x86_64 on Amazon Linux 2

In this tutorial we learn how to install systemd-resolved.x86_64 in Amazon Linux 2. systemd-resolved.x86_64 is Network Name Resolution manager.

Introduction

In this tutorial we learn how to install systemd-resolved.x86_64 on Amazon Linux 2.

What is systemd-resolved.x86_64

systemd-resolved is a system service that manages network name resolution. It implements a caching DNS stub resolver and an LLMNR resolver and responder.

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

Install systemd-resolved.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 systemd-resolved.x86_64 using yum by running the following command:

sudo yum -y install systemd-resolved.x86_64

How To Uninstall systemd-resolved.x86_64 on Amazon Linux 2

To uninstall only the systemd-resolved.x86_64 package we can use the following command:

sudo yum remove systemd-resolved.x86_64

systemd-resolved.x86_64 Package Contents on Amazon Linux 2

/etc/dbus-1/system.d/org.freedesktop.resolve1.conf
/etc/systemd/resolved.conf
/usr/lib/systemd/system/dbus-org.freedesktop.resolve1.service
/usr/lib/systemd/system/systemd-resolved.service
/usr/lib/systemd/systemd-resolve-host
/usr/lib/systemd/systemd-resolved
/usr/lib64/libnss_resolve.so.2
/usr/share/dbus-1/system-services/org.freedesktop.resolve1.service
/usr/share/man/man5/resolved.conf.5.gz
/usr/share/man/man5/resolved.conf.d.5.gz
/usr/share/man/man8/systemd-resolved.8.gz
/usr/share/man/man8/systemd-resolved.service.8.gz

References

Summary

In this tutorial we learn how to install systemd-resolved.x86_64 on Amazon Linux 2 using yum.