How To Install libhif.i686 on Amazon Linux 2

In this tutorial we learn how to install libhif.i686 in Amazon Linux 2. libhif.i686 is Simple package library built on top of hawkey and librepo

Introduction

In this tutorial we learn how to install libhif.i686 on Amazon Linux 2.

What is libhif.i686

This library provides a simple interface to hawkey and librepo and is currently used by PackageKit and rpm-ostree.

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

Install libhif.i686 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 libhif.i686 using yum by running the following command:

sudo yum -y install libhif.i686

How To Uninstall libhif.i686 on Amazon Linux 2

To uninstall only the libhif.i686 package we can use the following command:

sudo yum remove libhif.i686

libhif.i686 Package Contents on Amazon Linux 2

/usr/lib/girepository-1.0/Hif-1.0.typelib
/usr/lib/libhif.so.1
/usr/lib/libhif.so.1.0.8
/usr/share/doc/libhif-0.2.1
/usr/share/doc/libhif-0.2.1/AUTHORS
/usr/share/doc/libhif-0.2.1/COPYING
/usr/share/doc/libhif-0.2.1/NEWS
/usr/share/doc/libhif-0.2.1/README.md

References

Summary

In this tutorial we learn how to install libhif.i686 on Amazon Linux 2 using yum.