How to set up printers from the command line using lpadmin in RHEL

Solution Verified - Updated -


  • How to setup printer from the command line using lpadmin whose drivers are provided in Red Hat Enterprise Linux.
  • We need the command syntax to add a print queue that will point to a serial device.
  • How do I add printers to my CUPS print server without using any of the GUI tools?
  • We have hundreds of CUPS printers currently defined, but are a mix of socket/LPD, printer name/IP, different drivers. We're wanting to standardize our environment and need to change/set the following attributes at the command line if at all possible (I'll be scripting it).


  • Red Hat Enterprise Linux (RHEL), all versions
  • Common Unix Printing System (CUPS)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content