LinuxCommandLibrary

lpinfo

lists available printers and printer drivers known to CUPS

TLDR

List available printers

$ lpinfo -v
copy
List available printer drivers
$ lpinfo -m
copy
List drivers matching keyword
$ lpinfo -m | grep -i [keyword]
copy
Show long printer names
$ lpinfo -l -v
copy
List drivers for specific make
$ lpinfo --make-and-model "[HP LaserJet]" -m
copy
Exclude specific schemes
$ lpinfo -v --exclude-schemes [dnssd]
copy
Include only specific schemes
$ lpinfo -v --include-schemes [usb,parallel]
copy

SYNOPSIS

lpinfo [-l] [-m] [-v] [--make-and-model pattern] [options]

DESCRIPTION

lpinfo lists available printers and printer drivers known to CUPS. It queries the CUPS server for devices and PPD (PostScript Printer Description) files.
Device listing (-v) shows all detected printer connections including USB, network, and parallel ports. Each entry includes a device URI that can be used when adding printers with lpadmin.
Driver listing (-m) shows PPD files that describe printer capabilities. PPDs define paper sizes, resolutions, color options, and other features. Driverless printing uses generic IPP Everywhere or AirPrint drivers.
The make-and-model filter helps find drivers for specific printers. Combined with grep, you can search for compatible drivers for your hardware.
Network printer discovery may include DNS-SD (Bonjour/Avahi) discovered printers. Use scheme filters to focus on specific connection types.

PARAMETERS

-l

Show long listing with device details.
-m
List available printer drivers (PPD files).
-v
List available printer devices.
--device-id ID
Show only devices matching IEEE-1284 device ID.
--make-and-model PATTERN
Filter by make and model string.
--exclude-schemes SCHEMES
Exclude device URIs matching schemes.
--include-schemes SCHEMES
Include only device URIs matching schemes.
-h SERVER
Connect to CUPS server.
--timeout SECONDS
Timeout for device discovery.

CAVEATS

Requires CUPS to be running. Network discovery can be slow. Some printers need proprietary drivers not included with CUPS. Driverless printing requires modern printers with IPP Everywhere or AirPrint support.

HISTORY

lpinfo is part of the CUPS (Common UNIX Printing System) suite, originally developed by Michael Sweet at Easy Software Products. CUPS was released in 1999 and acquired by Apple in 2007. lpinfo provides the discovery mechanism used by print configuration tools.

SEE ALSO

lpadmin(1), lpstat(1), lp(1), lpr(1), cupsd(8)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community