obs-tools:简化 openSUSE 添加第三方源

心之所在 | 2012/01/26

openSUSE 添加源需要n长的地址,比如说上篇用的

sudo zypper ar http://download.opensuse.org/repositories/KDE:/Release:/48/openSUSE_12.1/ KR48
有人搞了2个python脚本用来简化步骤 obs-addrepo 和 obs-quickinstall

先安装obs-tools

sudo zypper addrepo --refresh http://download.opensuse.org/repositories/home:/majewsky/openSUSE_12.1/ home:majewsky
sudo zypper refresh home:majewsky
sudo zypper install --from home:majewsky obs-tools
然后添加源就可以这样:
sudo obs-addrepo KDE:Release:48
安装某个源中的某个软件可以这样(这里以安装 josm 举例): 常规步骤是
sudo zypper addrepo --refresh http://download.opensuse.org/repositories/Application:/Geo/openSUSE_12.1/ Application:Geo
sudo zypper refresh Application:Geo
sudo zypper install --from Application:Geo josm
现在是
sudo obs-quickinstall --keep Application:Geo josm

如果没加 –keep,这个源在装完软件后会自动删掉的。

不过貌似我没看到更新的命令……

via http://www.bethselamin.de/obs-tools/

    泰达希尔-德鲁伊
    Tags:

    2 FEEDBACKS

    1. 果然有人开发这种工具了。。。 不过不太想用, openSUSE一旦升级, 这些源互相干扰太厉害了,所以我的源并不是很多,毕竟这机子是工作用机,至于虚拟机么,怎么乱怎么来~ 话说到底,还是源太多太乱了,也许这就是导致openSUSE在国内一直流行不起来的原因之一。

    2. ikde的主题小清新,我喜欢;btw:貌似书写代码的时候溢出了吧,应该有截断的吧

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Note: Commenter is allowed to use '@User+blank' to automatically notify your reply to other commenter. e.g, if ABC is one of commenter of this post, then write '@ABC '(exclude ') will automatically send your comment to ABC. Using '@all ' to notify all previous commenters. Be sure that the value of User should exactly match with commenter's name (case sensitive).