LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2540|回复: 15

又一个pacman的前端tupac

[复制链接]
发表于 2007-12-31 03:33:40 | 显示全部楼层 |阅读模式
我使用后感觉有几大特点值得推荐:
1、使用缓存,速度飞快。
这是作者贴出来的对比;

  1. [franki@patito php]$ time pacman -Ss kde>/dev/null

  2. real    0m0.537s
  3. user    0m0.227s
  4. sys     0m0.300s
  5. [franki@patito php]$ time tupac --noaur -Ss kde>/dev/null

  6. real    0m0.201s
  7. user    0m0.147s
  8. sys     0m0.047s

  9. [franki@patito php]$ time pacman -Qo $(find /bin -type f)>/dev/null
  10. error: Ningún paquete posee /bin/mount-device.sh
  11. error: Ningún paquete posee /bin/mount-device.sh~

  12. real    1m26.211s
  13. user    0m30.865s
  14. sys     0m52.853s
  15. [franki@patito php]$ time tupac -Qo $(find /bin -type f)>/dev/null

  16. real    0m7.402s
  17. user    0m6.780s
  18. sys     0m0.380s

  19. [franki@patito php]$ time yaourt -Ss kde>/dev/null

  20. real    0m59.746s
  21. user    0m12.156s
  22. sys     0m41.927s
  23. [franki@patito php]$ time tupac -Ss kde>/dev/null

  24. real    0m3.182s
  25. user    0m0.470s
  26. sys     0m0.057s

复制代码

看来速度提升的确很明显。

2、更合理的搜索方式

yaourt -Ss 3d game -> 4 results (it only includes packages that match exactly '3d game')
yaourt的搜索是整个“3d game”

pacman -Ss 3d game -> 109 results (it includes all packages that include any of both words)
pacman的搜索是任何包括“3d”或者“game”的包

tupac -Ss 3d game -> 33 results (all packages contain the word 3d AND the word game)
tupac的搜索是同时包含“3d”和“game”的包

很显然,tupac的方式应该更符合我们日常的习惯

3、搜索后选择安装
节省了不少功夫哦,例如

  1. $tupac xf86-video-i
  2. ==> Reusing existing TUPAC_CACHE
  3. 1 extra/xf86-video-imstt 1.1.0-4
  4.     X.org Integrated Micro Solutions Twin Turbo video driver
  5. 2 extra/xf86-video-i810 1.7.4-6
  6.     X.org Intel i810/i830/i915 video drivers
  7. 3 extra/xf86-video-i128 1.2.1-4
  8.     X.org Number 9 I128 video driver
  9. 4 extra/xf86-video-intel 2.1.1-2
  10.     X.org Intel i810/i830/i915 video drivers
  11. 5 extra/xf86-video-i740 1.1.0-4
  12.     X.org Intel i740 video driver
  13. ==> Enter the package numbers you want to install. Separate choices with a space. Example: 1 23 35
  14. Make your choices:
复制代码



tupac属于AUR,可以通过yaourt来安装,安装后先用sudo tupac来创建缓存目录和缓存,然后就用普通用户来使用它了。不过它依赖于php包,所以安装时会同时装上9M的PHP5,这点可能有人会不喜欢。

tupac: A cached pacman implementatioin. Version: 0.3.3

Usage:
  tupac [word] [word] [word] ...     : Search for and install packages that match all [word]
  tupac -Ss [word] [word] [word] ... : Search for packages that match all [word]
  tupac -Qo [file] [file] [file] ... : Search for each [file] owner
  tupac --checkdir [directory]       : Check integrity of a directory.
  tupac --orphans [directory]        : Find files that are not part of any package
  tupac                              : Just update cache
  tupac [anything else]              : bypass to yaourt

Modifiers:
  --noaur                            : Don't search in AUR
  --noprompt                         : Don't prompt anything
  --color [darkbg|lightbg|nocolor]   : Choose color scheme
发表于 2007-12-31 10:34:47 | 显示全部楼层
试了,确实非常好。已经向AUR投票推荐了。
回复 支持 反对

使用道具 举报

发表于 2007-12-31 22:19:55 | 显示全部楼层
用了yaourt的人再推荐tupac的话应该是个不错的东东,先收下先
回复 支持 反对

使用道具 举报

发表于 2007-12-31 23:54:53 | 显示全部楼层
普通用户都能安装软件?还是只能查询?能安装软件就有点可怕了
回复 支持 反对

使用道具 举报

发表于 2008-1-1 04:44:05 | 显示全部楼层
Post by jarryson;1801846
普通用户都能安装软件?还是只能查询?能安装软件就有点可怕了


需要root密码的……如果开始不是sudo的话,后面会提示,要求输入passwd才能继续安装
回复 支持 反对

使用道具 举报

发表于 2008-1-1 08:51:10 | 显示全部楼层
普通用户当然能安装软件!但只能自己用,不是系统级别的安装。
当安装AUR软件时,为安全起见,最好不要用root来安装。
安装时,修改一下安装路径到/home/YourName就可以了。
回复 支持 反对

使用道具 举报

发表于 2008-1-1 20:00:30 | 显示全部楼层
Post by cwjiof;1801908
普通用户当然能安装软件!但只能自己用,不是系统级别的安装。
当安装AUR软件时,为安全起见,最好不要用root来安装。
安装时,修改一下安装路径到/home/YourName就可以了。


怎么修改路径到home目录下?tupac安装的时候没有询问这个呀……
回复 支持 反对

使用道具 举报

发表于 2008-1-1 23:32:24 | 显示全部楼层
安装AUC软件时,会问你是否要编辑PKGBUILD(看上去像FreeBSD下的MakeFile),选是,然后选个编辑器,如vi,就可以编辑了,通常里面都会有一行中有“--prefix=”,就是设定安装的路径了。
比如我们要安装到/home/YourName/app/下面,就将那一行的相应位置改成:
--prefix=/home/YourName/app
保存,即可。

最后,软件编译安装成功后,还要在~/.profile或~/.bashrc 里面添加一个指向/home/YourName/app的路径。否则,系统就找不到这个命令了。
回复 支持 反对

使用道具 举报

发表于 2008-1-2 16:07:55 | 显示全部楼层
强烈感谢cwjiof!晚上试试~
又学习到东西了!THX!
回复 支持 反对

使用道具 举报

发表于 2008-2-6 01:02:47 | 显示全部楼层
我这里为什么装了根本不能用呢,tupac xxx什么都没有显示就返回了。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表