+ -
当前位置:首页 → 问答吧 → 又一个pacman的前端tupac

又一个pacman的前端tupac

时间:2007-12-31

来源:互联网

我使用后感觉有几大特点值得推荐:
1、使用缓存,速度飞快。
这是作者贴出来的对比;
代码:
[franki@patito php]$ time pacman -Ss kde>/dev/null

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

real 0m0.201s
user 0m0.147s
sys 0m0.047s

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

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

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

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

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

real 0m3.182s
user 0m0.470s
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、搜索后选择安装
节省了不少功夫哦,例如
代码:
$tupac xf86-video-i
==> Reusing existing TUPAC_CACHE
1 extra/xf86-video-imstt 1.1.0-4
 X.org Integrated Micro Solutions Twin Turbo video driver
2 extra/xf86-video-i810 1.7.4-6
 X.org Intel i810/i830/i915 video drivers
3 extra/xf86-video-i128 1.2.1-4
 X.org Number 9 I128 video driver
4 extra/xf86-video-intel 2.1.1-2
 X.org Intel i810/i830/i915 video drivers
5 extra/xf86-video-i740 1.1.0-4
 X.org Intel i740 video driver
==> Enter the package numbers you want to install. Separate choices with a space. Example: 1 23 35
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

作者: zlowly   发布时间: 2007-12-31

试了,确实非常好。已经向AUR投票推荐了。

作者: cwjiof   发布时间: 2007-12-31

用了yaourt的人再推荐tupac的话应该是个不错的东东,先收下先

作者: axlrose   发布时间: 2008-01-01

普通用户都能安装软件?还是只能查询?能安装软件就有点可怕了

作者: jarryson   发布时间: 2008-01-01

引用:
作者: jarryson
普通用户都能安装软件?还是只能查询?能安装软件就有点可怕了
需要root密码的……如果开始不是sudo的话,后面会提示,要求输入passwd才能继续安装

作者: cyf3732   发布时间: 2008-01-01

普通用户当然能安装软件!但只能自己用,不是系统级别的安装。
当安装AUR软件时,为安全起见,最好不要用root来安装。
安装时,修改一下安装路径到/home/YourName就可以了。

作者: cwjiof   发布时间: 2008-01-01

引用:
作者: cwjiof
普通用户当然能安装软件!但只能自己用,不是系统级别的安装。
当安装AUR软件时,为安全起见,最好不要用root来安装。
安装时,修改一下安装路径到/home/YourName就可以了。
怎么修改路径到home目录下?tupac安装的时候没有询问这个呀……

作者: cyf3732   发布时间: 2008-01-02

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

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

作者: cwjiof   发布时间: 2008-01-02

强烈感谢cwjiof!晚上试试~
又学习到东西了!THX!

作者: cyf3732   发布时间: 2008-01-02

我这里为什么装了根本不能用呢,tupac xxx什么都没有显示就返回了。

作者: zhuqin_83   发布时间: 2008-02-06

感觉还是yaourt好用, tupac 用ctrl+c 刹不住车.还是要什么其他配置?

作者: zkyken   发布时间: 2008-02-06

tupac 只能从搜索结果中选择安装,却不能选择卸载

作者: skyround   发布时间: 2008-02-06

引用:
作者: zhuqin_83
我这里为什么装了根本不能用呢,tupac xxx什么都没有显示就返回了。
需要先执行sudo tupac..类似pacman -Sy

作者: lufeng369   发布时间: 2008-02-10

呵呵,果然如此,多谢!

作者: zhuqin_83   发布时间: 2008-02-11

aur里还有个tupac的基于qt4的gui前端的qupac,貌似它还可以搜索aur,不过目前仅有install功能,有兴趣的也可以试试看。
当然我自己的第一选择还是yaourt。

作者: zlowly   发布时间: 2008-02-12

引用:
作者: lufeng369
需要先执行sudo tupac..类似pacman -Sy

$:tupac -Syu是否等同于$sudo pacman -Syu

另外什么时候需要执行sudo tupac ?每次tupac 前都需要这样吗?WIKI上并没有详细说这一点,这个工具早装了,但很少用。

作者: smileoa   发布时间: 2009-12-25

热门下载

更多