Staying up to date with your printer and scanner hardware can be challenging, but fortunately, HP Linux Imaging and Printing (HPLIP) is here to help. This open-source project provides full support for an extensive range of popular distributions like Fedora, making it easy to keep everything running smoothly. Follow this small guide if you’re itching to get HPLIP installed using the command line terminal in no time!
Table of Contents
Step 1: Update Fedora
Before you begin the installation, you must update your system to ensure that you have the latest security updates and bug fixes. Open a terminal and run the following command.
sudo dnf upgrade --refresh
Step 2: Install HPLIP
To install HPLIP, you can use the DNF package manager. Run the following command.
sudo dnf install hplip hplip-gui -y
This will install the HPLIP packages and the HPLIP GUI, an optional package that provides a graphical user interface for HPLIP.
Step 3: Run the HPLIP set-up
Once the installation is complete, you can run the HPLIP set-up to configure your printer and scanner. To do this, run the following command in your terminal.
sudo hp-setup
Alternatively, use the following command if you have a USB-based HP printer or scanner.
hp-setup -b usb
For instance, if my networked printer has an IP address of 192.168.50.100, I would execute the following command.
hp-setup 192.168.50.100
This will launch the HPLIP set-up wizard, guiding you through configuring your printer and scanner.
Example of GUI:
Once complete, you can find the HPLIP set-up in your applications menu.
Activities > Show Applications > HPLIP
Example:
Step 4: Test the installation
To test the installation, you can try printing a test page. Open a terminal and run the following command.
lp -d printer-name /usr/share/doc/hplip/examples/hp-testpage.pdf
Replace “printer-name” with the name of your printer. If the test page is printed successfully, HPLIP is installed and configured correctly.
Step 5. Additional Commands & Tips
How to Update HPLIP
Open a terminal and run the following command to update your system.
sudo dnf update
You can install updates by running the following command if there are available.
sudo dnf upgrade
Alternatively, you can run a single command that will blanket-check your entire system for upgrades.
sudo dnf upgrade --refresh
How to Remove HPLIP
Run the following command to remove the HPLIP package.
sudo dnf remove hplip
After removing the package, it is recommended to run the following command to remove any dependencies that are no longer needed:
sudo dnf autoremove
Alternatively, you can do both simultaneously using the following command.
sudo dnf autoremove hplip
Conclusion
Installing HPLIP on Fedora is a straightforward process that can be completed in just a few steps. With HPLIP, you can easily use your HP printer and scanner on your Fedora system. The steps mentioned above are easy to follow and will help you set up HPLIP on your Fedora system without any hassles.