Le 22/03/2026 à 01:16, nwe a écrit :
This is interesting. I performed some quick testing:
My printer is an HP_LaserJet_MFP_M426fdn. My Debian Trixie system is
printing via CUPS, my print driver according to http://localhost:631/
printers/HP_LaserJet_MFP_M426fdn_E35487 is "driverless"
lpr myfile.pdf
prints portrait as expected
echo "Hi, there" | lpr
prints landscape. why?
[...]
One of the possible reasons is the use of the wrong printing subsystem:
the lpr command is not CUPS native command for printing (that's the role
of the lp command) but is provided by the cups-bsd package as a
compatibility layer with the old Unix lpr printing susbsystem.
if the lpr or lprng package is installed on a system instead of the
cups-bsd package, the setup used for a printer is the one from the lpr
or lprng printing subsystem, not the one from CUPS printing subsystem.
If the lp command prints in portrait mode, that means either lpr or
lprng package is installed and must be purged, and cups-bsd package is
to be installed.
And, yes, CUPS and lpr or lprng are not conflicting pacages. cups-bsd
and lpr or lprng are conflicting packages.