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

    Leave a Reply to alpha080 Cancel 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).

    This site uses Akismet to reduce spam. Learn how your comment data is processed.