Troubleshooting
This guide covers exit codes, missing binaries, and common “nothing changed”
cases. Live help: filerepack <command> --help. Tool inventory: filerepack doctor.
Exit codes
0— success1— usage error, missing path, or a failure without--continue-on-error2— some files failed while--continue-on-errorwas setfilerepack doctorexits1if7zz/7zis missing
filerepack doctor prints install commands for the current OS after the tool
table when anything is missing.
Missing tools
A missing optional tool leaves that format unchanged. Only 7zz or 7z is
required for archive and OOXML work.
filerepack doctor
Override a tool path with FILEREPACK_7ZZ (and similar) or:
# ~/.config/filerepack/config.toml
[tools]
szip = "/opt/homebrew/bin/7zz"
qpdf = "/usr/local/bin/qpdf"
mp3packer and optivorbis are not in Homebrew, apt, or Chocolatey. See
External tools.
The file did not shrink
- Lossless JPEG/PNG/PDF often save little if the file is already optimized. Try
--ultrafor PNG/Parquet/MP3, or opt into--lossywhen quality loss is acceptable. - Results that are not smaller are discarded unless
--allow-grow. --min-savingscan reject small wins.- Encrypted or signed PDFs skip pikepdf image-stream walking.
- DICOM skips signed, non-image, and already-compressed instances.
--lossydoes not apply. - Optional extras (
filerepack[pdf],filerepack[media],filerepack[data], …) must be installed for those packers.