2008年12月23日 星期二

一個貼心小功能


在終端機輸入
$ svn co http://svn.gnome.org/svn/pango/trunk pango

The program 'svn' can be found in following packages:
* subversion [ path: /usr/bin/svn, repository: zypp (openSUSE 11.1-0) ]
* subversion [ path: /usr/bin/svn, repository: zypp (repo-oss) ]

Try installing with: sudo zypper install subversion

bash: svn: command not found

沒裝 subversion (一般使用者大概也用不到)以前只會跟您說 command not found
現在會告訴您套件名稱(subversion)和套件庫(repo-oss)
接著您只要
$ sudo zypper in subversion

就可以安裝了
您可能喜歡用 locate 來尋找檔案,但這個套件也是預設沒安裝
請您默寫出他所屬套件名稱...囧rz
$ locate

The program 'locate' can be found in following packages:
* findutils-locate [ path: /usr/bin/locate, repository: zypp (openSUSE 11.1-0) ]
* findutils-locate [ path: /usr/bin/locate, repository: zypp (repo-oss) ]

Try installing with: sudo zypper install findutils-locate

bash: locate: command not found

我因為翻譯需要 kbabel
$ kbabel

The program 'kbabel' can be found in following packages:
* kdesdk3-translate [ path: /opt/kde3/bin/kbabel, repository: zypp (openSUSE 11.1-0) ]
* kdesdk3-translate [ path: /opt/kde3/bin/kbabel, repository: zypp (repo-oss) ]

Try installing with: sudo zypper install kdesdk3-translate

bash: kbabel: command not found

真的大心啦
(還好應用程式名稱還記得住)
為什麼套件名稱要取得這麼複雜啊?

沒有留言: