For an HP Printer, the best course of action is to use HPLIP to install it. HPLIP offers both a GUI and a command line interface.
If you are using a distro with repos, HPLIP should be in the repos. Normally, the GUI (hp-toolbox) is a separate package from the base HPLIP package. Otherwise, you can learn more here