upx Plugin
Ultimate Packer for eXecutables. Compresses binaries in place (or to a new file) using fast in-memory decompression at startup — common for shipping smaller CLI tools, firmware images, and release artifacts.
Installation
apt install upx
# or: brew install upx, pacman -S upx
Basic Usage
# Compress an executable in place
upx mybinary
# Compress to a new file (keep original)
upx -o mybinary.compressed mybinary
# Decompress back to original
upx -d mybinary
# Show compression info without modifying
upx -l mybinary
Common Patterns
# Best compression (slower, smaller)
upx --best mybinary
# Compress all executables in a directory
upx ./dist/*
# Test compressed binary integrity
upx -t mybinary
# List supported formats
upx --help
Usage Examples
- "Shrink this Go binary before release"
- "Compress all binaries in ./dist"
- "Decompress this UPX-packed executable"
SuperCLI
sc upx _ _ --best mybinary
sc upx _ _ -l mybinary
sc plugins learn upx