How To Install cups-libs on Rocky Linux 8

In this tutorial we learn how to install cups-libs on Rocky Linux 8. cups-libs is CUPS printing system - libraries

Introduction

In this tutorial we learn how to install cups-libs on Rocky Linux 8.

What is cups-libs

CUPS printing system provides a portable printing layer for UNIX® operating systems. It has been developed by Apple Inc. to promote a standard printing solution for all UNIX vendors and users. CUPS provides the System V and Berkeley command-line interfaces. The cups-libs package provides libraries used by applications to use CUPS natively, without needing the lp/lpr commands.

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

Install cups-libs 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 cups-libs using dnf by running the following command:

sudo dnf -y install cups-libs

Install cups-libs 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 cups-libs using yum by running the following command:

sudo yum -y install cups-libs

How To Uninstall cups-libs on Rocky Linux 8

To uninstall only the cups-libs package we can use the following command:

sudo dnf remove cups-libs

cups-libs Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/0a
/usr/lib/.build-id/0a/9c6edf2031f7466bec41f6787241e19e549d7d
/usr/lib/.build-id/2c
/usr/lib/.build-id/2c/e01fb813b4cafe022fe535efc4fa055661a6f6
/usr/lib/.build-id/84
/usr/lib/.build-id/84/9b8548119a45e822daadbaa012d3082d8a24cf
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/d84dcf62c8747accba7efc8eeb16587f844683
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/0180a86aa31698990b7854fbd5c8fda6aefe2b
/usr/lib/libcups.so.2
/usr/lib/libcupscgi.so.1
/usr/lib/libcupsimage.so.2
/usr/lib/libcupsmime.so.1
/usr/lib/libcupsppdc.so.1
/usr/share/licenses/cups-libs
/usr/share/licenses/cups-libs/LICENSE.txt
/usr/lib/.build-id
/usr/lib/.build-id/26
/usr/lib/.build-id/26/e11808e65c72d5cbb26a26e15e03a2d8895897
/usr/lib/.build-id/2f/c118a13f3ac7369bbe51c51d3c2121c0583e13
/usr/lib/.build-id/66
/usr/lib/.build-id/66/c8c509c7e66c77b631b750ab80f2f601fe6e54
/usr/lib/.build-id/98
/usr/lib/.build-id/98/f26d8fe223e6f65a046d579fdb92916e4649a5
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/6b95c631a0bfda13633c094718a6c94853b81f
/usr/lib64/libcups.so.2
/usr/lib64/libcupscgi.so.1
/usr/lib64/libcupsimage.so.2
/usr/lib64/libcupsmime.so.1
/usr/lib64/libcupsppdc.so.1
/usr/share/licenses/cups-libs
/usr/share/licenses/cups-libs/LICENSE.txt

References

Summary

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