BOTCH-CLEAN-REPOSITORY(1)
β¨ BOTCH-CLEAN-REPOSITORY π
okay bestie, welcome to the botch-clean-repository manual page β it lives in the botch tools section of the manual, and it's genuinely one of the most satisfying little utilities out there. it's giving spring cleaning but for Debian repos. π§Ήβ¨
πΈ NAME πΈ
botch-clean-repository β clean errors in a repository by removing transitively uninstallable or compilable packages
π¦ SYNOPSIS π¦
botch-clean-repository [options] Packages Sources
π DESCRIPTION π
so here's the vibe: you hand it a repository of binary packages and source packages, and it cleans up that repository by yeeting the stuff that just doesn't work. specifically it removes:
- packages that can't be compiled or installed
- packages that don't have an associated binary or source package
- packages that don't match the specified architecture
and the result? it effectively creates a self contained repository of maximal size. like, the biggest possible repo that still actually works. no cap. π
β¨ OPTIONS β¨
--versionβ show the program's version and then dip. bye! π-h,--helpβ show this help message and exit. classic.-v,--verboseβ print additional information. spill the tea, we want details π¬--quietβ do no print any messages. (yes, the original says "do no print" and honestly? iconic. keeping it exactly as-is.) π€«--reqsrcarchallβ require source packages forarch:allbinary packages--addsrcarchallβ add source packages which only buildarch:allbinary packages--deb-drop-b-d-indepβ DropBuild-Depends-Indepdependencies--deb-drop-b-d-archβ DropBuild-Depends-Archdependencies--allowsrcmismatchβ If a binary package is without a source package but there is a source package of same name but different version, match this binary package to that source package. (a little matchmaking, we love to see it π)--progressβ print progress bars. loading bar ASMR π«Ά-o,--outfile=FILEβ Set the output file FILE--deb-native-arch=ARCHβ Native architecture ARCH--deb-host-arch=archβ Host architecture arch. Defaults to native architecture.--deb-foreign-archs=archsβ Comma-separated foreign architectures in addition to native and host architectures.--deb-ignore-essentialβ By default, installing any binary package requires the coinstallation set of all binary packages marked asEssential:yesto be installed as well. This option drops this requirement.
π EXAMPLE π
Clean up a repository:
botch-clean-repository --deb-native-arch=amd64 packages sources > packages-clean
botch-bin2src --deb-native-arch=amd64 packages-clean sources > sources-clean
see how botch-clean-repository feeds straight into botch-bin2src? pipeline slay. π₯
π BUGS π
See <http://bugs.debian.org/botch>.
π SEE ALSO π
Debian doc-base Manual /usr/share/doc/botch/wiki/Home.html
π AUTHOR π
This man page was written by Johannes Schauer. Botch is written by Johannes Schauer and Pietro Abate. (shoutout to the devs fr fr π)
π COPYRIGHT π
Copyright 2012-2014 Johannes Schauer, Pietro Abate
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. A special linking exception to the GNU Lesser General Public License applies to this library, see the COPYING file for more information.
ok that's the whole page bestie, go forth and clean some repositories π
perl v5.36.0 Β· 2023-02-17 β mwah, that's a wrap, BOTCH-CLEAN-REPOSITORY(1) out π
β¨π¦
π¦ where this page comes from
- debian bookworm: botch 0.24-2 Β· LGPL-3.0-or-later WITH OCaml-linking exception
- ubuntu noble: botch 0.24-2 Β· LGPL-3.0-or-later WITH OCaml-linking exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms