lpinfo(8)

πŸ“¦
version 2.4.19 Β· 5 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 lpinfo(8) β€” the CUPS bestie that shows u devices & drivers πŸ’…

okay so real talk, this is lpinfo from OpenPrinting (the CUPS manual, section 8, iykyk). She's the little tool that tells you what printers and drivers your CUPS server knows about. But heads up bestie β€” the NAME says it loud and clear: (deprecated). Still iconic, still works, just... aging. We'll get to that in NOTES, don't worry 🫢


✨ NAME ✨

lpinfo β€” show available devices or drivers (deprecated) 😭


✨ SYNOPSIS ✨

lpinfo [ -h server[:port] ] [ -E ] [ -l ] [ --device-id device-id-string
] [ --exclude-schemes scheme-list ] [ --include-schemes scheme-list ] [
--language locale ] [ --make-and-model name ] [ --product name ] -m
lpinfo [ -h server[:port] ] [ -E ] [ -l ] [ --exclude-schemes scheme-
list ] [ --include-schemes scheme-list ] [ --timeout seconds ] -v

✨ DESCRIPTION ✨

So basically lpinfo lists the available devices or drivers that the CUPS server knows about. That's the whole vibe πŸ’–

It's got two moods:

  • The first form (-m) lists the available drivers
  • The second form (-v) lists the available devices

Pick your fighter. One of them is required, fr fr. πŸ’…


✨ OPTIONS ✨

lpinfo accepts the following options, and yes, we're doing all of them, no skipping πŸ‘‘

  • -E β€” forces encryption when connecting to the server. Locked down, secretive, main character behavior πŸ”
  • -h server[:port] β€” selects an alternate server. > ⚠️ Note: this option must occur before all others. Not after, not in the middle, FIRST. She's not flexible about this πŸ’€
  • -l β€” shows a "long" listing of devices or drivers. More info, more to read, we love that for us ✨
  • --device-id device-id-string β€” specifies the IEEE-1284 device ID to match when listing drivers with the -m option πŸŽ€
  • --exclude-schemes scheme-list β€” specifies a comma-delimited list of device or PPD schemes that should be excluded from the results. Static PPD files use the "file" scheme. So like, bye to those ones 🚫
  • --include-schemes scheme-list β€” specifies a comma-delimited list of device or PPD schemes that should be included in the results. Static PPD files use the "file" scheme. Keep only these ones πŸ’–
  • --language locale β€” specifies the language to match when listing drivers with the -m option 🌈
  • --make-and-model name β€” specifies the make and model to match when listing drivers with the -m option πŸ‘‘
  • --product name β€” specifies the product to match when listing drivers with the -m option πŸ“
  • --timeout seconds β€” specifies the timeout when listing devices with the -v option. So it doesn't wait forever, periodt ⏳

✨ CONFORMING TO ✨

The lpinfo command is unique to CUPS. No other system has her. Original. One of a kind. No copycats allowed πŸ’…βœ¨


✨ EXAMPLES ✨

List all devices:

lpinfo -v

List all drivers:

lpinfo -m

List drivers matching "HP LaserJet":

lpinfo --make-and-model "HP LaserJet" -m

See how easy that was? Ate, no crumbs 🫢


✨ NOTES ✨

okay this is the serious part, bestie, sit down 😭

CUPS printer drivers and backends are deprecated and will no longer be supported in a future feature release of CUPS.

That's not a vibe, that's a fact. So like, don't build your whole future on these πŸ₯²

Printers that do not support IPP can be supported using applications such as ippeveprinter(1). That's the glow-up path ✨


✨ SEE ALSO ✨


Copyright Β© 2020-2024 by OpenPrinting.


and that's the whole page, bestie πŸŽ€ this lil writeup is from the CUPS manual, lpinfo(8), dated 2022-05-02 β€” so if you're reading this way later, check whether the deprecation already happened πŸ‘€ love u, go list some printers πŸ’–πŸ¦‹πŸŒΈ

πŸ“¦ where this page comes from