emaint
Practical emaint cheat sheet covering repository sync, world and merge consistency checks, log cleanup, binhost validation, Gentoo news maintenance, and safe Portage hygiene operations
Run all maintenance checks
Pretend mode (no changes)
Repository
Check repository metadata
World File
Check world file consistency
Merges
Clean up failed or stuck merges
Logs
Binhost
Check binary package repository
Clean broken binary packages
Gentoo News
Sync (Granular)
Sync main Gentoo repository only
emaint sync --repo gentoo
Combined Maintenance
Full maintenance run (recommended)
Safe maintenance for cron jobs
emaint -q sync && emaint -q all
Exit Codes
0 — success
1 — non-fatal issues detected
2 — fatal error