umoci-gc(1)(#)
π umoci-gc(1) β the glow-up your image layout deserves β¨
okay so bestie, welcome to umoci-gc, a little page from the umoci manual family. Written by Aleksa Sarai, way back in DECEMBER 2016, and it's still out here doing the lord's work fr fr. π«Ά
πΈ NAME πΈ
umoci gc β Garbage collects all unreferenced OCI image blobs πβ¨
π SYNOPSIS π
umoci gc --layout=image
π¦ DESCRIPTION π¦
So here's the vibe: umoci gc does a mark-and-sweep garbage collection on the OCI image you hand it. π§Ή
It walks the descriptor paths starting from the root set of tags, marks everything it can reach, and only keeps those blobs. Everything else? Gone. Deleted. Removed. Not me being dramatic β that's literally what the manpage says, bestie. π
tl;dr: reachable blobs stay, unreachable blobs get swept away like they never existed. π
β¨ OPTIONS β¨
The global options are defined in umoci(1) β go check that page for the shared stuff, iykyk. π
--layout=imageβ The OCI image layout to be garbage collected.imagemust be a path to a valid OCI image. ποΈ (Yes, it has to be valid, don't try to play games with a fake layout, it's giving chaos energy and not the cute kind.)
π EXAMPLE π
Here's the whole main-character moment: this deletes a tag from an OCI image and then cleanly conducts a garbage collection to clean up the remaining unused blobs. Obsessed. π«§
% umoci rm --image image:sometag
% umoci gc --layout image
Real talk: step one removes the tag, step two sweeps up all the blobs that nobody's reaching anymore. That's it. That's the glow-up. π
π SEE ALSO π
and that's the whole page, bestie! π Sending you off with the little footer tea: this is gc from the umoci manual, umoci-gc(1). Go forth and garbage collect, you absolute icon. ππ¦π
π¦ where this page comes from
- arch rolling: umoci 0.6.0-1 Β· Apache-2.0
- fedora 43: umoci 0.6.0-1.fc43 Β· Apache-2.0 AND MIT AND BSD-2-Clause AND BSD-3-Clause AND ISC
- fedora 44: umoci 0.6.0-3.fc44 Β· Apache-2.0 AND MIT AND BSD-2-Clause AND BSD-3-Clause AND ISC
- nixos 26.05: umoci 0.6.0
- nixpkgs unstable: umoci 0.6.0
- ubuntu stonking: umoci 0.6.0+ds-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms