[arch-general] New nvidia drivers in testing
Abhishek Dasgupta
abhidg at gmail.com
Thu May 29 12:37:09 EDT 2008
On Thu, May 29, 2008 at 07:42:51AM +0200, Attila wrote:
> Note to 2.: I see that on the packages search page the possibility to see the
> file list is gone. Will this come back or is there an alternative to do the
> same in the shell?
I wrote a small script to search for files in packages
using Pierre's filelist repository at:
http://dev.archlinux.org/~pierre/test-repo
syntax is "pac-file (search|show|sync)"
#!/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 || exit 1
for i in ${repos[@]}
do
rm $i.files.tar.gz
rm -rf $i; mkdir $i
wget $url/$i/os/$a/$i.files.tar.gz || exit 1
tar zxf $i.files.tar.gz -C ./$i
done
echo "sync complete."
;;
search)
cd $store
grep -R $2 . | sed "s/\.\/\(.*\)\/files:/\1 /g"
;;
show)
cd $store
for i in ${repos[@]}
do
cat $i/$2*/files 2> /dev/null
done
;;
*)
echo "usage: $0 {sync|search|show}"
esac
exit 0
--
Abhishek
More information about the arch-general
mailing list