Home Wiki > openSUSE:OBS Light Installation
Sign up | Login

openSUSE:OBS Light Installation

tagline: From openSUSE


OBS Light

OBSLightWiki.png


Download for openSUSE:


Vendor: OBS Light
Developer: OBS Light Team
License: GPLv2
Web: OBS Light on Gitorious

OBS Light Installation (client)

Introduction

OBS Light project deliverable which are available are listed on this page. Publication of the information will follow the progress of the implementation (yes, we do publish early draft versions, using them is at your risk)

While the OBS Light client can be installed native or as an appliance the OBS Light Server is only available as an appliance.

You may want to add a Fake OBS to your OBS Light Client installation. While Fake OBS is installed by default with the OBS Light server, it remains an optional item with OBS Light Client (a Fake OBS server is easy to share between a development team).

Note:

  • You can install the stable version or head, avoid installing both, at the same time.

Stable Packaged versions

Packaged versions of the OBS Light client (still in development) are available for OpenSUSE, Ubuntu and Fedora.

OpenSUSE

There are 2 packages:

Note:

  • the main repository of opensuse oss, must be active,you can test your maiun repo with:
zypper  se -t pattern base > /dev/null || echo "No opensuse main repository."

For OpenSUSE 12.1

Add Virtualization repository, to get qemu-linux-user

sudo zypper ar -f http://download.opensuse.org/repositories/Virtualization:/openSUSE12.1/openSUSE_12.1/Virtualization:openSUSE12.1.repo

Add pyside repository:

sudo zypper ar -f http://download.opensuse.org/repositories/home:/Fisiu:/pyside/openSUSE_12.1/home:Fisiu:pyside.repo

Add Tizen tools repository, to get MIC

sudo zypper ar -f http://download.tizen.org/tools/latest-release/openSUSE_12.1/Tools.repo

To disable GPG checks for Tizen repo

sudo sed -i -r s,"gpgcheck=1","gpgcheck=0",  /etc/zypp/repos.d/Tools.repo

Add OBS Light repository

sudo zypper ar -f http://download.opensuse.org/repositories/devel:/OBS:/Light:/Stable/openSUSE_12.1/devel:OBS:Light:Stable.repo

For OpenSUSE 12.2

Add Virtualization repository, to get qemu-linux-user

sudo zypper ar http://download.opensuse.org/repositories/Virtualization/openSUSE_12.2/Virtualization.repo

Add Tizen tools repository, to get MIC

sudo zypper ar -f http://download.tizen.org/tools/pre-release/openSUSE_12.2/pre-release.repo

Add OBS Light repository

sudo zypper ar -f http://download.opensuse.org/repositories/devel:/OBS:/Light:/Stable/openSUSE_12.2/devel:OBS:Light:Stable.repo

optional, to disable GPG checks and prevent "File 'repomd.xml' from repository 'OBS_Light' is unsigned" messages

To install the GUI, you will need PySide:

sudo zypper ar -f http://download.opensuse.org/repositories/KDE:/Qt/openSUSE_12.2/KDE:Qt.repo

Install

Refresh package database

sudo zypper --gpg-auto-import-keys ref

Install OBS Light (without GUI)

sudo zypper in obslight

Note:

  • If you have a trouble, read the zypper outputstream, perhaps you'll need to downgrade some package.

Install OBS Light GUI.

sudo zypper --gpg-auto-import-keys ref
sudo zypper in obslight-gui

Ubuntu

There is only one package, obslight, which contains the commandline, the GUI and the utilities.

prep

Add yourself to the users group:

sudo usermod -a -G users `whoami`

You should log out so that the system takes into account your new group. If you don't want to log out, you can use "newgrp users" before running obslight (but it will only work in the current console).

Add the following line to your /etc/apt/sources.list file (or to a new file /etc/apt/sources.list.d/obslight.list):

sudo vim /etc/apt/sources.list

For Ubuntu 11.10

MIC, gbs, osc and dependencies:

#Tizen Tools
deb http://download.tizen.org/tools/latest-release/Ubuntu_11.10/ ./

OBS Light:

#OBS Light
deb http://download.opensuse.org/repositories/devel:/OBS:/Light:/Stable/xUbuntu_11.10/ ./

Save and close the file.

Add Key:

wget -O - http://download.opensuse.org/repositories/devel:/OBS:/Light:/Stable/xUbuntu_11.10/Release.key | sudo apt-key add -

For Ubuntu 12.04

MIC, gbs, osc and dependencies:

#Tizen Tools
deb http://download.tizen.org/tools/latest-release/Ubuntu_12.04/ ./

OBS Light

#OBS Light
deb http://download.opensuse.org/repositories/devel:/OBS:/Light:/Stable/xUbuntu_12.04/ ./

Save and close the file.

Add Key:

