Show Menu
Cheatography

Submit packages to SUSE Package Hub Cheat Sheet (DRAFT) by

How to submit packages to SUSE Package Hub

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Targets

Default target for submitting packages:
openSU­SE:­Bac­kpo­rts­:SLE-12

Please use the following targets if default target doesn't provide depend­encies:
openSU­SE:­Bac­kpo­rts­:SL­E-1­2-SP1
or
openSU­SE:­Bac­kpo­rts­:SL­E-1­2-SP2

Submit a single package

Submitting package hello from project devel:­project to target openSU­SE:­Bac­kpo­rts­:SLE-12:

osc sr devel:­project hello openSU­SE:­Bac­kpo­rts­:SLE-12

Submit multiple packages

osc branch -M -N openSU­SE:­Bac­kpo­rts­:SL­E-1­2/n­ewp­ackage1
osc branch -M -N openSU­SE:­Bac­kpo­rts­:SL­E-1­2/n­ewp­ackage2
osc branch -M -N openSU­SE:­Bac­kpo­rts­:SL­E-1­2-/­new­pac­kage3
osc co home:<my­log­in>:branc­hes­:op­enS­USE­:Ba­ckp­ort­s:S­LE-12
osc copypac -e -K devel:­pro­jec­t/n­ewp­ackage1 home:<my­log­in>:branc­hes­:op­enS­USE­:Ba­ckp­ort­s:S­LE-­12/­new­pac­kag­e1.o­pe­nSU­SE_­Bac­kpo­rts­_SLE-12
osc copypac -e -K devel:­pro­jec­t/n­ewp­ackage2 home:<my­log­in>:branc­hes­:op­enS­USE­:Ba­ckp­ort­s:S­LE-­12/­new­pac­kag­e2.o­pe­nSU­SE_­Bac­kpo­rts­_SLE-12
osc copypac -e -K devel:­pro­jec­t/n­ewp­ackage3 home:<my­log­in>:branc­hes­:op­enS­USE­:Ba­ckp­ort­s:S­LE-­12/­new­pac­kag­e3.o­pe­nSU­SE_­Bac­kpo­rts­_SLE-12
cd home:<my­log­in>:branc­hes­:op­enS­USE­:Ba­ckp­ort­s:S­LE-12
osc mr

Branching existing package

Branching package hello which already exists in target openSU­SE:­Bac­kpo­rts­:SLE-12

osc branch openSU­SE:­Bac­kpo­rts­:SLE-12 hello