This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| snippets [2025/03/11 21:16] – Yuki | snippets [2025/06/23 18:27] (current) – [update-repo] Yuki | ||
|---|---|---|---|
| Line 29: | Line 29: | ||
| </ | </ | ||
| - | ===== | + | ===== update-repo ===== |
| + | |||
| + | Small tool to take your paru cache and turn it into a repo, useful if you manage a lot of Arch installs. | ||
| + | |||
| + | <code bash update-repo> | ||
| + | #!/bin/sh | ||
| + | pkgs=/ | ||
| + | repodir=/ | ||
| + | suffix=" | ||
| + | repo=yuki | ||
| + | |||
| + | rm $repodir/ | ||
| + | find $pkgs -name " | ||
| + | cd $repodir | ||
| + | find . -name " | ||
| + | </ | ||