wget -O - http://download.opensuse.org/repositories/devel:/OBS:/Light:/Stable/xUbuntu_12.04/Release.key | sudo apt-key add -

install

You also need a recent version of PySide:

sudo apt-add-repository ppa:pyside/ppa

Refresh the APT database and install OBS Light:

sudo apt-get update
sudo apt-get install obslight

Fedora

Prep

# Add yourself to the "users" group
sudo usermod -a -G users `whoami`

You should log out so that the system takes into account your new group. If you don't want to log out, you can use "newgrp users" before running obslight (but it will only work in the current console).

There are 2 packages:

For Fedora 16

Add Tizen tools:

wget http://download.tizen.org/tools/latest-release/Fedora_16/Tools.repo -O /etc/yum.repos.d/Tizen_Tools.repo
sed -i -r s,"gpgcheck=1","gpgcheck=0", /etc/yum.repos.d/Tizen_Tools.repo

Execute the following commands to add OBS Light repository

sudo wget http://download.opensuse.org/repositories/devel:/OBS:/Light:/Stable/Fedora_16/devel:OBS:Light:Stable.repo -O /etc/yum.repos.d/Project_OBS_Light.repo

For Fedora 17

Add Tizen tools:

wget http://download.tizen.org/tools/latest-release/Fedora_17/Tools.repo -O /etc/yum.repos.d/Tizen_Tools.repo
sed -i -r s,"gpgcheck=1","gpgcheck=0", /etc/yum.repos.d/Tizen_Tools.repo

Execute the following commands to add OBS Light repository:

sudo wget http://download.opensuse.org/repositories/devel:/OBS:/Light:/Head/Fedora_17/devel:OBS:Light:Head.repo -O /etc/yum.repos.d/Project_OBS_Light.repo

Install

To disable GPG checks for all repo

sed -i -r s,"gpgcheck=1","gpgcheck=0", /etc/yum.repos.d/Project_OBS_Light.repo

Update repository cache

sudo yum makecache

Install OBS Light

sudo yum install obslight obslight-gui

Test Packaged versions

OpenSUSE

There are 2 packages:

For OpenSUSE 12.1

Add Virtualization repository, to get qemu-linux-user

sudo zypper ar -f http://download.opensuse.org/repositories/Virtualization:/openSUSE12.1/openSUSE_12.1/Virtualization:openSUSE12.1.repo

Add pyside repository:

sudo zypper ar -f http://download.opensuse.org/repositories/home:/Fisiu:/pyside/openSUSE_12.1/home:Fisiu:pyside.repo

Add Tizen tools repository, to get MIC

sudo zypper ar -f http://download.tizen.org/tools/pre-release/openSUSE_12.1/pre-release.repo

To disable GPG checks for Tizen repo

sudo sed -i -r s,"gpgcheck=1","gpgcheck=0",  /etc/zypp/repos.d/pre-release.repo

Add OBS Light repository

sudo zypper ar -f http://download.opensuse.org/repositories/devel:/OBS:/Light:/Head/openSUSE_12.1/devel:OBS:Light:Head.repo

For OpenSUSE 12.2

Add Tizen tools repository, to get MIC

sudo zypper ar -f http://download.tizen.org/tools/pre-release/openSUSE_12.2/pre-release.repo

Add Virtualization repository, to get qemu-linux-user

sudo zypper ar http://download.opensuse.org/repositories/Virtualization/openSUSE_12.2/Virtualization.repo

Add KDE repository:

sudo zypper ar -f http://download.opensuse.org/repositories/KDE:/Qt/openSUSE_12.2/KDE:Qt.repo

Add OBS Light repository

sudo zypper ar -f http://download.opensuse.org/repositories/devel:/OBS:/Light:/Head/openSUSE_12.2/devel:OBS:Light:Head.repo

optional, to disable GPG checks and prevent "File 'repomd.xml' from repository 'OBS_Light' is unsigned" messages

Install

Refresh package database

sudo zypper --gpg-auto-import-keys ref

Install OBS Light (without GUI)

sudo zypper in obslight

To install the GUI, you will need PySide:

sudo zypper --gpg-auto-import-keys ref
sudo zypper in obslight-gui

Ubuntu

There is only one package, obslight, which contains the commandline, the GUI and the utilities.

prep

Add yourself to the users group:

sudo usermod -a -G users `whoami`

You should log out so that the system takes into account your new group. If you don't want to log out, you can use "newgrp users" before running obslight (but it will only work in the current console).

Add the following line to your /etc/apt/sources.list file (or to a new file /etc/apt/sources.list.d/obslight.list):

For Ubuntu 11.10

MIC and dependencies

deb http://download.tizen.org/tools/pre-release/Ubuntu_11.10/ ./

OBS Light

deb http://download.opensuse.org/repositories/devel:/OBS:/Light:/Head/xUbuntu_11.10/ ./

Save and close the file.

Add Key:

wget -O - http://download.opensuse.org/repositories/devel:/OBS:/Light:/Head/xUbuntu_11.10/Release.key | sudo apt-key add -

For Ubuntu 12.04

MIC and dependencies

deb http://download.tizen.org/tools/latest-release/Ubuntu_12.04/ ./

OBS Light

deb http://download.opensuse.org/repositories/devel:/OBS:/Light:/Head/xUbuntu_12.04/ ./

Save and close the file.

Add Key:

wget -O - http://download.opensuse.org/repositories/devel:/OBS:/Light:/Head/xUbuntu_12.04/Release.key | sudo apt-key add -

install

You also need a recent version of PySide:

sudo apt-add-repository ppa:pyside/ppa

Refresh the APT database and install OBS Light:

sudo apt-get update
sudo apt-get install obslight

Fedora

Prep

# Add yourself to the "users" group
sudo usermod -a -G users `whoami`

You should log out so that the system takes into account your new group. If you don't want to log out, you can use "newgrp users" before running obslight (but it will only work in the current console).

There are 2 packages:

For Fedora 16

Add Tizen tools:

wget http://download.tizen.org/tools/pre-release/Fedora_16/pre-release.repo -O /etc/yum.repos.d/Tizen_Tools.repo
sed -i -r s,"gpgcheck=1","gpgcheck=0", /etc/yum.repos.d/Tizen_Tools.repo

Execute the following commands to add OBS Light repository

sudo wget http://download.opensuse.org/repositories/devel:/OBS:/Light:/Head/Fedora_16/devel:OBS:Light:Head.repo -O /etc/yum.repos.d/Project_OBS_Light.repo

For Fedora 17

Add Tizen tools:

wget http://download.tizen.org/tools/pre-release/Fedora_17/pre-release.repo -O /etc/yum.repos.d/Tizen_Tools.repo
sed -i -r s,"gpgcheck=1","gpgcheck=0", /etc/yum.repos.d/Tizen_Tools.repo

Execute the following commands to add OBS Light repository:

sudo wget http://download.opensuse.org/repositories/devel:/OBS:/Light:/Stable/Fedora_17/devel:OBS:Light:Stable.repo -O /etc/yum.repos.d/Project_OBS_Light.repo

Install

To disable GPG checks for all repo

sed -i -r s,"gpgcheck=1","gpgcheck=0", /etc/yum.repos.d/Project_OBS_Light.repo

Update repository cache

sudo yum makecache

Install OBS Light

sudo yum install obslight obslight-gui

Usage

To get a brief overview of all available commands, just type:

obslight --help


OBS Tagging and Project copying

One of the problem that any user of a private OBS will quickly face, is the need to tag specific version of a project and allow the copy of the project from an OBS to an other OBS or from one project to an other project.

More details on obstag and obs2obscopy can be found here

Building packages without an OBS server, using FakeOBS

If you just want to build packages locally, from a fixed release of MeeGo or Tizen, without a real OBS server, you may be interested by FakeOBS.

Migration from old versions

OBS Light < 0.4.22

Starting from OBS Light 0.4.22, MIC and its dependencies won't be maintained in OBS Light's repositories anymore. You will have to add official MIC repository to get MIC dependencies. Just remove the old repository and follow the appropriate procedure. Fedora users can keep using old repositories.

openSUSE 11.4

sudo zypper rr Project_OBS_Light

and #For OpenSUSE 11.4

openSUSE 12.1

sudo zypper rr Project_OBS_Light_openSUSE_12.1

and #For_OpenSUSE_12.1

Ubuntu

sudo rm /etc/apt/sources.list.d/obslight.list

and #For Ubuntu.

OBS Light appliance < 0.4.52

If you are using OBS Light appliance older than 0.4.52, and you don't want to download the latest version, you can update it doing the following:

# Remove old openSUSE 12.1 specific OBS Light repository
sudo zypper rr Project_OBS_Light_openSUSE_12.1
# Add Tizen Tools and OBS Light repositories
sudo zypper ar -f http://download.meego.com/live/devel:/tools:/building/openSUSE12.1/ tizen_tools
sudo zypper ar -f http://repo.pub.meego.com/Project:/OBS_Light/openSUSE_12.1/Project:OBS_Light.repo
# Refresh package database
sudo zypper --gpg-auto-import-keys ref
# Update MIC and OBS Light
sudo zypper up mic obslight obslight-gui

(same procedure as for openSUSE 12.1)

About dependencies

OBS Light versions <= 0.5.3 have a hard dependency on MIC. But MIC is not available on all software platforms, and it has many dependencies. New versions of OBS Light (> 0.5.3) will have a soft dependency on MIC, so they can be installed on more platforms, but will loose the possibility to edit Kickstart files and build images on platforms where MIC is not available.

Links