原本在 Server 上是參考
[分享] esearch 介紹對 Gentoo portage 的套件進行搜尋加速的(使用 emerge -s <package name> 真的有夠慢)。
現在因為重新安裝一套 Athlon64 3000+ 系統,恰巧看到另一種加速搜尋的方式 eix ,所以改裝這套來玩玩。
gentoo cache # emerge -pv eix
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild R ] app-portage/eix-0.3.0-r2 +bash-completion 0 kB
Total size of downloads: 0 kB
日後只要執行以下命令即可對 eix 建立最新的 portage snapshot。
執行的效果如何?分別使用 eix 及 emerge 試著找尋 openoffice 相關套件資料可得到以下時間差異:
eix 搜尋結果
gentoo cache # time eix openoffice
* app-office/openoffice
Available versions: !1.1.1-r1[1] !1.1.2[1] !1.1.3-r1[1] !2.0.0[1] !2.0.1 [M]2.0.2_rc3
Installed: none
Homepage: http://go-oo.org
Description: OpenOffice.org, a full office productivity suite.
* app-office/openoffice-bin
Available versions: !1.1.3-r1[1] ~1.9.79[1] ~2.0.0[1] 2.0.1 [M]2.0.2_rc4
Installed: none
Homepage: http://www.openoffice.org/
Description: OpenOffice productivity suite
[1] /GOT
Found 2 matches
real 0m0.027s
user 0m0.018s
sys 0m0.009s
使用 emerge -s 搜尋結果
gentoo cache # time emerge -s openoffice
Searching…
[ Results for search key : openoffice ]
[ Applications found : 2 ]
* app-office/openoffice [ Masked ]
Latest version available: 2.0.2_rc3
Latest version installed: Not Installed
Size of downloaded files: 634,543 kB
Homepage: http://go-oo.org
Description: OpenOffice.org, a full office productivity suite.
License: LGPL-2
* app-office/openoffice-bin
Latest version available: 2.0.1
Latest version installed: [ Not Installed ]
Size of downloaded files: 1,544,525 kB
Homepage: http://www.openoffice.org/
Description: OpenOffice productivity suite
License: LGPL-2
real 0m1.576s
user 0m1.036s
sys 0m0.317s
esearch 操作結果
www ~ # esearch openoffice
[ Results for search key : openoffice ]
[ Applications found : 2 ]
* app-office/openoffice
Latest version available: 2.0.1
Latest version installed: [ Not Installed ]
Size of downloaded files: 620,780 kB
Homepage: http://go-oo.org
Description: OpenOffice.org, a full office productivity suite.
License: LGPL-2
* app-office/openoffice-bin
Latest version available: 2.0.1
Latest version installed: [ Not Installed ]
Size of downloaded files: 1,544,525 kB
Homepage: http://www.openoffice.org/
Description: OpenOffice productivity suite
License: LGPL-2
附帶一提:
OpenOffice 似乎還沒在 K8 上完成測試,所以僅能安裝二進元檔 openoffice-bin 的版本(這樣就少了 64 位元的噱頭了啦)。
另外根據 新增 portage-cdb (加速portage) 的說法,可以順手安裝 portage-cdb 這個套件以加速 portage 的運作。可惜的是目前也不支援 athlon64 環境… =.=b
沒有留言:
張貼留言