How To Install hplip-common on Rocky Linux 8

In this tutorial we learn how to install hplip-common on Rocky Linux 8. hplip-common is Files needed by the HPLIP printer and scanner drivers

Introduction

In this tutorial we learn how to install hplip-common on Rocky Linux 8.

What is hplip-common

Files needed by the HPLIP printer and scanner drivers.

We can use yum or dnf to install hplip-common on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install hplip-common.

Install hplip-common on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install hplip-common using dnf by running the following command:

sudo dnf -y install hplip-common

Install hplip-common on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install hplip-common using yum by running the following command:

sudo yum -y install hplip-common

How To Uninstall hplip-common on Rocky Linux 8

To uninstall only the hplip-common package we can use the following command:

sudo dnf remove hplip-common

hplip-common Package Contents on Rocky Linux 8

/etc/hp
/etc/hp/hplip.conf
/usr/share/hplip
/usr/share/hplip/data
/usr/share/hplip/data/models
/usr/share/hplip/data/models/models.dat
/usr/share/licenses/hplip-common
/usr/share/licenses/hplip-common/COPYING

References

Summary

In this tutorial we learn how to install hplip-common on Rocky Linux 8 using yum and dnf.