How To Install PackageKit-command-not-found.x86_64 on Amazon Linux 2

In this tutorial we learn how to install PackageKit-command-not-found.x86_64 in Amazon Linux 2. PackageKit-command-not-found.x86_64 is Ask the user to install command line programs automatically

Introduction

In this tutorial we learn how to install PackageKit-command-not-found.x86_64 on Amazon Linux 2.

What is PackageKit-command-not-found.x86_64

A simple helper that offers to install new packages on the command line using PackageKit.

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

Install PackageKit-command-not-found.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 PackageKit-command-not-found.x86_64 using yum by running the following command:

sudo yum -y install PackageKit-command-not-found.x86_64

How To Uninstall PackageKit-command-not-found.x86_64 on Amazon Linux 2

To uninstall only the PackageKit-command-not-found.x86_64 package we can use the following command:

sudo yum remove PackageKit-command-not-found.x86_64

PackageKit-command-not-found.x86_64 Package Contents on Amazon Linux 2

/etc/PackageKit/CommandNotFound.conf
/etc/profile.d/PackageKit.sh
/usr/libexec/pk-command-not-found

References

Summary

In this tutorial we learn how to install PackageKit-command-not-found.x86_64 on Amazon Linux 2 using yum.