foomatic-hash(1)

πŸ“¦
version 2.0.1 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44

πŸ’… foomatic-hash(1) β€” from the General Commands Manual ✨

okay so bestie, gather round, because this little icon is literally the bouncer at the club for your PPD values 🫢 it's foomatic-hash, and it lives in the General Commands Manual section (section 1, iykyk).


🌸 NAME 🌸

foomatic-hash β€” the tool that scans the drivers you gave it for problematic PPD options and hashes them with SHA-256. no cap, that's the whole job. πŸ’–


✨ SYNOPSIS ✨

foomatic-hash --ppd <ppdfile> <scanoutput> <hashes_file>
foomatic-hash --ppd-paths <path1,path2..pathN> <scanoutput> <hashes_file>

two whole modes, pick your fighter πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe: the tool scans the drivers you handed it for the values of the PPD keywords FoomaticRIPCommandLine, FoomaticRIPCommandLinePDF, and FoomaticRIPOptionSetting. it takes all those found values and drops them into a file so you can review them πŸ‘€ and then it prints out the hashes of those values in hexadecimal format. πŸ”₯

and like, the hashes are required β€” that's not me being dramatic, that's literally the point β€” because they're what the filter foomatic-rip needs in order to be allowed to process those values. main character security behaviour, honestly. πŸ‘‘


πŸŽ€ OPTIONS πŸŽ€

the tool foomatic-hash supports two options, and honestly? two is enough when they both slay:

  • --ppd <ppdfile> β€” the tool scans the specific PPD file. one file, laser focus, very demure. πŸ’…
  • --ppd-paths <path1,path2..pathN> β€” the tool scans directories path1, path2 until pathN looking for values of the desired PPD keyword. the paths are absolute, symlinks are ignored (not me ignoring them, the tool does, don't shoot the messenger πŸ™ˆ), and each path is divided by comma. heads up though bestie: LibPPD support is required for this functionality.
⭐ reminder that the paths are absolute and symlinks are ignored β€” and --ppd-paths literally will not work without LibPPD support. fr fr.

🌈 EXAMPLES 🌈

example one: single file energy πŸ“

scans the PPD file test.ppd, prints the found values into found_values, hashes them, and saves them into hashed_values. ate that.

foomatic-hash --ppd test.ppd found_values hashed_values

example two: directory era 🧚

scans the path /etc/cups/ppd for drivers, finds values if there are any, puts them into found_values, and hashes them into hashed_values. note the sudo β€” we're being responsible adults here 😭

sudo foomatic-hash --ppd-paths /etc/cups/ppd found_value hashed_values

πŸ’œ EXIT STATUS πŸ’œ

returns zero if the scan happens successfully, and a non-zero return value for any error during the process. so like, zero = slay, non-zero = something went off and you should look at it. πŸ’€


πŸ¦‹ SEE ALSO πŸ¦‹

foomatic-rip(1) β€” its bestie, the one that actually needs these hashes 🫢


okay that's the whole page, and before you go: this icon is from User Commands, dated 2025-06-18 🌸 go forth and hash responsibly, bestie βœ¨πŸ‘‘

πŸ“¦ where this page comes from