How To Install cups-client on CentOS 8

cups-client is CUPS printing system - client programs

Introduction

In this tutorial we learn how to install cups-client on CentOS 8.

What is cups-client

CUPS printing system provides a portable printing layer for UNIX\xae operating systems. This package contains command-line client programs.

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

Install cups-client on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install cups-client

Install cups-client on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install cups-client

How To Uninstall cups-client on CentOS 8

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

sudo dnf remove cups-client

cups-client Package Contents on CentOS 8

/usr/bin/cancel.cups
/usr/bin/lp.cups
/usr/bin/lpoptions
/usr/bin/lpq.cups
/usr/bin/lpr.cups
/usr/bin/lprm.cups
/usr/bin/lpstat.cups
/usr/lib/.build-id
/usr/lib/.build-id/0e/ad14dc5c5db465269c15fcef2465c161588323
/usr/lib/.build-id/12
/usr/lib/.build-id/12/f797c23bc87173cbec519d7aea1ddbb8fdf6f9
/usr/lib/.build-id/26
/usr/lib/.build-id/26/ac036eb53a1c576fb9086a79f66aff3ff10f90
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/365cf4e4254f592a4ee86e91f9b474bcedc1db
/usr/lib/.build-id/6c/0e533a7e3f8e34a8357d1ca3a27bcc2dc0e097
/usr/lib/.build-id/83
/usr/lib/.build-id/83/af1ad41e70daab63f8e23a53300ecfdaa574fc
/usr/lib/.build-id/8e/bb01c1e9e39719400033e1256e0589bf852862
/usr/lib/.build-id/b6/35ec19472168a74b1e4b95b79d0232f16a34bc
/usr/sbin/lpc.cups
/usr/share/man/man1/cancel-cups.1.gz
/usr/share/man/man1/lp-cups.1.gz
/usr/share/man/man1/lpoptions.1.gz
/usr/share/man/man1/lpq-cups.1.gz
/usr/share/man/man1/lpr-cups.1.gz
/usr/share/man/man1/lprm-cups.1.gz
/usr/share/man/man1/lpstat-cups.1.gz
/usr/share/man/man8/lpc-cups.8.gz

References

Summary

In this tutorial we learn how to install cups-client on CentOS 8 using yum and dnf.