今天才发现原来archlinux官方的一些处理脚本在 dbscripts仓库里

http://projects.archlinux.org/dbscripts.git/

配置一下 config后运行 create-filelists 就能将本地仓库做成 xxx.files.tar.gz了,然后通过pacfile -S 同步到本地


新版本的dbscripts支持从 repo-add -f my.files.tar.gz xxxxx包 ( -f --files)制作filelist ,非常方便

具体参考 dbscripts的 config, db-functions两个文件



dbscripts/cron-jobs/update-web-files-db 更新仓库,代替以前的 create-filelists



若没发现pacfile,记得yaourt -S pacfile一下

同步的数据会存放在 /var/lib/pacman/filelists/ 目录下面

pacfile kernel26$ 便能实现 apt-file 或 gentoo下e-file的效果了


因为还是比较习惯e-file这个工具,所以把它做成archlinux的包来用,当然,本人超喜欢的eix也是能在 archlinux下用的,配上layman


[code]

$ uname -a
Linux myarchtp 2.6.36-ARCH #1 SMP PREEMPT Wed Nov 24 06:44:11 UTC 2010 i686 Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz GenuineIntel GNU/Linux

* app-portage/eix
Available versions: 0.17.0 0.19.2 0.20.5 (~)0.20.6 (~)0.22.1 (~)0.22.2 (~)0.22.3 **9999[1] **9999[2] **9999[3] {+bzip2 debug +deprecated doc hardened nls optimization sqlite sqlite3 strong-optimization tools}
Homepage: http://eix.sourceforge.net
Description: Search and query ebuilds, portage incl. local settings, ext. overlays, version changes, and more

[1] "arcon" layman/arcon
[2] "qting-edge" layman/qting-edge
[3] "rion" layman/rion

[/code]