When configuring the printer select HP Laserjet 1022 1.6.1 version of drivers and in printer information, utility select clean printer head if the printer is idle for the first time.
Forked from garry-jeromson/install_hp_printer_drivers.sh
Last active
February 20, 2026 08:06
-
-
Save puranjayjain/67577ec5de568981ac6c44e15b2821df to your computer and use it in GitHub Desktop.
Install HP printer drivers on macOS 20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # * see readme.md file for more information | |
| curl -o ~/Downloads/hpdrivers.dmg https://updates.cdn-apple.com/2020/macos/001-41745-20201210-DBC9B46B-88B2-4032-87D9-449AF1D20804/HewlettPackardPrinterDrivers.dmg | |
| hdiutil attach ~/Downloads/hpdrivers.dmg | |
| pkgutil --expand /Volumes/HP_PrinterSupportManual/HewlettPackardPrinterDrivers.pkg ~/Downloads/hp-expand | |
| hdiutil eject /Volumes/HP_PrinterSupportManual | |
| sed -i '' 's/12.0/40.0/' ~/Downloads/hp-expand/Distribution | |
| pkgutil --flatten ~/Downloads/hp-expand ~/Downloads/HP_Drivers_12.pkg | |
| rm -R ~/Downloads/hp-expand | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment