System Administration Guide: Printing

Specifying a PPD File When Setting Up a Printer

To specify a PPD file when adding or modifying a printer by using LP print commands, use the lpadmin command with the -n option. For example, to add a print queue named foobar for a Lexmark printer, you would type the following command:

# lpadmin -p foobar -v device -I postscript -m standard_foomatic \
-n /path/Lexmark-Optra_E312-Postscript.ppd.gz

When using the lpadmin -n command to specify a PPD file, you must provide the full path to the PPD file.

If you use the lpadmin -n command to add a PPD file, and the repository that you specify in the PPD file path does not exist on the system, a copy of the PPD file is stored in the user label directory, within the user repository. This directory is located at /var/lp/ppd/user/manufacturer/ppd-file. The Solaris Print Manager cache is then updated to reflect the printer information from the recently added PPD file. For more information, see the ppdmgr(1M) man page.