neige d'aoust

knowledge, art, and other stuff

User Tools

Site Tools


snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
snippets [2025/03/11 21:16] Yukisnippets [2025/06/23 18:27] (current) – [update-repo] Yuki
Line 29: Line 29:
 </code> </code>
  
-===== +===== 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=/home/yuki/.cache/paru/clone 
 +repodir=/srv/http/html/pkg/ 
 +suffix="*.pkg.tar.zst*" 
 +repo=yuki 
 + 
 +rm $repodir/$suffix 
 +find $pkgs -name "$suffix" -exec ln -s {} $repodir \; 
 +cd $repodir 
 +find . -name "$suffix" -exec repo-add -np $repo.db.tar.gz {} \; 
 +</code>
snippets.1741742203.txt.gz · Last modified: by Yuki