CHECKUPDATES(8)
π CHECKUPDATES(8) β the checkupdates page, but make it make sense π
okay so bestie, this is the manual for checkupdates, and it lives in the Pacman-contrib Manual section 8 (system administration commands, iykyk). grab a strawberry drink π and let's go.
β¨ NAME β¨
checkupdates β safely print a list of pending updates π«Ά
like, it goes and looks for updates without wrecking your real setup, and then tells you what's pending. iconic behaviour honestly.
πΈ SYNOPSIS πΈ
checkupdates [options]
that's it. that's the whole vibe check. no subcommands, no drama.
π¦ DESCRIPTION π¦
so here's the tea β: checkupdates checks for pending updates by using a separate pacman database β a little temporary one, not your real one β and then outputs a list of updates showing the old and new version side by side. cute, informative, no cap.
where does that separate database live? it's in TMPDIR, unless CHECKUPDATES_DB is set, in which case that wins. periodt.
the whole point is the "safely" in the NAME section β it's using its own temporary db, not touching your actual system db. very main character energy of it to be honest.
π OPTIONS π
-c,--changeβ check for new available updates only, and print the list of available updates only if it differs from the last timecheckupdateswas run with that option. so like, it remembers what it told you last time and only speaks up if something changed. lowkey the most useful one ngl.-d,--downloadβ download any pending updates to the pacman cache π₯. it just pulls 'em down, that's the whole job.-h,--helpβ display syntax and command-line options. the classic "what does this do again" button β¨.--nocolorβ do not colorize output. but heads up bestie: color has to be enabled inpacman.conffor the listing to be colored to begin with, so this one only matters if colors were even on π.-n,--nosyncβ do not sync the temporary database. works best when the temporary database is updated regularly through some other means, such as acronjoborsystemd timer. i.e. if something else already keeps that db fresh, this stops the double work π.-V,--versionβ display version information. π
note: those are two separate short flags β-V(capital, version) and-n(lowercase, nosync). not the same letter, don't mix them up π.
π§ ENVIRONMENT π§
CHECKUPDATES_DBβ override the default${TMPDIR:-/tmp}/checkup-db-${UID}temporary database location. yes, the literal default is${TMPDIR:-/tmp}/checkup-db-${UID}β copy it exactly if you're scripting, fr fr.CHECKUPDATES_CHANGEβ the state file location for the-c/--changeoption. that's where it remembers what it last showed you π.TMPDIRβ override the default/tmptemporary directory.XDG_STATE_HOMEβ override the default$HOME/.local/statestate directory.
π ERRORS π
on exit, checkupdates will return one of the following error codes. write these down bestie, scripts care about them:
0β normal exit condition. slay, everything's fine β¨.1β unknown cause of failure. π the vibes are off and we don't know why.2β no updates are available. not a crash! it's just saying there's nothing to install. go touch grass πΈ.
β SEE ALSO β
go read those if you want the full lore π¦.
π BUGS π
bugs? you must be kidding; there are no bugs in this software. π
but if we happen to be wrong, file an issue with as much detail as possible at:
https://gitlab.archlinux.org/pacman/pacman-contrib/-/issues/new
like, actual detail. logs. steps. the whole thing. we're not psychic π«Ά.
π AUTHORS π
current maintainers:
- Johannes LΓΆthberg
<johannes@kyriasis.com> - Daniel M. Capella
<polyzen@archlinux.org>
for additional contributors, use git shortlog -s on the pacman-contrib.git repository. go give them their flowers πΈ.
btw the em dashes and quotes and everything above? keep the flags and paths exactly as written when you script around this β--nocolorhas no short form,-Vis capital, and that${TMPDIR:-/tmp}/checkup-db-${UID}default is literally the default, not a placeholder for you to improvise on. iykyk π
and that's the page!! this was Pacman-contrib 1.13.1, dated 2025-12-11, down here in CHECKUPDATES(8) β tysm for reading, go update your system responsibly, mwah ππβ¨
π¦ where this page comes from
- arch rolling: pacman-contrib 1.13.1-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms