SysTutorials

How to Install and Configure HP Printers on CentOS 7

· updated April 12, 2026

HP printers and scanners on Rocky Linux, CentOS, or RHEL require the HPLIP (HP Linux Imaging and Printing) package. This guide covers the complete setup process.

Install HPLIP packages

Start by installing the core HPLIP packages:

sudo dnf install hplip hplip-gui hpijs

On older CentOS 7 systems, use yum instead of dnf. HPLIP may prompt you to install additional dependencies — allow these installations to proceed. Some printer models require proprietary plugins that won’t function without the complete package set.

Install printer plugins

HP printers often need proprietary plugins for full functionality. Install them with:

sudo hp-plugin

This tool downloads and installs device-specific plugins. You may need to accept licensing agreements. If the command fails, ensure you have internet connectivity and that your printer model is supported by the current HPLIP version.

Configure your printer

Run the printer setup utility:

sudo hp-setup

This interactive tool will:

Follow the on-screen prompts. For network printers, enter the IP address when prompted.

Verify scanner functionality

Test scanner detection:

scanimage -L

This lists all detected scanners. If your scanner appears, the configuration is complete.

For USB scanners, ensure your user account belongs to the lpadmin and lp groups to avoid permission issues:

sudo usermod -aG lpadmin,lp $USER

Log out and back in for group changes to take effect.

Troubleshooting

Printer not detected: Check USB connections or network connectivity. For network printers, verify the device is on the same subnet:

sudo hp-probe -bnet

Plugin installation fails: Update HPLIP to the latest version. Older HPLIP versions may not support newer printer models:

sudo dnf update hplip

Scanner permissions denied: Ensure you’ve added your user to the appropriate groups (see above).

Check HPLIP status: View detailed device and driver information:

hp-info

Accessing the GUI

If you installed hplip-gui, launch the control panel:

sudo hp-toolbox

This provides a graphical interface for printer management, status monitoring, and basic diagnostics.

Troubleshooting Common Issues

If you encounter problems during installation, check these common solutions:

Verification Steps

After installation, verify everything is working correctly by checking the installed version and running basic functionality tests. Most command-line tools respond to the –version or -v flag to display their version information.

Keeping Your Installation Updated

Regularly update your system to receive security patches and bug fixes. On Fedora, use dnf update. On Ubuntu and Debian, use apt update followed by apt upgrade. For software installed via language-specific package managers like pip, npm, or gem, check their respective update commands.

These related commands are often used alongside the tools discussed in this article:

Quick Reference

This article covered the essential concepts and commands for the topic. For more information, consult the official documentation or manual pages. The key takeaway is to understand the fundamentals before applying advanced configurations.

Practice in a test environment before making changes on production systems. Keep notes of what works and what does not for future reference.

← All posts