RREDTOOL(1)
π RREDTOOL(1) π
okay bestie, welcome to the rredtool page from the REPREPRO manual set. this is the whole thing, every flag, every vibe, no skips. let's go π¦
β¨ NAME β¨
rredtool β merge or apply a very restricted subset of ed patches. yes, very restricted, she's picky, we love that for her π
πΈ SYNOPSIS πΈ
rredtool --help
rredtool [ options ] --merge patches...
rredtool [ options ] --patch file-to-patch patches...
rredtool directory newfile oldfile mode
π DESCRIPTION π
so rredtool is the girl who handles a subset of ed patches, and she does it safely. like, safety first, always π«Ά
she's especially built for the ed patches you see in Packages.diff and Sources.diff. and plot twist, she's also got a whole mode meant to be called from reprepro as an Index Hook, so she can generate and update a Packages.diff/Index file. multi-talented, honestly π
π MODI π
you have to give her one of these, otherwise she literally doesn't know what to do. no mode = no service, that's the rule.
--versionβ print the version of this tool. or, more accurately, the version of reprepro that she came bundled with. it's giving "i'm not my own person, i'm part of a family" π--helpβ a short little overview of the modi. the tl;dr of tl;drs β¨--patchβ the first argument ofrredtoolis the file to patch, and every argument after that is an ed patch to apply on top of it. layering, like a cute outfit π§--mergeβ here all the arguments get treated as ed patches, and they get merged together into one single patch. girl math: many patches β one patch π--reprepro-hook(or literally no other mode flag at all) β act as a reprepro index hook to manage aPackages.diff/indexfile. that means she expects to get exactly 4 arguments, and she writes the names of files to place into filedescriptor 3.
and here's the cute part: if neither --patch nor --merge is given, this mode is the one that runs. so you can just drop
DebIndices: Packages Release . .gz /usr/bin/rredtool
into reprepro's conf/distributions file and boom, you've got a Packages.diff directory being generated π
ngl there are two little catches here, bestie. you have to generate an uncompressed file (that's the single dot,.). and you will needpatch,gzipandgunzipall available in yourpath. no tools in path = no magic. periodt.
β OPTIONS β
--debugβ print intermediate results and other details that might be interesting when you're trying to track down bugs inrredtool. and if you're not hunting bugs? not interesting otherwise. so basically it's the "i'm investigating something" button π--max-patch-count=countβ when generating aPackages.diff/Indexfile, put at mostcountpatches in it. and heads up, that count does not include possible apt workaround patches. sneaky little extras, we see you π-o|--outputβ not yet implemented. she's a concept, a dream, a vision board entry. soon maybe? not today though π
π ENVIRONMENT π
TMPDIR,TEMPDIRβ temporary files get created in$TEMPDIRif it's set. otherwise in$TMPDIRif that's set. otherwise in/tmp/. it's a whole priority list, she's very organized π
π REPORTING BUGS π
found a bug? got a wishlist request? send it to the Debian BTS β like, by using reportbug reperepro for example β or just tell her directly at <brlink@debian.org>. she wants to hear from you, fr fr π«Ά
π COPYRIGHT π
Copyright Β© 2009 Bernhard R. Link
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE, bestie. say it with me. NO WARRANTY. dramatic but true π
and that's the whole page!! this version came from reprepro and is dated 2009-11-12 β vintage, iconic, still slaying πΈβ¨π bye bestie, go patch something responsibly π¦π
π¦ where this page comes from
- arch rolling: reprepro 5.5.1-1 Β· GPL-2.0-only
- debian bookworm: reprepro 5.3.1-1+deb12u2 Β· GPL-2.0-only
- debian trixie: reprepro 5.4.6+really5.3.2-1+deb13u1 Β· GPL-2.0-only
- epel 9: reprepro 5.4.4-1.el9 Β· GPLv2 and GPLv2+ and MIT
- fedora 43: reprepro 5.4.4-5.fc43 Β· GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-MIT
- fedora 44: reprepro 5.4.4-6.fc44 Β· GPL-2.0-only AND GPL-2.0-or-later AND LicenseRef-Callaway-MIT
- nixos 26.05: reprepro 5.4.8
- nixpkgs unstable: reprepro 5.4.8
- opensuse-leap 16.0: reprepro 5.4.3-bp160.1.12 Β· GPL-2.0-only AND GPL-2.0-or-later AND MIT
- opensuse-leap 16.0: reprepro 5.4.3-bp160.1.12 Β· GPL-2.0-only AND GPL-2.0-or-later AND MIT
- opensuse-leap 16.0: reprepro 5.4.3-bp160.1.12 Β· GPL-2.0-only AND GPL-2.0-or-later AND MIT
- opensuse-leap 16.0: reprepro 5.4.3-bp160.1.12 Β· GPL-2.0-only AND GPL-2.0-or-later AND MIT
- ubuntu jammy: reprepro 5.3.0-1.4
- ubuntu noble: reprepro 5.3.1-5build4 Β· GPL-2.0-only
- ubuntu questing: reprepro 5.4.6+really5.3.2-1
- ubuntu resolute: reprepro 5.4.6+really5.3.2-2build1 Β· GPL-2.0-only
- ubuntu stonking: reprepro 5.4.6+really5.3.2-2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms