table of contents
OSC(1) | User Commands | OSC(1) |
NAME¶
osc - openSUSE build service command-line tool.SYNOPSIS¶
osc [ GLOBALOPTS] SUBCOMMAND [OPTS] [ARGS...]DESCRIPTION¶
openSUSE build service command-line tool.COMMANDS¶
- abortbuild
- Aborts the build of a certain project or package
osc abortbuild [PROJECT [PACKAGE [REPOSITORY [ARCH]]]] Options:
-h, --help show this help message and exit
--all Abort all running builds of entire project
-r REPO, --repo=REPO
Abort builds for a specific repository
-a ARCH, --arch=ARCH
Abort builds for a specific architecture
- add
- Mark files to be added upon the next commit
osc add URL [URL...]
osc add FILE [FILE...]
- addremove (ar)
- Adds new files, removes disappeared files
osc addremove [ARGS...]
-h, --help show this help message and exit
-r, --recursive
If CWD is a project dir then scan all package dirs as
well
- aggregatepac
- "Aggregate" a package to another package
osc aggregatepac SOURCEPRJ SOURCEPAC DESTPRJ [DESTPAC] Options:
-h, --help show this help message and exit
-d, --disable-publish
disable publishing of the aggregated package
-m SRC=TARGET[,SRC=TARGET], --map-repo=SRC=TARGET[,SRC=TARGET]
Allows repository mapping(s) to be given as
SRC=TARGET[,SRC=TARGET]
--nosources
ignore source packages when copying build results to
destination project
- api
- Issue an arbitrary request to the API
osc api /source/home:user
osc api -X PUT -T /etc/fstab source/home:user/test5/myfstab
osc api URL
-h, --help show this help message and exit
-a NAME STRING, --add-header=NAME STRING
add the specified header to the request
-T FILE, -f FILE, --file=FILE
specify filename to upload, uses PUT mode by default
-d STRING, --data=STRING
specify string data for e.g. POST
-X HTTP_METHOD, -m HTTP_METHOD, --method=HTTP_METHOD
specify HTTP method to use (GET|PUT|DELETE|POST)
- branch (bco, branchco, getpac)
- Branch a package
home:USERNAME:branches:PROJECT/PACKAGE if nothing else specified.
openSUSE:Factory (list of projects from oscrc:getpac_default_project) if nothing else is specfied on the command line.
osc branch
osc branch SOURCEPROJECT SOURCEPACKAGE
osc branch SOURCEPROJECT SOURCEPACKAGE TARGETPROJECT
osc branch SOURCEPROJECT SOURCEPACKAGE TARGETPROJECT TARGETPACKAGE
osc getpac SOURCEPACKAGE
osc bco ... Options:
-h, --help show this help message and exit
-r rev, --revision=rev
branch against a specific revision
-N, --new-package
create a branch pointing to a not yet existing package
-M, --maintenance
Create project and package in maintenance mode
-m TEXT, --message=TEXT
specify message TEXT
--noaccess Create a hidden project
--extend-package-names
Extend packages names with project name as suffix
--add-repositories
Add repositories to target project (happens by default
when project is new)
-f, --force
force branch, overwrite target
-c, --checkout
Checkout branched package afterwards using "co -e
-S"('osc bco' is a shorthand for this option)
--nodevelproject
do not follow a defined devel project (primary project
where a package is developed)
- bugowner
- Show bugowners of a project/package
osc bugowner PRJ
osc bugowner PRJ PKG
Shortcut for osc maintainer -B [PRJ] PKG
-h, --help show this help message and exit
-e, --email
show email addresses instead of user names
--nodevelproject
do not follow a defined devel project (primary project
where a package is developed)
-v, --verbose
show more information
- build
- Build a package on your local machine
osc build [OPTS] --alternative-project openSUSE:10.3 standard i586 BUILD_DESCR
osc build [OPTS] REPOSITORY ARCH BUILD_DESCR
osc build [OPTS] REPOSITORY ARCH
osc build [OPTS] REPOSITORY (ARCH = hostarch, BUILD_DESCR is detected automatically)
osc build [OPTS] ARCH (REPOSITORY = build_repository (config option), BUILD_DESCR is detected automatically)
osc build [OPTS] BUILD_DESCR (REPOSITORY = build_repository (config option), ARCH = hostarch)
osc build [OPTS] (REPOSITORY = build_repository (config option), ARCH = hostarch, BUILD_DESCR is detected automatically)
-h, --help show this help message and exit
--oldpackages=DIR
take previous build from DIR (special values: _self,
_link)
--disable-cpio-bulk-download
disable downloading packages as cpio archive from api
--release=N
set release number of the package to N
-b, --baselibs
Create -32bit/-64bit/-x86 rpms for other architectures
--disable-debuginfo
disable build of debuginfo packages
-d, --debuginfo
also build debuginfo sub-packages
--alternative-project=PROJECT
specify the build target project
--vm-type=TYPE
use VM type TYPE (e.g. kvm)
--linksources
use hard links instead of a deep copied source
--local-package
build a package which does not exist on the server
--build-uid=uid:gid|"caller"
specify the numeric uid:gid pair to assign to the
unprivileged "abuild" user or use "caller" to use the
current user uid:gid
--userootforbuild
Run build as root. The default is to build as
unprivileged user. Note that a line "# norootforbuild"
in the spec file will invalidate this option.
--define='X Y'
define macro X with value Y
--without=X
disable feature X for build
--with=X enable feature X for build
--ccache use ccache to speed up rebuilds
--icecream=N
use N parallel build jobs with icecream
-j N, --jobs=N
Compile with N jobs
--root=ROOT
Build in specified directory
-x PAC, --extra-pkgs=PAC
Add this package when installing the build-root
-k DIR, --keep-pkgs=DIR
Save built packages into this directory
-p DIR, --prefer-pkgs=DIR
Prefer packages from this directory when installing
the build-root
--noservice, --no-service
Skip run of local source services as specified in
_service file.
--no-verify
Skip signature verification of packages used for
build. (Global config in .oscrc: no_verify)
--nochecks, --no-checks
Do not run post build checks on the resulting
packages.
--noinit, --no-init
Skip initialization of build root and start with build
immediately.
--overlay=OVERLAY
Copy overlay filesystem to buildroot after installing
all RPMs .
--rsync-dest=RSYNCDESTPATH
Copy folder to buildroot after installing all RPMs.
Use together with --rsync-src. This is the path on the
TARGET filesystem e.g.
/usr/src/packages/BUILD/linux-2.6 .
--rsync-src=RSYNCSRCPATH
Copy folder to buildroot after installing all RPMs.
Use together with --rsync-dest. This is the path on
the HOST filesystem e.g. /tmp/linux-kernel-tree. It
defines RSYNCDONE 1 .
--no-changelog
don't update the package changelog from a changes file
-l, --preload
Preload all files into the cache for offline operation
-o, --offline
Start with cached prjconf and packages without
contacting the api server
--clean Delete old build root before initializing it
- buildconfig
- Shows the build config
'osc repos' output.
osc buildconfig REPOSITORY (in pkg or prj dir)
osc buildconfig PROJECT REPOSITORY
- buildhistory (buildhist)
- Shows the build history of a package
osc buildhist REPOSITORY ARCHITECTURE
osc buildhist PROJECT PACKAGE REPOSITORY ARCHITECTURE Options:
-h, --help show this help message and exit
--csv generate output in CSV (separated by |)
- buildinfo
- Shows the build info
in a package working copy:
osc buildinfo [OPTS] REPOSITORY ARCH BUILD_DESCR
osc buildinfo [OPTS] REPOSITORY (ARCH = hostarch, BUILD_DESCR is detected automatically)
osc buildinfo [OPTS] ARCH (REPOSITORY = build_repository (config option), BUILD_DESCR is detected automatically)
osc buildinfo [OPTS] BUILD_DESCR (REPOSITORY = build_repository (config option), ARCH = hostarch)
osc buildinfo [OPTS] (REPOSITORY = build_repository (config option), ARCH = hostarch, BUILD_DESCR is detected automatically)
Note: if BUILD_DESCR does not exist locally the remote BUILD_DESCR is used
osc buildinfo [OPTS] PROJECT PACKAGE REPOSITORY ARCH [BUILD_DESCR]
-h, --help show this help message and exit
-p DIR, --prefer-pkgs=DIR
Prefer packages from this directory when installing
the build-root
-x PAC, --extra-pkgs=PAC
Add this package when computing the buildinfo
- buildlog (bl, blt, buildlogtail)
- Shows the build log of a package
osc buildlog [ARGS...]
-h, --help show this help message and exit
-o OFFSET, --offset=OFFSET
get log start or end from the offset
- cat (less)
- Output the content of a file to standard output
osc cat project package file
osc cat project/package/file
osc cat http://api.opensuse.org/build/.../_log
osc cat http://api.opensuse.org/source/../_link
osc cat [ARGS...]
-h, --help show this help message and exit
-M, --meta list meta data files
-u, --unexpand
always work with unexpanded packages.
-e, --expand
force expansion of linked packages.
-r rev, --revision=rev
print out the specified revision
- changedevelrequest (changedevelreq, cr)
- Create request to change the devel package definition.
- checkout (co)
- Check out content from the repository
osc co PROJECT [PACKAGE] [FILE]
osc co PROJECT # entire project
osc co PROJECT PACKAGE # a package
osc co PROJECT PACKAGE FILE # single file -> to current dir
while inside a project directory:
osc co PACKAGE # check out PACKAGE from project
with the result of rpm -q --qf '%{DISTURL}0 PACKAGE
osc co obs://API/PROJECT/PLATFORM/REVISION-PACKAGE
-h, --help show this help message and exit
-l limit_size, --limit-size=limit_size
Skip all files with a given size
-S, --server-side-source-service-files
Use server side generated sources instead of local
generation.
-s, --source-service-files
Run source services.
-o outdir, --output-dir=outdir
place package in the specified directoryinstead of a
PROJECT/PACKAGE directory
-c, --current-dir
place PACKAGE folder in the current directoryinstead
of a PROJECT/PACKAGE directory
-M, --meta checkout out meta data instead of sources
-u, --unexpand-link
if a package is a link, check out the _link file
instead of the expanded sources
-e, --expand-link
if a package is a link, check out the expanded sources
(no-op, since this became the default)
-r rev, --revision=rev
checkout the specified revision. NOTE: if you checkout
the complete project this option is ignored!
- chroot
- chroot into the buildchroot
osc chroot [OPTS] REPOSITORY ARCH BUILD_DESCR
osc chroot [OPTS] REPOSITORY (ARCH = hostarch, BUILD_DESCR is detected automatically)
osc chroot [OPTS] ARCH (REPOSITORY = build_repository (config option), BUILD_DESCR is detected automatically)
osc chroot [OPTS] BUILD_DESCR (REPOSITORY = build_repository (config option), ARCH = hostarch)
osc chroot [OPTS] (REPOSITORY = build_repository (config option), ARCH = hostarch, BUILD_DESCR is detected automatically) Options:
-h, --help show this help message and exit
-o, --offline
Use cached data without contacting the api server
-r, --root login as root instead of abuild
--noinit, --no-init
do not guess/verify specified repository
--alternative-project=PROJECT
specify the used build target project
--local-package
package doesn't exist on the server
- commit (checkin, ci)
- Upload content to the repository server
osc ci # current dir
osc ci <dir>
osc ci file1 file2 ...
osc commit [ARGS...]
-h, --help show this help message and exit
--skip-local-service-run, --noservice
Skip service run of configured source services for
local run
-v, --verbose
Run the source services with verbose information
--skip-validation
deprecated, don't use it
-f, --force
ignored
-F FILE, --file=FILE
read log message from FILE, '-' denotes standard
input.
-m TEXT, --message=TEXT
specify log message TEXT
- config
- get/set a config option
osc config section option (get current value)
osc config section option value (set to value)
osc config section option --delete (delete option/reset to the default)
(section is either an apiurl or an alias or 'general')
osc config --dump (dump the complete configuration)
osc config [ARGS...]
-h, --help show this help message and exit
--dump-full
dump the complete configuration (including 'pass' and
'passx' options)
--dump dump the complete configuration (without 'pass' and
'passx' options)
--no-echo prompt for a value but do not echo entered characters
-p, --prompt
prompt for a value
-s, --stdin
indicates that the config value should be read from
stdin
-d, --delete
delete option from config or reset option to the
default)
- copypac
- Copy a package
osc copypac SOURCEPRJ SOURCEPAC DESTPRJ [DESTPAC] Options:
-h, --help show this help message and exit
-e, --expand
if the source package is a link then copy the expanded
version of the link
-m TEXT, --message=TEXT
specify message TEXT
-t URL, --to-apiurl=URL
URL of destination api server. Default is the source
api server.
-r rev, --revision=rev
link the specified revision.
-d, --keep-develproject
keep develproject tag in the package metadata
-K, --keep-link
keep the source link in target, this also expands the
source
-k, --keep-maintainers
keep original maintainers. Default is remove all and
replace with the one calling the script.
-c, --client-side-copy
do a (slower) client-side copy
- createincident
- Create a maintenance incident
osc createincident [ MAINTENANCEPROJECT ] Options:
-h, --help show this help message and exit
-m TEXT, --message=TEXT
specify message TEXT
--noaccess Create a hidden project
-a ATTRIBUTE, --attribute=ATTRIBUTE
Use this attribute to find default maintenance project
(default is OBS:MaintenanceProject)
- createrequest (creq)
- create multiple requests with a single command
osc creq [OPTIONS] [
-a submit SOURCEPRJ SOURCEPKG DESTPRJ [DESTPKG]
-a delete PROJECT [PACKAGE]
-a change_devel PROJECT PACKAGE DEVEL_PROJECT [DEVEL_PACKAGE]
-a add_me ROLE PROJECT [PACKAGE]
-a add_group GROUP ROLE PROJECT [PACKAGE]
-a add_role USER ROLE PROJECT [PACKAGE]
-a set_bugowner USER PROJECT [PACKAGE]
]
Option -m works for all types of request, the rest work only for submit. example:
osc creq -a submit -a delete home:someone:branches:openSUSE:Tools -a change_devel openSUSE:Tools osc home:someone:branches:openSUSE:Tools -m ok
This will submit all modified packages under current directory, delete project home:someone:branches:openSUSE:Tools and change the devel project to home:someone:branches:openSUSE:Tools for package osc in project openSUSE:Tools. Options:
-h, --help show this help message and exit
--yes proceed without asking.
-d, --diff show diff only instead of creating the actual request
--no-update
never touch source package on accept (will break
source links)
--no-cleanup
never remove source package on accept, but update its
content
--cleanup remove package if submission gets accepted (default
for home:<id>:branch projects)
--nodevelproject
do not follow a defined devel project (primary project
where a package is developed)
-s SUPERSEDE, --supersede=SUPERSEDE
Superseding another request by this one
-r REV, --revision=REV
for "create", specify a certain source revision ID
(the md5 sum)
-m TEXT, --message=TEXT
specify message TEXT
-a, --action
specify action type of a request, can be :
submit/delete/change_devel/add_role/set_bugowner
- delete (del, remove, rm)
- Mark files or package directories to be deleted upon the
next 'checkin'
cd .../PROJECT/PACKAGE
osc delete FILE [...]
cd .../PROJECT
osc delete PACKAGE [...]
-h, --help show this help message and exit
-f, --force
forces removal of entire package and its files
- deleterequest (deletereq, dr, dropreq, droprequest)
- Request to delete (or 'drop') a package or project
osc deletereq [-m TEXT] # works in checked out project/package
osc deletereq [-m TEXT] PROJECT [PACKAGE] Options:
-h, --help show this help message and exit
-m TEXT, --message=TEXT
specify message TEXT
- dependson (whatdependson)
- Show the build dependencies
refer the buildinfo, since this command shows only the dependencies
inside of a project.
osc dependson REPOSITORY ARCH
osc whatdependson REPOSITORY ARCH
osc dependson PROJECT [PACKAGE] REPOSITORY ARCH
osc whatdependson PROJECT [PACKAGE] REPOSITORY ARCH
- detachbranch
- replace a link with its expanded sources
osc detachbranch # can be used in package working copy
osc detachbranch PROJECT PACKAGE Options:
-h, --help show this help message and exit
-m TEXT, --message=TEXT
specify message TEXT
- develproject (bsdevelproject)
- print the bsdevelproject of a package
osc develproject PRJ PKG
osc develproject Options:
-h, --help show this help message and exit
-r, --raw print raw xml snippet
- diff (di, ldiff, linkdiff)
- Generates a diff
osc diff [ARGS...]
ARG, if specified, is a filename to include in the diff.
Default: all files.
osc diff --link
osc linkdiff
Compare current checkout directory against the link base.
osc diff --link PROJ PACK
osc linkdiff PROJ PACK
Compare a package against the link base (ignoring working copy changes).
-h, --help show this help message and exit
--missingok
do not fail if the source or target project/package
does not exist on the server
-l, --link (osc linkdiff): compare against the base revision of
the link
-p, --plain
output the diff in plain (not unified) diff format
-r rev1[:rev2], --revision=rev1[:rev2]
If rev1 is specified it will compare your working copy
against the revision (rev1) on the server. If rev1 and
rev2 are specified it will compare rev1 against rev2
(NOTE: changes in your working copy are ignored in
this case)
-c rev, --change=rev
the change made by revision rev (like -r rev-1:rev).If
rev is negative this is like -r rev:rev-1.
- distributions (dists)
- Shows all available distributions
osc distributions
- getbinaries
- Download binaries to a local directory
osc getbinaries REPOSITORY # works in checked out project/package (check out all archs in subdirs)
osc getbinaries REPOSITORY ARCHITECTURE # works in checked out project/package
osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE Options:
-h, --help show this help message and exit
--debug also fetch debug packages
--sources also fetch source packages
-d DIR, --destdir=DIR
destination directory
-q, --quiet
do not show downloading progress
- help (?, h)
- give detailed help on a specific sub-command
osc help [SUBCOMMAND]
- importsrcpkg
- Import a new package from a src.rpm
osc importsrcpkg SRPM
-h, --help show this help message and exit
-c, --commit
commit the new files
--delete-old-files
delete existing files from the server
-d description, --description=description
set the description of the package
-t title, --title=title
set a title
-n name, --name=name
specify a package name
-p project, --project=project
specify the path to a project
- info
- Print information about a working copy
osc info [ARGS...]
- init
- Initialize a directory as working copy
osc init PRJ
osc init PRJ PAC
- jobhistory (jobhist)
- Shows the job history of a project
osc jobhist REPOSITORY ARCHITECTURE (in project dir)
osc jobhist PROJECT [PACKAGE] REPOSITORY ARCHITECTURE Options:
-h, --help show this help message and exit
-l limit, --limit=limit
for setting the number of results
--csv generate output in CSV (separated by |)
- linkpac
- "Link" a package to another package
command. A branch has correct repositories (and a link) setup up by default and
will be cleaned up automatically after it was submitted back.
osc linkpac SOURCEPRJ SOURCEPAC DESTPRJ [DESTPAC] Options:
-h, --help show this help message and exit
-N, --new-package
create a link to a not yet existing package
-d, --disable-publish
disable publishing of the linked package
-f, --force
overwrite an existing link file if it is there.
-r rev, --revision=rev
link the specified revision.
-c, --current
link fixed against current revision.
-C CICOUNT, --cicount=CICOUNT
cicount attribute in the link, known values are add,
copy, and local, default in buildservice is currently
add.
- linktobranch
- Convert a package containing a classic link with patch to a
branch
osc linktobranch # can be used in checked out package
osc linktobranch PROJECT PACKAGE
- list (LL, lL, ll, ls)
- List sources or binaries on the server
ls # list all projects (deprecated)
ls / # list all projects
ls . # take PROJECT/PACKAGE from current dir.
ls PROJECT # list packages in a project
ls PROJECT PACKAGE # list source files of package of a project
ls PROJECT PACKAGE <file> # list <file> if this file exists
ls -v PROJECT PACKAGE # verbosely list source files of package
ls -l PROJECT PACKAGE # verbosely list source files of package
ll PROJECT PACKAGE # verbosely list source files of package
LL PROJECT PACKAGE # verbosely list source files of expanded link
MD5 hash of file
Revision number of the last commit
Size (in bytes)
Date and time of the last commit
ls -b PROJECT # list all binaries of a project
ls -b PROJECT -a ARCH # list ARCH binaries of a project
ls -b PROJECT -r REPO # list binaries in REPO
ls -b PROJECT PACKAGE REPO ARCH
list (LL, lL, ll, ls) [PROJECT [PACKAGE]]
list (LL, lL, ll, ls) -b [PROJECT [PACKAGE [REPO [ARCH]]]] Options:
-h, --help show this help message and exit
-R REVISION, --revision=REVISION
specify revision (only for sources)
-M, --meta list meta data files
-D, --deleted
show only the former deleted projects or packages
-l, --long print extra information
-v, --verbose
print extra information
-u, --unexpand
always work with unexpanded (source) packages
-e, --expand
expand linked package (only for sources)
-b, --binaries
list built binaries instead of sources
-r REPO, --repo=REPO
specify repository (only for binaries)
-a ARCH, --arch=ARCH
specify architecture (only for binaries)
- localbuildlog (lbl)
- Shows the build log of a local buildchroot
osc lbl [REPOSITORY ARCH]
osc lbl # show log of newest last local build
-h, --help show this help message and exit
-o OFFSET, --offset=OFFSET
get log starting from offset
- log
- Shows the commit log of a package
osc log (inside working copy)
osc log remote_project [remote_package]
-h, --help show this help message and exit
-M, --meta checkout out meta data instead of sources
-D, --deleted
work on deleted package
--xml generate output in XML
--csv generate output in CSV (separated by |)
-r rev, --revision=rev
show log of the specified revision
- maintainer
- Show maintainers of a project/package
osc maintainer PRJ <options>
osc maintainer PRJ PKG <options>
osc maintainer [ARGS...]
-h, --help show this help message and exit
-r role, --role=role
Specify user role
-d user, --delete=user
delete a maintainer/bugowner (can be specified via
--role)
-a user, --add=user
add a new maintainer/bugowner (can be specified via
--role)
-D devel_project, --devel-project=devel_project
define the project where this package is primarily
developed
-v, --verbose
show more information
--nodevelproject
do not follow a defined devel project (primary project
where a package is developed)
-e, --email
show email addresses instead of user names
-B, --bugowner
Show only the bugowner if defined, or maintainer
otherwise
-b, --bugowner-only
Show only the bugowner
- maintenancerequest (mr)
- Create a request for starting a maintenance incident.
osc maintenancerequest [ SOURCEPROJECT [ SOURCEPACKAGES RELEASEPROJECT ] ] Options:
-h, --help show this help message and exit
--incident-project=INCIDENT_PROJECT
specify incident project to merge in
--incident=INCIDENT
specify incident number to merge in
--no-cleanup
do not remove source project on accept
-m TEXT, --message=TEXT
specify message TEXT
-a ATTRIBUTE, --attribute=ATTRIBUTE
Use this attribute to find default maintenance project
(default is OBS:MaintenanceProject)
- man
- generates a man page
osc man
- mbranch (maintained, sm)
- Search or banch multiple instances of a package
home:USERNAME:branches:ATTRIBUTE:PACKAGE if nothing else specified.
osc sm [SOURCEPACKAGE] [-a ATTRIBUTE]
osc mbranch [ SOURCEPACKAGE [ TARGETPROJECT ] ] Options:
-h, --help show this help message and exit
--nodevelproject
do not follow a defined devel project (primary project
where a package is developed)
--noaccess Create a hidden project
--dryrun Just simulate the action and report back the result.
-u UPDATE_ATTRIBUTE, --update-project-attribute=UPDATE_ATTRIBUTE
Use this attribute to find update projects (default is
OBS:UpdateProject)
-a ATTRIBUTE, --attribute=ATTRIBUTE
Use this attribute to find affected packages (default
is OBS:Maintained)
-c, --checkout
Checkout branched package afterwards ('osc bco' is a
shorthand for this option)
- meta
- Show meta information, or edit it
osc meta prj PRJ
osc meta pkg PRJ PKG
osc meta pkg PRJ PKG -e
osc meta attribute PRJ [PKG [SUBPACKAGE]] [--attribute ATTRIBUTE] [--create|--delete|--set [value_list]]
osc meta <prj|pkg|prjconf|user|pattern|attribute> ARGS...
osc meta <prj|pkg|prjconf|user|pattern|attribute> -e|--edit ARGS...
osc meta <prj|pkg|prjconf|user|pattern|attribute> -F|--file ARGS...
osc meta pattern --delete PRJ PATTERN Options:
-h, --help show this help message and exit
--delete delete a pattern or attribute
-s ATTRIBUTE_VALUES, --set=ATTRIBUTE_VALUES
set attribute values
-c, --create
create attribute without values
-e, --edit edit metadata
-F FILE, --file=FILE
read metadata from FILE, instead of opening an editor.
'-' denotes standard input.
-f, --force
force the save operation, allows one to ignores some
errors like depending repositories. For prj meta only.
--attribute-project
include project values, if missing in packages
--attribute-defaults
include defined attribute defaults
-a ATTRIBUTE, --attribute=ATTRIBUTE
affect only a given attribute
- mkpac
- Create a new package under version control
osc mkpac new_package
- mv
- Move SOURCE file to DEST and keep it under version control
osc mv SOURCE DEST
-h, --help show this help message and exit
-f, --force
forces removal of entire package and its files
- my
- show waiting work, packages, projects or requests involving
yourself
Examples:
# list all tasks where it is expected to work on
osc my [work]
# list packages where I am bugowner
osc my pkg -b
# list projects where I am maintainer
osc my prj -m
# list request for all my projects and packages
osc my rq
# list requests, excluding project 'foo' and 'bar'
osc my rq --exclude-project foo,bar
# list submitrequests I made
osc my sr
osc my [ARGS...]
where TYPE is one of requests, submitrequests,
projects or packages (rq, sr, prj or pkg)
Options:
-h, --help
show this help message and exit
--maintained
limit search results to packages with maintained
attribute set.
-v, --verbose
verbose listing
--exclude-project=EXCLUDE_PROJECT
exclude requests for specified project
-U USER, --user=USER
search for USER instead of yourself
-a, --all
all involvements
-m, --maintainer
restrict listing to items where the user is maintainer
-b, --bugowner
restrict listing to items where the user is bugowner
- patchinfo
- Generate and edit a patchinfo file.
osc patchinfo
osc patchinfo [PROJECT [PATCH_NAME]] Options:
-h, --help show this help message and exit
-f, --force
force generation of new patchinfo file, do not update
existing one.
- pdiff
- Quick alias to diff the content of a package with its
parent.
osc pdiff [--plain|-p] [--nomissing-ok|-n]
osc pdiff [--plain|-p] [--nomissing-ok|-n] PKG
osc pdiff [--plain|-p] [--nomissing-ok|-n] PRJ PKG
-h, --help show this help message and exit
-n, --nomissingok
fail if the parent package does not exist on the
server
-p, --plain
output the diff in plain (not unified) diff format
- prjresults (pr)
- Shows project-wide build results
osc prjresults (inside working copy)
osc prjresults PROJECT
-h, --help show this help message and exit
--show-excluded
show packages that are excluded in all repos, also
hide repos that have only excluded packages
-V, --vertical
list packages vertically instead horizontally
-r REPO, --repo=REPO
show results only for specified repo(s)
-a ARCH, --arch=ARCH
show results only for specified architecture(s)
-n EXPR, --name-filter=EXPR
show only packages whose names match EXPR
-s STATUS, --status-filter=STATUS
show only packages with buildstatus STATUS (see
legend)
-c, --csv csv output
-q, --hide-legend
hide the legend
- pull
- merge the changes of the link target into your working
copy.
- rdelete
- Delete a project or packages on the server.
osc rdelete [-r] [-f] PROJECT [PACKAGE]
-h, --help show this help message and exit
-m TEXT, --message=TEXT
specify log message TEXT
-f, --force
deletes a project where other depends on
-r, --recursive
deletes a project with packages inside
- rdiff
- Server-side "pretty" diff of two packages
osc rdiff OLDPRJ OLDPAC NEWPRJ [NEWPAC]
osc rdiff PROJECT PACKAGE Options:
-h, --help show this help message and exit
-u, --unexpand
diff unexpanded version if sources are linked
--missingok
do not fail if the source or target project/package
does not exist on the server
-c rev, --change=rev
the change made by revision rev (like -r rev-1:rev).
If rev is negative this is like -r rev:rev-1.
-p, --plain
output the diff in plain (not unified) diff format
-r N[:M], --revision=N[:M]
revision id, where N = old revision and M = new
revision
-M, --meta diff meta data
--oldpkg=OLDPKG
package to compare against (deprecated, use 3 argument
form)
--oldprj=OLDPRJ
project to compare against (deprecated, use 3 argument
form)
- rebuild (rebuildpac)
- Trigger package rebuilds
osc rebuild [PROJECT [PACKAGE [REPOSITORY [ARCH]]]] Options:
-h, --help show this help message and exit
--all Rebuild all packages of entire project
-f, --failed
rebuild all failed packages
-r REPO, --repo=REPO
trigger rebuilds for a specific repository
-a ARCH, --arch=ARCH
trigger rebuilds for a specific architecture
- releaserequest
- Create a request for releasing a maintenance update.
for information on this topic.]
osc releaserequest [ SOURCEPROJECT ]
-h, --help show this help message and exit
-m TEXT, --message=TEXT
specify message TEXT
- remotebuildlog (rbl, rblt, rbuildlog, rbuildlogtail, remotebuildlogtail)
- Shows the build log of a package
osc remotebuildlog project package repository arch
or
osc remotebuildlog project/package/repository/arch
or
osc remotebuildlog buildlogurl Options:
-h, --help show this help message and exit
-o OFFSET, --offset=OFFSET
get log starting or ending from the offset
- repairlink
- Repair a broken source link
osc repairlink
osc repairlink PROJECT PACKAGE
osc repairlink PROJECT PACKAGE INTO_PROJECT [INTO_PACKAGE]
-h, --help show this help message and exit
-d DIR, --destdir=DIR
destination directory
- repairwc
- try to repair an inconsistent working copy
osc repairwc <path>
a project or package working copy)
osc repairwc [ARGS...]
-h, --help show this help message and exit
--force-apiurl
ask once for an apiurl and force this apiurl for all
inconsistent projects/packages
- repositories (platforms, repos)
- shows repositories configured for a project.
It skips repositories by default which are disabled for a given package.
osc repos
osc repos [PROJECT] [PACKAGE]
- repourls
- Shows URLs of .repo files
osc repourls [PROJECT]
- request (review, rq)
- Show or modify requests and reviews
osc request list [-M] [-U USER] [-s state] [-D DAYS] [-t type] [-B] [PRJ [PKG]]
osc request log ID
osc request [show] [-d] [-b] ID
osc request accept [-m TEXT] ID
osc request decline [-m TEXT] ID
osc request revoke [-m TEXT] ID
osc request reopen [-m TEXT] ID
osc request setincident [-m TEXT] ID INCIDENT
osc request supersede [-m TEXT] ID SUPERSEDING_ID
osc request approvenew [-m TEXT] PROJECT
osc request checkout/co ID
osc request clone [-m TEXT] ID
osc review show [-d] [-b] ID
osc review list [-U USER] [-G GROUP] [-P PROJECT [-p PACKAGE]] [-s state]
osc review add [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p PACKAGE]] ID
osc review accept [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p PACKAGE]] ID
osc review decline [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p PACKAGE]] ID
osc review reopen [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p PACKAGE]] ID
osc review supersede [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p PACKAGE]] ID SUPERSEDING_ID
-h, --help show this help message and exit
--source-buildstatus
print the buildstatus of the source package (only
works with "show")
--involved-projects
show all requests for project/packages where USER is
involved
--exclude-target-project=EXCLUDE_TARGET_PROJECT
exclude target project from request list
--non-interactive
non-interactive review of request
-i, --interactive
interactive review of request
-e, --edit edit a submit action
-B, --bugowner
also show requests about packages where I am bugowner
-M, --mine only show requests created by yourself
-b, --brief
print output in list view as list subcommand
-p PACKAGE, --package=PACKAGE
requests or reviews limited for the specified PACKAGE,
requires also a PROJECT
-P PROJECT, --project=PROJECT
requests or reviews limited for the specified PROJECT
-G GROUP, --group=GROUP
requests or reviews limited for the specified GROUP
-U USER, --user=USER
requests or reviews limited for the specified USER
-D DAYS, --days=DAYS
only list requests in state "new" or changed in the
last DAYS. [default=0]
-s STATE, --state=STATE
only list requests in one of the comma separated given
states (new/review/accepted/revoked/declined) or "all"
[default="new,review", or "all", if no args given]
-f, --force
enforce state change, can be used to ignore open
reviews
-a, --all all states. Same as'-s all'
-t TYPE, --type=TYPE
limit to requests which contain a given action type
(submit/delete/change_devel)
-m TEXT, --message=TEXT
specify message TEXT
-u, --unified
output the diff in the unified diff format
-d, --diff generate a diff
- requestmaintainership (reqbs, reqbugownership, reqmaintainership, reqms, requestbugownership)
- requests to add user as maintainer or bugowner
osc requestmaintainership # for current user in checked out package
osc requestmaintainership USER # for specified user in checked out package
osc requestmaintainership PROJECT PACKAGE # for current user
osc requestmaintainership PROJECT PACKAGE USER # request for specified user
osc requestbugownership ... # accepts same parameters but uses bugowner role
-h, --help show this help message and exit
-r role, --role=role
specify user role (default: maintainer)
-m TEXT, --message=TEXT
specify message TEXT
- resolved
- Remove 'conflicted' state on working copy files
osc resolved FILE [FILE...]
- results (r)
- Shows the build results of a package or project
osc results # (inside working copy of PRJ or PKG)
osc results PROJECT [PACKAGE]
-h, --help show this help message and exit
--format=FORMAT
format string for csv output
--csv generate output in CSV format
--xml generate output in XML (former results_meta)
-w, --watch
watch the results until all finished building
-v, --verbose
more verbose output
-a ARCH, --arch=ARCH
Show results only for specified architecture(s)
-r REPO, --repo=REPO
Show results only for specified repo(s)
-l, --last-build
show last build results (succeeded/failed/unknown)
- revert
- Restore changed files or the entire working copy.
osc revert <modified file(s)>
ose revert . Note: this only works for package working copies
osc revert [FILES...]
- rremove
- Remove source files from selected package
osc rremove PROJECT PACKAGE [FILES...]
-h, --help show this help message and exit
-f, --force
Don't ask and delete files
- search (bse, se)
- Search for a project and/or package.
osc search 'search term' <options>
osc bse ... ('osc search --binary')
osc se 'perl(Foo::Bar)' ('osc --package perl-Foo-Bar') Options:
-h, --help show this help message and exit
--binaryversion=VERSION
search for binary with specified version (implies
--binary)
-B PROJECT, --baseproject=PROJECT
search packages built for PROJECT (implies --binary)
--binary search binary packages
--csv generate output in CSV (separated by |)
-M, --mine shorthand for --bugowner --package
--maintained
limit search results to packages with maintained
attribute set.
-m, --maintainer
as -i, but only maintainer
-b, --bugowner
as -i, but only bugowner
-i, --involved
show projects/packages where given person (or myself)
is involved as bugowner or maintainer
-V, --version
show package version, revision, and srcmd5. CAUTION:
This is slow and unreliable
-v, --verbose
show more information
-a ATTRIBUTE, --limit-to-attribute=ATTRIBUTE
match only when given attribute exists in meta data
--description
search for matches in the 'description' element
--title search for matches in the 'title' element
--project search for a project
--package search for a package
-s, --substring
Show also results where the search term is a sub
string, slower search
-e, --exact
show only exact matches, this is default now
--repos-baseurl
show base URLs of download repositories
- service
- Handle source services
osc service COMMAND (inside working copy)
osc service run [SOURCE_SERVICE]
osc service disabledrun
osc service remoterun [PROJECT PACKAGE]
COMMAND can be:
run r run defined services locally, it takes an optional parameter to run only a
specified source service. In case paramteres exists for this one in _service file
they are used.
disabledrun dr run disabled or server side only services locally and store files as local created
remoterun rr trigger a re-run on the server side
- setlinkrev
- Updates a revision number in a source link.
osc setlinkrev
osc setlinkrev PROJECT [PACKAGE] Options:
-h, --help show this help message and exit
-u, --unset
remove revision in link, it will point always to
latest revision
-R, --use-plain-revision
Don't expand revsion based on baserev, the revision
which was used when commit happened.
-r rev, --revision=rev
use the specified revision.
- signkey
- Manage Project Signing Key
osc signkey [ARGS...]
-h, --help show this help message and exit
--notraverse
don' traverse projects upwards to find key
--delete delete the gpg signing key in this project
--extend extend expiration date of the gpg public key for this
project
--create create new gpg signing key for this project
- status (st)
- Show status of files in working copy
' ' no modifications
'A' Added
'C' Conflicted
'D' Deleted
'M' Modified
'?' item is not under version control
'!' item is missing (removed by non-osc command) or incomplete
osc st
osc st <directory>
osc st file1 file2 ...
osc status [OPTS] [PATH...] Options:
-h, --help show this help message and exit
-e, --show-excluded
also show files which are excluded by the
"exclude_glob" config option
-v, --verbose
print extra information
-q, --quiet
print as little as possible
- submitrequest (sr, submitpac, submitreq)
- Create request to submit source into another Project
osc submitreq [OPTIONS]
osc submitreq [OPTIONS] DESTPRJ [DESTPKG]
osc submitreq [OPTIONS] SOURCEPRJ SOURCEPKG DESTPRJ [DESTPKG]
osc submitpac ... is a shorthand for osc submitreq --cleanup ...
-h, --help show this help message and exit
--yes proceed without asking.
-d, --diff show diff only instead of creating the actual request
--no-update
never touch source package on accept (will break
source links)
--no-cleanup
never remove source package on accept, but update its
content
--cleanup remove package if submission gets accepted (default
for home:<id>:branch projects)
--nodevelproject
do not follow a defined devel project (primary project
where a package is developed)
-s SUPERSEDE, --supersede=SUPERSEDE
Superseding another request by this one
-r REV, --revision=REV
specify a certain source revision ID (the md5 sum) for
the source package
-m TEXT, --message=TEXT
specify message TEXT
- triggerreason (tr)
- Show reason why a package got triggered to build
- new build (never build yet or rebuild manually forced)
- source change (eg. on updating sources)
- meta change (packages which are used for building have changed)
- rebuild count sync (In case that it is configured to sync release numbers)
osc reason REPOSITORY ARCH
osc reason PROJECT PACKAGE REPOSITORY ARCH
- undelete
- Restores a deleted project or package on the server.
osc undelete PROJECT
osc undelete PROJECT PACKAGE [PACKAGE ...]
-h, --help show this help message and exit
-m TEXT, --message=TEXT
specify log message TEXT
- unlock
- Unlocks a project or package
osc unlock PROJECT [PACKAGE]
-h, --help show this help message and exit
-m TEXT, --message=TEXT
specify log message TEXT
- update (up)
- Update a working copy
If the current working directory is a package, update it.
If the directory is a project directory, update all contained
packages, AND check out newly added packages.
To update only checked out packages, without checking out new
ones, you might want to use "osc up *" from within the project
dir.
Update the packages specified by the path argument(s)
osc update [ARGS...]
-h, --help show this help message and exit
-l limit_size, --limit-size=limit_size
Skip all files with a given size
-S, --server-side-source-service-files
Use server side generated sources instead of local
generation.
-s, --source-service-files
Run local source services after update.
-e, --expand-link
if a package is a link, update to the expanded sources
-u, --unexpand-link
if a package is an expanded link, update to the raw
_link file
-r REV, --revision=REV
update to specified revision (this option will be
ignored if you are going to update the complete
project or more than one package)
- updatepacmetafromspec (metafromspec)
- Update package meta information from a specfile
osc updatepacmetafromspec [ARGS...]
-h, --help show this help message and exit
--specfile=FILE
Path to specfile. (if you pass more than working copy
this option is ignored)
- vc
- Edit the changes file
osc vc [ARGS...]
-h, --help show this help message and exit
-e, --just-edit
just open changes (cannot be used with -m)
-m MESSAGE, --message=MESSAGE
add MESSAGE to changes (not open an editor)
- whois (user, who)
- Show fullname and email of a buildservice user
osc whois [USERNAMES...]
- wipebinaries
- Delete all binary packages of a certain project/package
osc wipebinaries OPTS # works in checked out project dir
osc wipebinaries OPTS PROJECT [PACKAGE] Options:
-h, --help show this help message and exit
--all Delete all binaries regardless of the package status
(previously default)
--unresolvable
Delete all binaries of packages which have dependency
errors
--broken Delete all binaries of packages for which the package
source is bad
--build-failed
Delete all binaries of packages for which the build
failed
--build-disabled
Delete all binaries of packages for which the build is
disabled
-r REPO, --repo=REPO
Delete all binary packages for a specific repository
-a ARCH, --arch=ARCH
Delete all binary packages for a specific architecture
GLOBAL OPTIONS¶
Options:--version show program's version number and exit
-h, --help show this help message and exit
--debugger jump into the debugger before executing anything
--post-mortem jump into the debugger in case of errors
-t, --traceback print call trace in case of errors
-H, --http-debug debug HTTP traffic (filters some headers)
--http-full-debug debug HTTP traffic (filters no headers)
-d, --debug print info useful for debugging
-A URL/alias, --apiurl=URL/alias
specify URL to access API server at or an alias
-c FILE, --config=FILE
specify alternate configuration file
--no-keyring disable usage of desktop keyring system
--no-gnome-keyring disable usage of GNOME Keyring
-v, --verbose increase verbosity
-q, --quiet be quiet, not verbose
SEE ALSO¶
Type 'osc help <subcommand>' for more detailed help on a specific subcommand. For additional information, see* http://en.opensuse.org/openSUSE:Build_Service_Tutorial
* http://en.opensuse.org/openSUSE:OSC You can modify osc commands, or roll you own, via the plugin API:
* http://en.opensuse.org/openSUSE:OSC_plugins
AUTHOR¶
osc was written by several authors. This man page is automatically generated.Mar 2015 | osc 0.134.1 |