PKGSYNC(8)
π PKGSYNC π β like, the manual page, bestie
pkgsync(8) from the System Manager's Manual β¨ (yes it's a section 8 girlie, she runs with the big kids)
πΈ NAME πΈ
pkgsync β the automated package synchronization tool π the one that keeps all ur machines matching and cute
β¨ SYNOPSIS β¨
pkgsync
that's it. no args, no flags needed, she just goes π
π¦ DESCRIPTION π¦
okay so pkgsync is the tool for keeping a whole bunch of machines reasonably similar and clean β like, same vibes across the whole fleet, no stray packages lingering.
Here's the system, and it's actually so smart: every package lives in one of three lists β
- must be installed π
- may be installed π
- must not be installed β€οΈ
and those lists are presumed to be distributed separately, using a tool like rdist or cfengine. So pkgsync isn't out here hand-copying ur lists, no ma'am β she just reads them.
Then she does the work: she meets all the demands written down in those lists, and after that she removes everything that isn't in the must or may list and isn't necessary for their operations β and that "necessary" call is determined by aptitude. Periodt. π§Ήβ¨
π OPTIONS π
-h,--helpβ prints a short help text and then dips. that's the whole thing. π«Ά-s,--simulateβ does everything as usual, but putsaptitudein simulation mode, which means it will never make any changes to ur system (exceptupdateandautoclean, and honestly both of those should be harmless). This one is especially useful on a new system to make surepkgsyncbehaves the way u expect before u let her actually cook. π
β οΈ lowkey important:aptitudeprints out its intended actions _before_ running the conflict resolver. So if there's a conflict somewhere, chances are the results on ur actual system will be different from whataptitudeprinted out. not a bug, just how she rolls. π
-k,--keep-unusedβ tellsaptitudeto not remove cruft (ie. unused packages). this is morally equivalent to having an"*"entry inmayhave. β¨-d,--dpkg-globβ when she runs into a wildcard pattern,pkgsynctries toun-globit. Traditionally this was done usingdpkgβ however, in later versions u can useaptitudeinstead. Usingaptitudeis a little slower, but the syntax is a lot more flexible, supporting regular expressions and various searches on fields. Giving--dpkg-globmakespkgsyncusedpkg, which is not very useful except for backwards compatibility. π«-a,--aptitude-globβ usesaptitude's globbing instead ofdpkg's globbing (see above π). This option is the default. π
π₯ SEE ALSO π₯
/usr/share/doc/pkgsync/README.Debianβ the complete tutorial and reference documentation π (iykyk, go read it, it eats)
π AUTHOR π
pkgsync is Copyright 2004-2007 Steinar H. Gunderson <sgunderson@bigfoot.com>. π«Ά
ok that's the whole page bestie, ur basically a sysadmin now π
β¨ this was pkgsync(8) from the System Manager's Manual, and yes, the version/date at the bottom is literally just PKGSYNC(8) again β she's consistent like that. no cap. πΈππ¦
π¦ where this page comes from
- debian bookworm: pkgsync 1.28+nmu1 Β· GPL-2.0-only
- debian trixie: pkgsync 1.28+nmu1 Β· GPL-2.0-only
- ubuntu jammy: pkgsync 1.28
- ubuntu noble: pkgsync 1.28+nmu1 Β· GPL-2.0-only
- ubuntu questing: pkgsync 1.28+nmu1
- ubuntu resolute: pkgsync 1.28+nmu1build1 Β· GPL-2.0-only
- ubuntu stonking: pkgsync 1.28+nmu1build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms