[arch-general] filelists for packages
Thanks to Pierre, we have filelists for all packages at http://dev.archlinux.org/~pierre/test-repo/ [1] I made a small script which downloads the *gz from his repo and allows one to find out which package has a particular file: #!/bin/bash store="$HOME/.local/share/pac-file" # default location repos=(core extra community) a=$(uname -m) url="http://dev.archlinux.org/~pierre/test-repo" if [ -f $HOME/.config/pac-file.conf ];then . $HOME/.config/pac-file.conf fi case $1 in sync) echo "synchronising file cache" cd $store for i in ${repos[@]} do rm files.db.tar.gz rm -rf $i; mkdir $i wget $url/$i/os/$a/files.db.tar.gz tar zxf files.db.tar.gz -C ./$i done echo "sync complete." ;; search) cd $store grep -R $2 . | sed "s/\.\/\(.*\)\/files:/\1 /g" ;; *) echo "usage: $0 {sync|search}" esac exit 0 Thanks Pierre! [1]: http://archlinux.org/pipermail/arch-dev-public/2008-May/006124.html -- Abhishek Dasgupta
To be on the safe side, put "|| exit 1" after the cd, rm, wget and tar lines. -- Abhishek Dasgupta
participants (1)
-
Abhishek Dasgupta