1OSC(1) Generated Python Manual OSC(1)
2
3
4
6 osc - OpenSUSE Commander
7
9 osc [global opts] <command> [--help] [opts] [args]
10
11
13 -v, --verbose
14 increase verbosity
15
16
17 -q, --quiet
18 be quiet, not verbose
19
20
21 --debug
22 print info useful for debugging
23
24
25 --debugger
26 jump into the debugger before executing anything
27
28
29 --post-mortem
30 jump into the debugger in case of errors
31
32
33 --traceback
34 print call trace in case of errors
35
36
37 -H, --http-debug
38 debug HTTP traffic (filters some headers)
39
40
41 --http-full-debug
42 debug HTTP traffic (filters no headers)
43
44
45 -A URL, --apiurl URL
46 Open Build Service API URL or a configured alias
47
48
49 --config FILE
50 specify alternate configuration file
51
52
53 --setopt KEY=VALUE
54 set a config option for the current program run
55
56
57 --no-keyring
58 disable usage of desktop keyring system
59
60
62 osc repo
63 Manage repositories in project meta
64
65 usage: osc [global opts] repo [-h] {add,list,ls,remove,rm} ...
66
67
68 osc repo add
69 Add a repository to project meta
70
71 usage: osc [global opts] add [-h] --repo NAME --arch [ARCH] --path
72 [PROJECT/REPO] [--disable-publish] [--yes]
73 project
74
75 arguments:
76
77 project
78 Name of the project
79
80
81 options:
82
83 --repo NAME
84 Name of the repository we're adding
85
86
87 --arch [ARCH]
88 Architecture of the repository. Can be specified multiple
89 times.
90
91
92 --path [PROJECT/REPO]
93 Path associated to the repository. Format is
94 PROJECT/REPO. Can be specified multiple times.
95
96
97 --disable-publish
98 Disable publishing the added repository
99
100
101 --yes Proceed without asking
102
103
104 osc repo list (ls)
105 List repositories in project meta
106
107 usage: osc [global opts] list [-h] project
108
109 arguments:
110
111 project
112 Name of the project
113
114
115 osc repo remove (rm)
116 Remove repositories from project meta
117
118 usage: osc [global opts] remove [-h] --repo [NAME] [--yes] project
119
120 arguments:
121
122 project
123 Name of the project
124
125
126 options:
127
128 --repo [NAME]
129 Name of the repository we're removing. Can be specified
130 multiple times.
131
132
133 --yes Proceed without asking
134
135
136 osc add
137 Mark files to be added upon the next commit
138
139 usage: osc [global opts] add [-h] [-f]
140
141 In case a URL is given the file will get downloaded and registered to
142 be downloaded by the server as well via the download_url source ser‐
143 vice.
144
145 This is recommended for release tar balls to track their source and to
146 help others to review your changes esp. on version upgrades.
147
148 usage:
149 osc add URL [URL...]
150 osc add FILE [FILE...]
151
152 options:
153
154 -f, --force
155 add files even if they are excluded by the exclude_glob
156 config option
157
158
159 osc addchannels
160 Add channels to project
161
162 usage: osc [global opts] addchannels [-h] [-s] [-e]
163
164 The command adds all channels which are defined to be used for a given
165 source package. The source link target is used to lookup the channels.
166 The command can be used for a certain package or for all in the speci‐
167 fied project.
168
169 In case no channel is defined the operation is just returning.
170
171 Examples:
172 osc addchannels [PROJECT [PACKAGE]]
173
174 options:
175
176 -s, --skip-disabled
177 Skip disabled channels. Otherwise the source gets added,
178 but not the repositories.
179
180
181 -e, --enable-all
182 Enable all added channels including the ones disabled by
183 default.
184
185
186 osc addcontainers
187 Add maintained containers for a give package
188
189 usage: osc [global opts] addcontainers [-h] [--extend-package-names]
190
191 The command adds all containers which are marked as maintained and con‐
192 tain an rpm originating from the specified source package.
193
194 Examples:
195 osc addcontainers [PROJECT PACKAGE]
196
197 options:
198
199 --extend-package-names
200 Extend packages names with project name as suffix
201
202
203 osc addremove (ar)
204 Adds new files, removes disappeared files
205
206 usage: osc [global opts] addremove [-h] [-r]
207
208 Adds all files new in the local copy, and removes all disappeared
209 files.
210
211 ARG, if specified, is a package working copy.
212
213 options:
214
215 -r, --recursive
216 If CWD is a project dir then scan all package dirs as
217 well
218
219
220 osc aggregatepac
221 "Aggregate" a package to another package
222
223 usage: osc [global opts] aggregatepac [-h] [--nosources]
224 [-m SRC=TARGET[,SRC=TARGET]] [-d]
225
226 Aggregation of a package means that the build results (binaries) of a
227 package are basically copied into another project. This can be used to
228 make packages available from building that are needed in a project but
229 available only in a different project. Note that this is done at the
230 expense of disk space. See http://en.opensuse.org/openSUSE:Build_Ser‐
231 vice_Tips_and_Tricks#link_and_aggregate for more information.
232
233 The DESTPAC name is optional; the source packages' name will be used if
234 DESTPAC is omitted.
235
236 usage:
237 osc aggregatepac SOURCEPRJ SOURCEPAC[:FLAVOR] DESTPRJ [DESTPAC]
238
239 options:
240
241 --nosources
242 ignore source packages when copying build results to des‐
243 tination project
244
245
246 -m SRC=TARGET[,SRC=TARGET], --map-repo SRC=TARGET[,SRC=TARGET]
247 Allows repository mapping(s) to be given as SRC=TAR‐
248 GET[,SRC=TARGET]
249
250
251 -d, --disable-publish
252 disable publishing of the aggregated package
253
254
255 osc api
256 Issue an arbitrary request to the API
257
258 usage: osc [global opts] api [-h] [-X HTTP_METHOD] [-e] [-d STRING] [-T
259 FILE]
260 [-a NAME STRING NAME STRING]
261 url
262
263 Useful for testing.
264
265 URL can be specified either partially (only the path component), or
266 fully with URL scheme and hostname ('http://...').
267
268 Note the global -A and -H options (see osc help).
269
270 Examples:
271 osc api /source/home:user
272 osc api -X PUT -T /etc/fstab source/home:user/test5/myfstab
273 osc api -e /configuration
274
275 arguments:
276
277 url either URL '/path' or full URL with 'scheme://host‐
278 name/path'
279
280
281 options:
282
283 -X HTTP_METHOD, -m HTTP_METHOD, --method HTTP_METHOD
284 specify HTTP method to use (GET|PUT|DELETE|POST)
285
286
287 -e, --edit
288 GET, edit and PUT the location
289
290
291 -d STRING, --data STRING
292 specify string data for e.g. POST
293
294
295 -T FILE, -f FILE, --file FILE
296 specify filename to upload, uses PUT mode by default
297
298
299 -a NAME STRING NAME STRING, --add-header NAME STRING NAME STRING
300 add the specified header to the request
301
302
303 osc branch (getpac, bco, branchco)
304 Branch a package
305
306 usage: osc [global opts] branch [-h] [--nodevelproject] [-c] [-f]
307 [--add-repositories] [--extend-pack‐
308 age-names]
309 [--noaccess] [-m TEXT] [-M] [-N] [-r
310 rev]
311 [--linkrev linkrev]
312 [--add-repositories-block add_reposito‐
313 ries_block]
314 [--add-repositories-rebuild add_reposi‐
315 tories_rebuild]
316 [--disable-build]
317
318 [See http://en.opensuse.org/openSUSE:Build_Service_Collaboration for
319 information on this topic.]
320
321 Create a source link from a package of an existing project to a new
322 subproject of the requesters home project (home:branches:)
323
324 The branched package will live in
325 home:USERNAME:branches:PROJECT/PACKAGE if nothing else specified.
326
327 With getpac or bco, the branched package will come from one of
328 %(getpac_default_project)s (list of projects from oscrc:getpac_de‐
329 fault_project) if nothing else is specfied on the command line.
330
331 In case of branch errors, where the source has currently merge con‐
332 flicts use --linkrev=base option.
333
334 usage:
335 osc branch
336 osc branch SOURCEPROJECT SOURCEPACKAGE
337 osc branch SOURCEPROJECT SOURCEPACKAGE TARGETPROJECT|.
338 osc branch SOURCEPROJECT SOURCEPACKAGE TARGETPROJECT|. TARGETPACK‐
339 AGE
340 osc getpac SOURCEPACKAGE
341 osc bco ...
342
343 options:
344
345 --nodevelproject
346 do not follow a defined devel project (primary project
347 where a package is developed)
348
349
350 -c, --checkout
351 Checkout branched package afterwards using "co -e
352 -S"('osc bco' is a shorthand for this option)
353
354
355 -f, --force
356 force branch, overwrite target
357
358
359 --add-repositories
360 Add repositories to target project (happens by default
361 when project is new)
362
363
364 --extend-package-names
365 Extend packages names with project name as suffix
366
367
368 --noaccess
369 Create a hidden project
370
371
372 -m TEXT, --message TEXT
373 specify message TEXT
374
375
376 -M, --maintenance
377 Create project and package in maintenance mode
378
379
380 -N, --new-package
381 create a branch pointing to a not yet existing package
382
383
384 -r rev, --revision rev
385 branch against a specific revision
386
387
388 --linkrev linkrev
389 specify the used revision in the link target.
390
391
392 --add-repositories-block add_repositories_block
393 specify the used block strategy for new repositories
394
395
396 --add-repositories-rebuild add_repositories_rebuild
397 specify the used rebuild strategy for new repositories
398
399
400 --disable-build
401 disable building of the branched package
402
403
404 osc browse
405 Opens browser
406
407 usage: osc [global opts] browse [-h]
408
409 usage:
410 osc browse [PROJECT [PACKAGE]]
411 osc browse [REQUEST_ID]
412
413 osc build (wipe, shell, chroot)
414 Build a package on your local machine
415
416 usage: osc [global opts] build [-h] [--clean] [-o] [-l]
417 [--no-changelog]
418 [--rsync-src RSYNCSRCPATH]
419 [--rsync-dest RSYNCDESTPATH]
420 [--overlay OVERLAY] [--noinit]
421 [--nochecks]
422 [--no-verify] [--nodebugpackages]
423 [--skip-local-service-run] [-p DIR] [-k
424 DIR]
425 [-M FLAVOR] [-x PAC] [-X FILE] [--root
426 ROOT]
427 [-j N] [-t N] [--icecream N] [--ccache]
428 [--pkg-ccache /path/to/_ccache.tar]
429 [--sccache]
430 [--sccache-uri redis://127.0.0.1:6389]
431 [--with X] [--without X] [--define 'X
432 Y']
433 [--build-opt OPT] [--buildtool-opt OPT]
434 [--userootforbuild]
435 [--build-uid uid:gid|"caller"]
436 [--local-package] [--stage STAGE]
437 [--linksources] [--vm-memory MEMORY]
438 [--vm-disk-size DISKSIZE] [--vm-type
439 TYPE]
440 [--vm-telnet TELNET] [--target TARGET]
441 [--alternative-project PROJECT] [-d]
442 [--disable-debuginfo] [-b] [--release N]
443 [--disable-cpio-bulk-download]
444 [--download-api-only] [--oldpackages
445 DIR]
446 [--verbose-mode MODE] [--shell-af‐
447 ter-fail]
448 [--shell-cmd COMMAND] [-f] [--host HOST]
449 [--trust-all-projects] [--nopreinstal‐
450 limage]
451 [--just-print-buildroot]
452
453 The command works from a package checkout (local changes are fine).
454
455 You can use `osc repos` to look up REPOSITORY and ARCH arguments. If
456 they are not set, `osc` choses from configured repos in this priority:
457 1. `build_repository` mentioned in config file
458 2. "standard"
459 3. "openSUSE_Factory"
460 4. "openSUSE_Tumbleweed"
461 5. last repo from the sorted list
462
463 BUILD_DESCR is either a RPM spec file, or a Debian dsc file.
464
465 The command honors packagecachedir, build-root and build-uid settings
466 in oscrc, if present. You may want to set su-wrapper = 'sudo' in oscrc,
467 and configure sudo with option NOPASSWD for /usr/bin/build.
468
469 If neither --clean nor --noinit is given, build will reuse an existing
470 build-root again, removing unneeded packages and add missing ones. This
471 is usually the fastest option.
472
473 If the package doesn't exist on the server please use the --local-pack‐
474 age option. If the project of the package doesn't exist on the server
475 use the --alternative-project <alternative-project> option. Example:
476 osc build [OPTS] --alternative-project openSUSE:10.3 standard i586
477 BUILD_DESCR
478
479 usage:
480 osc build [OPTS] # will try to guess a build
481 environement
482 osc build [OPTS] REPOSITORY ARCH BUILD_DESCR
483 osc build [OPTS] REPOSITORY ARCH
484 osc build [OPTS] REPOSITORY (ARCH = hostarch, BUILD_DESCR is de‐
485 tected automatically)
486 osc build [OPTS] ARCH (REPOSITORY = build_repository (config op‐
487 tion), BUILD_DESCR is detected automatically)
488 osc build [OPTS] BUILD_DESCR (REPOSITORY = build_repository (config
489 option), ARCH = hostarch)
490 osc build [OPTS] (REPOSITORY = build_repository (config option),
491 ARCH = hostarch, BUILD_DESCR is detected automatically)
492
493 For debugging after a build you can jump into the build environment:
494 osc shell [OPTS] REPOSITORY ARCH
495
496 Run a single command inside of the build environment:
497 osc shell --shell-cmd=COMMAND [OPTS] REPOSITORY ARCH
498
499 Useful `shell` OPTS
500 --noinit # for faster run
501 --shell-cmd=COMMAND
502 --shell-after-fail
503 --extra-pkgs=PACKAGE # install additional packages
504
505 To clean up the build environment run
506 osc wipe [OPTS]
507 osc wipe [OPTS] REPOSITORY ARCH
508
509 If you've set the used VM type in oscrc, it can be also overridden here
510
511 --vm-type=chroot # for faster, but uncleaner and unsecure build
512 --vm-type=kvm # for clean and secure build
513 --vm-type=qemu # for slow cross architecture build using sys‐
514 tem emulator
515
516 # Note: # Configuration can be overridden by envvars, e.g. #
517 OSC_SU_WRAPPER overrides the setting of su-wrapper. # OSC_BUILD_ROOT
518 overrides the setting of build-root. # OSC_PACKAGECACHEDIR overrides
519 the setting of packagecachedir.
520
521 options:
522
523 --clean
524 Delete old build root before initializing it
525
526
527 -o, --offline
528 Start with cached prjconf and packages without contacting
529 the api server
530
531
532 -l, --preload
533 Preload all files into the cache for offline operation
534
535
536 --no-changelog
537 don't update the package changelog from a changes file
538
539
540 --rsync-src RSYNCSRCPATH
541 Copy folder to buildroot after installing all RPMs. Use
542 together with --rsync-dest. This is the path on the HOST
543 filesystem e.g. /tmp/linux-kernel-tree. It defines RSYNC‐
544 DONE 1 .
545
546
547 --rsync-dest RSYNCDESTPATH
548 Copy folder to buildroot after installing all RPMs. Use
549 together with --rsync-src. This is the path on the TARGET
550 filesystem e.g. /usr/src/packages/BUILD/linux-2.6 .
551
552
553 --overlay OVERLAY
554 Copy overlay filesystem to buildroot after installing all
555 RPMs .
556
557
558 --noinit, --no-init
559 Skip initialization of build root and start with build
560 immediately.
561
562
563 --nochecks, --no-checks
564 Do not run build checks on the resulting packages.
565
566
567 --no-verify, --noverify
568 Skip signature verification (via pgp keys) of packages
569 used for build. (Global config in oscrc: no_verify)
570
571
572 --nodebugpackages, --no-debug-packages
573 Skip installation of additional debug packages for CLI
574 builds
575
576
577 --skip-local-service-run, --noservice, --no-service
578 Skip run of local source services as specified in _ser‐
579 vice file.
580
581
582 -p DIR, --prefer-pkgs DIR
583 Prefer packages from this directory when installing the
584 build-root
585
586
587 -k DIR, --keep-pkgs DIR
588 Save built packages into this directory
589
590
591 -M FLAVOR, --multibuild-package FLAVOR
592 Only work with the specified flavor of a multibuild pack‐
593 age.
594
595
596 -x PAC, --extra-pkgs PAC
597 Add this package when installing the build-root
598
599
600 -X FILE, --extra-pkgs-from FILE
601 Add packages listed in this file when installing the
602 build-root
603
604
605 --root ROOT
606 Build in specified directory
607
608
609 -j N, --jobs N
610 Compile with N jobs
611
612
613 -t N, --threads N
614 Compile with N threads
615
616
617 --icecream N
618 use N parallel build jobs with icecream
619
620
621 --ccache
622 use ccache to speed up rebuilds
623
624
625 --pkg-ccache /path/to/_ccache.tar
626 path to an existing uncompressed archive ccache. Using
627 this option implies --ccache
628
629
630 --sccache
631 use sccache to speed up rebuilds. Conflicts with --cache
632
633
634 --sccache-uri redis://127.0.0.1:6389
635 Optional remote URI for sccache storage. Implies --sc‐
636 cache.
637
638
639 --with X
640 enable feature X for build
641
642
643 --without X
644 disable feature X for build
645
646
647 --define 'X Y'
648 define macro X with value Y
649
650
651 --build-opt OPT
652 pass option OPT to the build command
653
654
655 --buildtool-opt OPT
656 pass option OPT to the build tool command (rpmbuild)
657
658
659 --userootforbuild, --login-as-root
660 Run build or shell as root. The default is to build as
661 unprivileged user. Note that a line "# norootforbuild" in
662 the spec file will invalidate this option.
663
664
665 --build-uid uid:gid|"caller"
666 specify the numeric uid:gid pair to assign to the unpriv‐
667 ileged "abuild" user or use "caller" to use the current
668 user uid:gid
669
670
671 --local-package
672 build a package which does not exist on the server
673
674
675 --stage STAGE
676 runs a specific stage, default is "a" for all. Append a
677 trailing "="to only run the specified stage. Append a
678 trailing "+" to runthe specified stage and all stages
679 coming after it. With nosuffix, stages up to and included
680 the specified stage are run.
681
682
683 --linksources
684 use hard links instead of a deep copied source
685
686
687 --vm-memory MEMORY
688 amount of memory for VM defined in MB
689
690
691 --vm-disk-size DISKSIZE
692 size for newly created disk image in MB
693
694
695 --vm-type TYPE
696 use VM type TYPE (e.g. kvm)
697
698
699 --vm-telnet TELNET
700 Launch a telnet server inside of VM build
701
702
703 --target TARGET
704 define target platform
705
706
707 --alternative-project PROJECT
708 specify the build target project
709
710
711 -d, --debuginfo
712 also build debuginfo sub-packages
713
714
715 --disable-debuginfo
716 disable build of debuginfo packages
717
718
719 -b, --baselibs
720 Create -32bit/-64bit/-x86 rpms for other architectures
721
722
723 --release N
724 set release number of the package to N
725
726
727 --disable-cpio-bulk-download
728 disable downloading packages as cpio archive from api
729
730
731 --download-api-only
732 only fetch packages from the api
733
734
735 --oldpackages DIR
736 take previous build from DIR (special values: _self,
737 _link)
738
739
740 --verbose-mode MODE
741 set verbose mode of the "build" program, arguments can be
742 "all" or "vm"
743
744
745 --shell-after-fail
746 run a shell if the build tool fails
747
748
749 --shell-cmd COMMAND
750 run specified command instead of bash
751
752
753 -f, --force
754 Do not ask for confirmation to wipe
755
756
757 --host HOST
758 perform the build on a remote server - user@server:~/re‐
759 mote/directory
760
761
762 --trust-all-projects
763 trust packages from all projects
764
765
766 --nopreinstallimage, --no-preinstallimage
767 Do not use preinstall images for creating the build root.
768
769
770 --just-print-buildroot
771 Print build root path and exit.
772
773
774 osc buildconfig
775 Shows the build config
776
777 usage: osc [global opts] buildconfig [-h]
778
779 Shows the build configuration which is used in building a package.
780 This command is mostly used internally by the 'build' command.
781
782 The returned data is the project-wide build configuration in a format
783 which is directly readable by the build script. It contains RPM macros
784 and BuildRequires expansions, for example.
785
786 The argument REPOSITORY an be taken from the first column of the
787
788 usage:
789 osc buildconfig REPOSITORY (in pkg or prj dir)
790 osc buildconfig PROJECT REPOSITORY
791
792 osc buildhistory (buildhist)
793 Shows the build history of a package
794
795 usage: osc [global opts] buildhistory [-h] [--csv] [-l limit] [-M FLA‐
796 VOR]
797
798 The arguments REPOSITORY and ARCH can be taken from the first two col‐
799 umns of the 'osc repos' output.
800
801 usage:
802 osc buildhist REPOSITORY ARCHITECTURE
803 osc buildhist PROJECT PACKAGE[:FLAVOR] REPOSITORY ARCHITECTURE
804
805 options:
806
807 --csv generate output in CSV (separated by |)
808
809
810 -l limit, --limit limit
811 for setting the number of results
812
813
814 -M FLAVOR, --multibuild-package FLAVOR
815 Only work with the specified flavor of a multibuild pack‐
816 age.
817
818
819 osc buildinfo
820 Shows the build info
821
822 usage: osc [global opts] buildinfo [-h] [--alternative-project PROJECT]
823 [-d]
824 [-M FLAVOR] [-x PAC] [-p DIR]
825
826 Shows the build "info" which is used in building a package. This com‐
827 mand is mostly used internally by the 'build' subcommand. It needs to
828 be called from within a package directory.
829
830 The BUILD_DESCR argument is optional. BUILD_DESCR is a local RPM spec‐
831 file or Debian "dsc" file. If specified, it is sent to the server, and
832 the buildinfo will be based on it. If the argument is not supplied, the
833 buildinfo is derived from the specfile which is currently on the source
834 repository server.
835
836 The returned data is XML and contains a list of the packages used in
837 building, their source, and the expanded BuildRequires.
838
839 The arguments REPOSITORY and ARCH are optional. They can be taken from
840 the first two columns of the 'osc repos' output. If not specified,
841 REPOSITORY defaults to the 'build_repository' config entry in your 'os‐
842 crc' and ARCH defaults to your host architecture.
843
844 usage:
845 in a package working copy:
846 osc buildinfo [OPTS] REPOSITORY ARCH BUILD_DESCR
847 osc buildinfo [OPTS] REPOSITORY (ARCH = hostarch, BUILD_DESCR
848 is detected automatically)
849 osc buildinfo [OPTS] ARCH (REPOSITORY = build_repository (con‐
850 fig option), BUILD_DESCR is detected automatically)
851 osc buildinfo [OPTS] BUILD_DESCR (REPOSITORY = build_repository
852 (config option), ARCH = hostarch)
853 osc buildinfo [OPTS] (REPOSITORY = build_repository (config op‐
854 tion), ARCH = hostarch, BUILD_DESCR is detected automatically)
855 Note: if BUILD_DESCR does not exist locally the remote
856 BUILD_DESCR is used
857
858 osc buildinfo [OPTS] PROJECT PACKAGE[:FLAVOR] REPOSITORY ARCH
859 [BUILD_DESCR]
860
861 options:
862
863 --alternative-project PROJECT
864 specify the build target project
865
866
867 -d, --debug
868 verbose output of build dependencies
869
870
871 -M FLAVOR, --multibuild-package FLAVOR
872 Only work with the specified flavor of a multibuild pack‐
873 age.
874
875
876 -x PAC, --extra-pkgs PAC
877 Add this package when computing the buildinfo
878
879
880 -p DIR, --prefer-pkgs DIR
881 Prefer packages from this directory when installing the
882 build-root
883
884
885 osc buildlog (buildlogtail, blt, bl)
886 Shows the build log of a package
887
888 usage: osc [global opts] buildlog [-h] [-l] [--lastsucceeded] [-M FLA‐
889 VOR]
890 [-o OFFSET] [-s]
891
892 Shows the log file of the build of a package. Can be used to follow the
893 log while it is being written. Needs to be called from within a pack‐
894 age directory.
895
896 When called as buildlogtail (or blt) it just shows the end of the log‐
897 file. This is useful to see just a build failure reasons.
898
899 The arguments REPOSITORY and ARCH are the first two columns in the 'osc
900 results' output. If the buildlog url is used buildlog command has the
901 same behavior as remotebuildlog.
902
903 buildlog [REPOSITORY ARCH | BUILDLOGURL]
904
905 options:
906
907 -l, --last
908 Show the last finished log file
909
910
911 --lastsucceeded, --last-succeeded
912 Show the last succeeded log file
913
914
915 -M FLAVOR, --multibuild-package FLAVOR
916 Only work with the specified flavor of a multibuild pack‐
917 age.
918
919
920 -o OFFSET, --offset OFFSET
921 get log start or end from the offset
922
923
924 -s, --strip-time
925 strip leading build time from the log
926
927
928 osc cat (less, blame)
929 Output the content of a file to standard output
930
931 usage: osc [global opts] cat [-h] [-r rev] [-e] [-u] [-D] [-M]
932
933 Examples:
934 osc cat file
935 osc cat project package file
936 osc cat project/package/file
937 osc cat http://api.opensuse.org/build/.../_log
938 osc cat http://api.opensuse.org/source/../_link
939
940 osc less file
941 osc less project package file
942
943 osc blame file
944 osc blame project package file
945
946 options:
947
948 -r rev, --revision rev
949 print out the specified revision
950
951
952 -e, --expand
953 (default) force expansion of linked packages.
954
955
956 -u, --unexpand
957 always work with unexpanded packages.
958
959
960 -D, --deleted
961 access file in a deleted package
962
963
964 -M, --meta
965 list meta data files
966
967
968 osc changedevelrequest (changedevelreq, cr)
969 Create request to change the devel package definition
970
971 usage: osc [global opts] changedevelrequest [-h] [-m TEXT]
972
973 [See http://en.opensuse.org/openSUSE:Build_Service_Collaboration for
974 information on this topic.]
975
976 See the "request" command for showing and modifying existing requests.
977
978 usage:
979 osc changedevelrequest PROJECT PACKAGE DEVEL_PROJECT [DEVEL_PACK‐
980 AGE]
981
982 options:
983
984 -m TEXT, --message TEXT
985 specify message TEXT
986
987
988 osc checkconstraints
989 Check the constraints and view compliant workers
990
991 usage: osc [global opts] checkconstraints [-h] [--ignore-file] [-M FLA‐
992 VOR]
993
994 Checks the constraints for compliant workers.
995
996 usage:
997 remote request:
998 osc checkconstraints [OPTS] PROJECT PACKAGE REPOSITORY ARCH
999 [CONSTRAINTSFILE]
1000
1001 in a package working copy:
1002 osc checkconstraints [OPTS] REPOSITORY ARCH [CONSTRAINTSFILE]
1003 osc checkconstraints [OPTS] CONSTRAINTSFILE
1004 osc checkconstraints [OPTS]
1005
1006 options:
1007
1008 --ignore-file
1009 ignore _constraints file and only check project con‐
1010 straints
1011
1012
1013 -M FLAVOR, --multibuild-package FLAVOR
1014 Only work with the specified flavor of a multibuild pack‐
1015 age.
1016
1017
1018 osc checkout (co)
1019 Check out content from the repository
1020
1021 usage: osc [global opts] checkout [-h] [-r rev] [-e] [-D] [-u] [-M]
1022 [-c]
1023 [-o outdir] [-s] [-S] [-l limit_size]
1024
1025 Check out content from the repository server, creating a local working
1026 copy.
1027
1028 When checking out a single package, the option --revision can be used
1029 to specify a revision of the package to be checked out.
1030
1031 When a package is a source link, then it will be checked out in ex‐
1032 panded form. If --unexpand-link option is used, the checkout will in‐
1033 stead produce the raw _link file plus patches.
1034
1035 usage:
1036 osc co PROJECT [PACKAGE] [FILE]
1037 osc co PROJECT # entire project
1038 osc co PROJECT PACKAGE # a package
1039 osc co PROJECT PACKAGE FILE # single file -> to current
1040 dir
1041
1042 while inside a project directory:
1043 osc co PACKAGE # check out PACKAGE from
1044 project
1045
1046 with the result of rpm -q --qf '%%{DISTURL}\n' PACKAGE
1047 osc co obs://API/PROJECT/PLATFORM/REVISION-PACKAGE
1048
1049 options:
1050
1051 -r rev, --revision rev
1052 checkout the specified revision. NOTE: if you checkout
1053 the complete project this option is ignored!
1054
1055
1056 -e, --expand-link
1057 if a package is a link, check out the expanded sources
1058 (no-op, since this became the default)
1059
1060
1061 -D, --deleted
1062 checkout an already deleted package. No meta information
1063
1064
1065 -u, --unexpand-link
1066 if a package is a link, check out the _link file instead
1067 of the expanded sources
1068
1069
1070 -M, --meta
1071 checkout out meta data instead of sources
1072
1073
1074 -c, --current-dir
1075 place PACKAGE folder in the current directory instead of
1076 a PROJECT/PACKAGE directory
1077
1078
1079 -o outdir, --output-dir outdir
1080 place package in the specified directory instead of a
1081 PROJECT/PACKAGE directory
1082
1083
1084 -s, --source-service-files
1085 Run source services.
1086
1087
1088 -S, --server-side-source-service-files
1089 Use server side generated sources instead of local gener‐
1090 ation.
1091
1092
1093 -l limit_size, --limit-size limit_size
1094 Skip all files with a given size
1095
1096
1097 osc clean
1098 Removes all untracked files from the package working copy
1099
1100 usage: osc [global opts] clean [-h] [-n]
1101
1102 Examples:
1103 osc clean <path>
1104
1105 Note: if <path> is omitted it defaults to '.' (<path> has to be a pack‐
1106 age working copy)
1107
1108 Warning: This command removes all files with status '?'.
1109
1110 options:
1111
1112 -n, --dry-run
1113 print the results without actually removing a file
1114
1115
1116 osc cleanassets (ca)
1117 Clean all previous downloaded assets
1118
1119 usage: osc [global opts] cleanassets [-h]
1120
1121 This is useful to prepare a new git commit.
1122
1123 osc comment
1124 List / create / delete comments
1125
1126 usage: osc [global opts] comment [-h] [-c COMMENT] [-p PARENT]
1127
1128 On create:
1129 If -p is given a reply to the ID is created. Otherwise
1130 a toplevel comment is created.
1131 If -c is not given the default editor will be opened and
1132 you can type your comment
1133
1134 usage:
1135 osc comment list package PROJECT PACKAGE
1136 osc comment list project PROJECT
1137 osc comment list request REQUEST_ID
1138
1139 osc comment create [-p PARENT_ID] [-c COMMENT] package PROJECT
1140 PACKAGE
1141 osc comment create [-p PARENT_ID] [-c COMMENT] project PROJECT
1142 osc comment create [-p PARENT_ID] [-c COMMENT] request REQUEST_ID
1143
1144 osc comment delete ID
1145
1146 options:
1147
1148 -c COMMENT, --comment COMMENT
1149 comment text
1150
1151
1152 -p PARENT, --parent PARENT
1153 reply to comment with parent id
1154
1155
1156 osc commit (checkin, ci)
1157 Upload content to the repository server
1158
1159 usage: osc [global opts] commit [-h] [-m TEXT] [-n] [-F FILE] [-f]
1160 [--skip-local-service-run]
1161
1162 Upload content which is changed in your working copy, to the repository
1163 server.
1164
1165 examples:
1166 osc ci # current dir
1167 osc ci <dir>
1168 osc ci file1 file2 ...
1169
1170 options:
1171
1172 -m TEXT, --message TEXT
1173 specify log message TEXT
1174
1175
1176 -n, --no-message
1177 do not specify a log message
1178
1179
1180 -F FILE, --file FILE
1181 read log message from FILE, '-' denotes standard input.
1182
1183
1184 -f, --force
1185 Allow empty commit with no changes. When commiting a
1186 project, allow removing packages even if other packages
1187 depend on them.
1188
1189
1190 --skip-local-service-run, --noservice, --no-service
1191 Skip run of local source services as specified in _ser‐
1192 vice file.
1193
1194
1195 osc config
1196 Get/set a config option
1197
1198 usage: osc [global opts] config [-h] [-d] [-s] [-p] [--change-password]
1199 [--select-password-store] [--no-echo]
1200 [--dump]
1201 [--dump-full]
1202
1203 Examples:
1204 osc config section option (get current value)
1205 osc config section option value (set to value)
1206 osc config section option --delete (delete option/reset to the de‐
1207 fault)
1208 osc config section --change-password (changes the password in sec‐
1209 tion "section")
1210 (section is either an apiurl or an alias or 'general')
1211 osc config --dump (dump the complete configuration)
1212
1213 options:
1214
1215 -d, --delete
1216 delete option from config or reset option to the default)
1217
1218
1219 -s, --stdin
1220 indicates that the config value should be read from stdin
1221
1222
1223 -p, --prompt
1224 prompt for a value
1225
1226
1227 --change-password
1228 Change password
1229
1230
1231 --select-password-store
1232 Change the password store
1233
1234
1235 --no-echo
1236 prompt for a value but do not echo entered characters
1237
1238
1239 --dump dump the complete configuration (without 'pass' and
1240 'passx' options)
1241
1242
1243 --dump-full
1244 dump the complete configuration (including 'pass' and
1245 'passx' options)
1246
1247
1248 osc copypac
1249 Copy a package
1250
1251 usage: osc [global opts] copypac [-h] [-c] [-k] [-K] [-d] [-r rev] [-t
1252 URL]
1253 [-m TEXT] [-e]
1254
1255 A way to copy package to somewhere else.
1256
1257 It can be done across buildservice instances, if the -t option is used.
1258 In that case, a client-side copy and link expansion are implied.
1259
1260 Using --client-side-copy always involves downloading all files, and up‐
1261 loading them to the target.
1262
1263 The DESTPAC name is optional; the source packages' name will be used if
1264 DESTPAC is omitted.
1265
1266 If SOURCEPRJ or DESTPRJ is '.' it will be expanded to the PRJ of the
1267 current directory.
1268
1269 usage:
1270 osc copypac SOURCEPRJ SOURCEPAC DESTPRJ [DESTPAC]
1271
1272 options:
1273
1274 -c, --client-side-copy
1275 do a (slower) client-side copy
1276
1277
1278 -k, --keep-maintainers
1279 keep original maintainers. Default is remove all and re‐
1280 place with the one calling the script.
1281
1282
1283 -K, --keep-link
1284 If the target package is a link, the link is kept, but
1285 may be updated. If the source package is a link, its ex‐
1286 panded version is considered.
1287
1288
1289 -d, --keep-develproject
1290 keep develproject tag in the package metadata
1291
1292
1293 -r rev, --revision rev
1294 copy the specified revision.
1295
1296
1297 -t URL, --to-apiurl URL
1298 URL of destination api server. Default is the source api
1299 server.
1300
1301
1302 -m TEXT, --message TEXT
1303 specify message TEXT
1304
1305
1306 -e, --expand
1307 if the source package is a link then copy the expanded
1308 version of the link
1309
1310
1311 osc create-pbuild-config (cpc)
1312 This command is creating the necessary files to build using pbuild
1313 tool.
1314
1315 usage: osc [global opts] create-pbuild-config [-h] repository arch
1316
1317 It basically creates _config and _pbuild file in the project directory.
1318 Changes from there can not get submitted back, except the project is
1319 managed in git.
1320
1321 Examples:
1322 osc cpc REPOSITORY ARCH
1323
1324 arguments:
1325
1326 repository
1327
1328
1329 arch
1330
1331
1332 osc createincident
1333 Create a maintenance incident
1334
1335 usage: osc [global opts] createincident [-h] [-a ATTRIBUTE] [--noac‐
1336 cess]
1337 [-m TEXT]
1338
1339 [See https://openbuildservice.org/help/manu‐
1340 als/obs-user-guide/cha.obs.maintenance_setup.html for information on
1341 this topic.]
1342
1343 This command is asking to open an empty maintenance incident. This can
1344 usually only be done by a responsible maintenance team. Please see the
1345 "mbranch" command on how to full such a project content and the "patch‐
1346 info" command how add the required maintenance update information.
1347
1348 usage:
1349 osc createincident [ MAINTENANCEPROJECT ]
1350
1351 options:
1352
1353 -a ATTRIBUTE, --attribute ATTRIBUTE
1354 Use this attribute to find default maintenance project
1355 (default is OBS:MaintenanceProject)
1356
1357
1358 --noaccess
1359 Create a hidden project
1360
1361
1362 -m TEXT, --message TEXT
1363 specify message TEXT
1364
1365
1366 osc createrequest (creq)
1367 Create multiple requests with a single command
1368
1369 usage: osc [global opts] createrequest [-h] [-a ACTION [[ARGS] ...]]
1370 [-m TEXT]
1371 [-r REV] [-s REQUEST_ID]
1372 [--nodevelproject] [--cleanup]
1373 [--no-cleanup] [--no-update]
1374 [--yes]
1375
1376 usage:
1377 osc creq [OPTIONS] [
1378 -a submit SOURCEPRJ SOURCEPKG DESTPRJ [DESTPKG]
1379 -a delete PROJECT [PACKAGE]
1380 -a change_devel PROJECT PACKAGE DEVEL_PROJECT [DEVEL_PACKAGE]
1381 -a add_me ROLE PROJECT [PACKAGE]
1382 -a add_group GROUP ROLE PROJECT [PACKAGE]
1383 -a add_role USER ROLE PROJECT [PACKAGE]
1384 -a set_bugowner USER PROJECT [PACKAGE]
1385 ]
1386
1387 Option -m works for all types of request, the rest work only for
1388 submit.
1389
1390 Example:
1391 osc creq -a submit -a delete home:someone:branches:openSUSE:Tools
1392 -a change_devel openSUSE:Tools osc home:someone:branches:openSUSE:Tools
1393 -m ok
1394
1395 This will submit all modified packages under current directory,
1396 delete project home:someone:branches:openSUSE:Tools and change the de‐
1397 vel project to home:someone:branches:openSUSE:Tools for package osc in
1398 project openSUSE:Tools.
1399
1400 options:
1401
1402 -a ACTION [[ARGS] ...], --action ACTION [[ARGS] ...]
1403 specify action type of a request, can be : sub‐
1404 mit/delete/change_devel/add_role/set_bugowner
1405
1406
1407 -m TEXT, --message TEXT
1408 specify message TEXT
1409
1410
1411 -r REV, --revision REV
1412 for "create", specify a certain source revision ID (the
1413 md5 sum)
1414
1415
1416 -s REQUEST_ID, --supersede REQUEST_ID
1417 Superseding another request by this one
1418
1419
1420 --nodevelproject
1421 do not follow a defined devel project (primary project
1422 where a package is developed)
1423
1424
1425 --cleanup
1426 remove package if submission gets accepted (default for
1427 home:<id>:branch projects)
1428
1429
1430 --no-cleanup
1431 never remove source package on accept, but update its
1432 content
1433
1434
1435 --no-update
1436 never touch source package on accept (will break source
1437 links)
1438
1439
1440 --yes proceed without asking.
1441
1442
1443 osc delete (remove, del, rm)
1444 Mark files or package directories to be deleted upon the next 'checkin'
1445
1446 usage: osc [global opts] delete [-h] [-f]
1447
1448 usage:
1449 cd .../PROJECT/PACKAGE
1450 osc delete FILE [...]
1451 cd .../PROJECT
1452 osc delete PACKAGE [...]
1453
1454 This command works on check out copies. Use "rdelete" for working on
1455 server side only. This is needed for removing the entire project.
1456
1457 As a safety measure, projects must be empty (i.e., you need to delete
1458 all packages first).
1459
1460 If you are sure that you want to remove a package and all its files use
1461 '--force' switch. Sometimes this also works without --force.
1462
1463 options:
1464
1465 -f, --force
1466 forces removal of entire package and its files
1467
1468
1469 osc deleterequest (deletereq, droprequest, dropreq, dr)
1470 Request to delete (or 'drop') a package or project
1471
1472 usage: osc [global opts] deleterequest [-h] [-m TEXT] [-r REPOSITORY]
1473 [--all]
1474 [--accept-in-hours HOURS]
1475
1476 usage:
1477 osc deletereq [-m TEXT] # works in checked out
1478 project/package
1479 osc deletereq [-m TEXT] PROJECT PACKAGE
1480 osc deletereq [-m TEXT] PROJECT [--all|--repository REPOSITORY]
1481
1482 options:
1483
1484 -m TEXT, --message TEXT
1485 specify message TEXT
1486
1487
1488 -r REPOSITORY, --repository REPOSITORY
1489 specify repository
1490
1491
1492 --all deletes entire project with packages inside
1493
1494
1495 --accept-in-hours HOURS
1496 specify time when request shall get accepted automati‐
1497 cally. Only works with write permissions in target.
1498
1499
1500 osc dependson
1501 Dependson shows the build dependencies inside of a project, valid for a
1502 given repository and architecture
1503
1504 usage: osc [global opts] dependson [-h]
1505
1506 The command can be used to find build dependencies (wrt. a given repos‐
1507 itory and arch) that reside in the same project. To see all build de‐
1508 pendencies use the buildinfo command.
1509
1510 This is no guarantee, since the new build might have changed dependen‐
1511 cies.
1512
1513 NOTE: to see all binary packages, which can trigger a build you need to
1514 refer the buildinfo, since this command shows only the dependen‐
1515 cies
1516 inside of a project.
1517
1518 The arguments REPOSITORY and ARCH can be taken from the first two col‐
1519 umns of the 'osc repos' output.
1520
1521 usage in package or project directory:
1522 osc dependson REPOSITORY ARCH
1523
1524 usage:
1525 osc dependson PROJECT [PACKAGE] REPOSITORY ARCH
1526
1527 osc detachbranch
1528 Replace a link with its expanded sources
1529
1530 usage: osc [global opts] detachbranch [-h] [-m TEXT]
1531
1532 If a package is a link it is replaced with its expanded sources. The
1533 link does not exist anymore.
1534
1535 usage:
1536 osc detachbranch # from a package working copy
1537 osc detachbranch PROJECT PACKAGE
1538
1539 options:
1540
1541 -m TEXT, --message TEXT
1542 specify message TEXT
1543
1544
1545 osc develproject (dp, bsdevelproject)
1546 Print the devel project / package of a package
1547
1548 usage: osc [global opts] develproject [-h]
1549
1550 Examples:
1551 osc develproject [PROJECT PACKAGE]
1552
1553 osc diff (di, ldiff, linkdiff)
1554 Generates a diff
1555
1556 usage: osc [global opts] diff [-h] [-c rev] [-r rev1[:rev2]] [-M] [-p]
1557 [-l]
1558 [--missingok] [-u]
1559
1560 Generates a diff, comparing local changes against the repository
1561 server.
1562
1563 usage:
1564 ARG, if specified, is a filename to include in the diff.
1565 Default: all files.
1566
1567 osc diff --link
1568 osc linkdiff
1569 Compare current checkout directory against the link base.
1570
1571 osc diff --link PROJ PACK
1572 osc linkdiff PROJ PACK
1573 Compare a package against the link base (ignoring working copy
1574 changes).
1575
1576 options:
1577
1578 -c rev, --change rev
1579 the change made by revision rev (like -r rev-1:rev).If
1580 rev is negative this is like -r rev:rev-1.
1581
1582
1583 -r rev1[:rev2], --revision rev1[:rev2]
1584 If rev1 is specified it will compare your working copy
1585 against the revision (rev1) on the server. If rev1 and
1586 rev2 are specified it will compare rev1 against rev2
1587 (NOTE: changes in your working copy are ignored in this
1588 case)
1589
1590
1591 -M, --meta
1592 operate on meta files
1593
1594
1595 -p, --plain
1596 output the diff in plain (not unified) diff format
1597
1598
1599 -l, --link
1600 (osc linkdiff): compare against the base revision of the
1601 link
1602
1603
1604 --missingok
1605 do not fail if the source or target project/package does
1606 not exist on the server
1607
1608
1609 -u, --unexpand
1610 Local changes only, ignore changes in linked package
1611 sources
1612
1613
1614 osc distributions (dists)
1615 Shows all available distributions
1616
1617 usage: osc [global opts] distributions [-h]
1618
1619 This command shows the available distributions. For active distribu‐
1620 tions it shows the name, project and name of the repository and a sug‐
1621 gested default repository name.
1622
1623 usage:
1624 osc distributions
1625
1626 osc downloadassets (da)
1627 Download all assets referenced in the build descriptions
1628
1629 usage: osc [global opts] downloadassets [-h]
1630
1631 osc enablechannels (enablechannel)
1632 Enables channels
1633
1634 usage: osc [global opts] enablechannels [-h]
1635
1636 Enables existing channel packages in a project. Enabling means adding
1637 the needed repositories for building. The command can be used to en‐
1638 able a specific one or all channels of a project.
1639
1640 Examples:
1641 osc enablechannels [PROJECT [PACKAGE]]
1642
1643 osc getbinaries
1644 Download binaries to a local directory
1645
1646 usage: osc [global opts] getbinaries [-h] [-d DIR] [-M FLAVOR]
1647 [--sources]
1648 [--debuginfo] [--ccache]
1649
1650 This command downloads packages directly from the api server. Thus, it
1651 directly accesses the packages that are used for building others even
1652 when they are not "published" yet.
1653
1654 usage:
1655 osc getbinaries REPOSITORY # works
1656 in checked out project/package (check out all archs in subdirs)
1657 osc getbinaries REPOSITORY ARCHITECTURE # works
1658 in checked out project/package
1659 osc getbinaries PROJECT REPOSITORY ARCHITECTURE
1660 osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE
1661 osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE FILE
1662
1663 options:
1664
1665 -d DIR, --destdir DIR
1666 destination directory
1667
1668
1669 -M FLAVOR, --multibuild-package FLAVOR
1670 Get binaries from the specified flavor of a multibuild
1671 package. It is meant for use from a package checkout when
1672 it is not possible to specify package:flavor.
1673
1674
1675 --sources
1676 also fetch source packages
1677
1678
1679 --debuginfo
1680 also fetch debug packages
1681
1682
1683 --ccache
1684 allow fetching ccache archive
1685
1686
1687 osc help (?)
1688 Give detailed help on a specific sub-command
1689
1690 usage: osc [global opts] help [-h]
1691
1692 usage:
1693 %(prog)s [SUBCOMMAND]
1694
1695 osc importsrcpkg
1696 Import a new package from a src.rpm
1697
1698 usage: osc [global opts] importsrcpkg [-h] [-p project] [-n name] [-t
1699 title]
1700 [-d description]
1701 [--delete-old-files]
1702 [-c]
1703 srpm
1704
1705 A new package dir will be created inside the project dir (if no project
1706 is specified and the current working dir is a project dir the package
1707 will be created in this project). If the package does not exist on the
1708 server it will be created too otherwise the meta data of the existing
1709 package will be updated (<title /> and <description />). The src.rpm
1710 will be extracted into the package dir. The files won't be committed
1711 unless you explicitly pass the --commit switch.
1712
1713 SRPM is the path of the src.rpm in the local filesystem, or an URL.
1714
1715 arguments:
1716
1717 srpm
1718
1719
1720 options:
1721
1722 -p project, --project project
1723 specify the path to a project
1724
1725
1726 -n name, --name name
1727 specify a package name
1728
1729
1730 -t title, --title title
1731 set a title
1732
1733
1734 -d description, --description description
1735 set the description of the package
1736
1737
1738 --delete-old-files
1739 delete existing files from the server
1740
1741
1742 -c, --commit
1743 commit the new files
1744
1745
1746 osc info
1747 Print information about a working copy
1748
1749 usage: osc [global opts] info [-h]
1750
1751 Print information about each ARG (default: '.') ARG is a working-copy
1752 path.
1753
1754 osc init
1755 Initialize a directory as working copy
1756
1757 usage: osc [global opts] init [-h] project [package] [scm_url]
1758
1759 Initialize an existing directory to be a working copy of an (already
1760 existing) buildservice project/package.
1761
1762 (This is the same as checking out a package and then copying sources
1763 into the directory. It does NOT create a new package. To create a pack‐
1764 age, use 'osc meta pkg ... ...')
1765
1766 You wouldn't normally use this command.
1767
1768 To get a working copy of a package (e.g. for building it or working on
1769 it, you would normally use the checkout command. Use "osc help check‐
1770 out" to get help for it.
1771
1772 usage:
1773 osc init PRJ
1774 osc init PRJ PAC
1775 osc init PRJ PAC SCM_URL
1776
1777 arguments:
1778
1779 project
1780
1781
1782 package
1783
1784
1785 scm_url
1786
1787
1788 osc jobhistory (jobhist)
1789 Shows the job history of a project
1790
1791 usage: osc [global opts] jobhistory [-h] [--csv] [-l limit] [-M FLAVOR]
1792
1793 The arguments REPOSITORY and ARCH can be taken from the first two col‐
1794 umns of the 'osc repos' output.
1795
1796 usage:
1797 osc jobhist REPOSITORY ARCHITECTURE (in project dir)
1798 osc jobhist PROJECT [PACKAGE[:FLAVOR]] REPOSITORY ARCHITECTURE
1799
1800 options:
1801
1802 --csv generate output in CSV (separated by |)
1803
1804
1805 -l limit, --limit limit
1806 for setting the number of results
1807
1808
1809 -M FLAVOR, --multibuild-package FLAVOR
1810 Only work with the specified flavor of a multibuild pack‐
1811 age.
1812
1813
1814 osc linkpac
1815 "Link" a package to another package
1816
1817 usage: osc [global opts] linkpac [-h] [-C {add,copy,local}] [-c] [-r
1818 rev] [-f]
1819 [--disable-build] [-d] [-N]
1820
1821 A linked package is a clone of another package, but plus local modifi‐
1822 cations. It can be cross-project.
1823
1824 The TARGET_PACKAGE name is optional; the source packages' name will be
1825 used if TARGET_PACKAGE is omitted.
1826
1827 Afterwards, you will want to 'checkout TARGET_PROJECT TARGET_PACKAGE'.
1828
1829 To add a patch, add the patch as file and add it to the _link file.
1830 You can also specify text which will be inserted at the top of the spec
1831 file.
1832
1833 See the examples in the _link file.
1834
1835 NOTE: In case you want to fix or update another package, you should use
1836 the 'branch'
1837 command. A branch has correct repositories (and a link) setup up
1838 by default and
1839 will be cleaned up automatically after it was submitted back.
1840
1841 usage:
1842 osc linkpac PROJECT PACKAGE TARGET_PROJECT [TARGET_PACKAGE]
1843 osc linkpac TARGET_PROJECT [TARGET_PACKAGE] # from a package
1844 checkout
1845
1846 options:
1847
1848 -C {add,copy,local}, --cicount {add,copy,local}
1849 cicount attribute in the link, known values are add,
1850 copy, and local, default in buildservice is currently
1851 add.
1852
1853
1854 -c, --current
1855 link fixed against current revision.
1856
1857
1858 -r rev, --revision rev
1859 link the specified revision.
1860
1861
1862 -f, --force
1863 overwrite an existing link file if it is there.
1864
1865
1866 --disable-build
1867 disable building of the linked package
1868
1869
1870 -d, --disable-publish
1871 disable publishing of the linked package
1872
1873
1874 -N, --new-package
1875 create a link to a not yet existing package
1876
1877
1878 osc linktobranch
1879 Convert a package containing a classic link with patch to a branch
1880
1881 usage: osc [global opts] linktobranch [-h]
1882
1883 This command tells the server to convert a _link with or without a
1884 project.diff to a branch. This is a full copy with a _link file point‐
1885 ing to the branched place.
1886
1887 usage:
1888 osc linktobranch # from a package working copy
1889 osc linktobranch PROJECT PACKAGE
1890
1891 osc list (LL, lL, ll, ls)
1892 List sources or binaries on the server
1893
1894 usage: osc [global opts] list [-h] [-a ARCH] [-r REPO] [-b] [-e] [-u]
1895 [-l]
1896 [-D] [-M] [-R REVISION]
1897
1898 Examples for listing sources:
1899 ls # list all projects (deprecated)
1900 ls / # list all projects
1901 ls . # take PROJECT/PACKAGE from current dir.
1902 ls PROJECT # list packages in a project
1903 ls PROJECT PACKAGE # list source files of package of a
1904 project
1905 ls PROJECT PACKAGE <file> # list <file> if this file exists
1906 ls -v PROJECT PACKAGE # verbosely list source files of package
1907 ls -l PROJECT PACKAGE # verbosely list source files of package
1908 ll PROJECT PACKAGE # verbosely list source files of package
1909 LL PROJECT PACKAGE # verbosely list source files of ex‐
1910 panded link
1911
1912 With --verbose, the following fields will be shown for each item:
1913 MD5 hash of file
1914 Revision number of the last commit
1915 Size (in bytes)
1916 Date and time of the last commit
1917
1918 Examples for listing binaries:
1919 ls -b PROJECT # list all binaries of a project
1920 ls -b PROJECT -a ARCH # list ARCH binaries of a project
1921 ls -b PROJECT -r REPO # list binaries in REPO
1922 ls -b PROJECT PACKAGE REPO ARCH
1923
1924 usage:
1925 ls [PROJECT [PACKAGE]]
1926 ls -b [PROJECT [PACKAGE [REPO [ARCH]]]]
1927
1928 options:
1929
1930 -a ARCH, --arch ARCH
1931 specify architecture (only for binaries)
1932
1933
1934 -r REPO, --repo REPO
1935 specify repository (only for binaries)
1936
1937
1938 -b, --binaries
1939 list built binaries instead of sources
1940
1941
1942 -e, --expand
1943 expand linked package (only for sources)
1944
1945
1946 -u, --unexpand
1947 always work with unexpanded (source) packages
1948
1949
1950 -l, --long
1951 print extra information
1952
1953
1954 -D, --deleted
1955 show only the former deleted projects or packages
1956
1957
1958 -M, --meta
1959 list meta data files
1960
1961
1962 -R REVISION, --revision REVISION
1963 specify revision (only for sources)
1964
1965
1966 osc localbuildlog (lbl)
1967 Shows the build log of a local buildchroot
1968
1969 usage: osc [global opts] localbuildlog [-h] [-o OFFSET] [-s]
1970
1971 usage:
1972 osc lbl [REPOSITORY [ARCH]]
1973 osc lbl # show log of newest last local build
1974
1975 options:
1976
1977 -o OFFSET, --offset OFFSET
1978 get log starting from offset
1979
1980
1981 -s, --strip-time
1982 strip leading build time from the log
1983
1984
1985 osc lock
1986 Locks a project or package
1987
1988 usage: osc [global opts] lock [-h] [-m TEXT]
1989
1990 usage:
1991 osc lock PROJECT [PACKAGE]
1992
1993 options:
1994
1995 -m TEXT, --message TEXT
1996 specify log message TEXT
1997
1998
1999 osc log
2000 Shows the commit log of a package
2001
2002 usage: osc [global opts] log [-h] [-r rev] [--csv] [--xml] [-D] [-M]
2003
2004 usage:
2005 osc log (inside working copy)
2006 osc log remote_project [remote_package]
2007
2008 options:
2009
2010 -r rev, --revision rev
2011 show log of the specified revision
2012
2013
2014 --csv generate output in CSV (separated by |)
2015
2016
2017 --xml generate output in XML
2018
2019
2020 -D, --deleted
2021 work on deleted package
2022
2023
2024 -M, --meta
2025 checkout out meta data instead of sources
2026
2027
2028 osc maintainer (bugowner)
2029 Show maintainers according to server side configuration
2030
2031 usage: osc [global opts] maintainer [-h] [-b] [-B] [-e] [--nodevelpro‐
2032 ject]
2033 [-D devel_project] [-a user] [-A]
2034 [-s user] [-S user] [-U USER] [-G
2035 GROUP]
2036 [-d user] [-r role] [-m MESSAGE]
2037
2038 # Search for official maintained sources in OBS instance osc maintainer
2039 BINARY_OR_PACKAGE_NAME <options> osc maintainer -U <user> <options> osc
2040 maintainer -G <group> <options>
2041
2042 # Lookup via containers osc maintainer <options> osc maintainer PRJ
2043 <options> osc maintainer PRJ PKG <options>
2044
2045 The tool looks up the default responsible person for a certain project
2046 or package. When using with an OBS 2.4 (or later) server it is doing
2047 the lookup for a given binary according to the server side configura‐
2048 tion of default owners.
2049
2050 The tool is also looking into devel packages and supports to fallback
2051 to the project in case a package has no defined maintainer.
2052
2053 Please use "osc meta pkg" in case you need to know the definition in a
2054 specific container.
2055
2056 PRJ and PKG default to current working-copy path.
2057
2058 options:
2059
2060 -b, --bugowner-only
2061 Show only the bugowner
2062
2063
2064 -B, --bugowner
2065 Show only the bugowner if defined, or maintainer other‐
2066 wise
2067
2068
2069 -e, --email
2070 show email addresses instead of user names
2071
2072
2073 --nodevelproject
2074 do not follow a defined devel project (primary project
2075 where a package is developed)
2076
2077
2078 -D devel_project, --devel-project devel_project
2079 define the project where this package is primarily devel‐
2080 oped
2081
2082
2083 -a user, --add user
2084 add a new person for given role ("maintainer" by default)
2085
2086
2087 -A, --all
2088 list all found entries not just the first one
2089
2090
2091 -s user, --set-bugowner user
2092 Set the bugowner to specified person (or group via group:
2093 prefix)
2094
2095
2096 -S user, --set-bugowner-request user
2097 Set the bugowner to specified person via a request (or
2098 group via group: prefix)
2099
2100
2101 -U USER, --user USER
2102 All official maintained instances for the specified USER
2103
2104
2105 -G GROUP, --group GROUP
2106 All official maintained instances for the specified GROUP
2107
2108
2109 -d user, --delete user
2110 delete a maintainer/bugowner (can be specified via
2111 --role)
2112
2113
2114 -r role, --role role
2115 Specify user role
2116
2117
2118 -m MESSAGE, --message MESSAGE
2119 Define message as commit entry or request description
2120
2121
2122 osc maintenancerequest (mr)
2123 Create a request for starting a maintenance incident
2124
2125 usage: osc [global opts] maintenancerequest [-h] [-a ATTRIBUTE] [-m
2126 TEXT]
2127 [--release-project RELEASE‐
2128 PROJECT]
2129 [--enforce-branching]
2130 [--no-cleanup] [--cleanup]
2131 [--incident INCIDENT]
2132 [--incident-project INCI‐
2133 DENT_PROJECT]
2134 [-s REQUEST_ID]
2135
2136 [See https://openbuildservice.org/help/manu‐
2137 als/obs-user-guide/cha.obs.maintenance_setup.html for information on
2138 this topic.]
2139
2140 This command is asking the maintenance team to start a maintenance in‐
2141 cident based on a created maintenance update. Please see the "mbranch"
2142 command on how to create such a project and the "patchinfo" command how
2143 add the required maintenance update information.
2144
2145 usage:
2146 osc maintenancerequest [ SOURCEPROJECT [ SOURCEPACKAGES RELEASEPRO‐
2147 JECT ] ]
2148 osc maintenancerequest .
2149
2150 The 2nd line when issued within a package directory provides a short
2151 cut to submit a single package (the one in the current directory) from
2152 the project of this package to be submitted to the release project this
2153 package links to. This syntax is only valid when specified from a pack‐
2154 age subdirectory.
2155
2156 options:
2157
2158 -a ATTRIBUTE, --attribute ATTRIBUTE
2159 Use this attribute to find default maintenance project
2160 (default is OBS:MaintenanceProject)
2161
2162
2163 -m TEXT, --message TEXT
2164 specify message TEXT
2165
2166
2167 --release-project RELEASEPROJECT
2168 Specify the release project
2169
2170
2171 --enforce-branching
2172 submit from a fresh branched project
2173
2174
2175 --no-cleanup
2176 do not remove source project on accept
2177
2178
2179 --cleanup
2180 do remove source project on accept
2181
2182
2183 --incident INCIDENT
2184 specify incident number to merge in
2185
2186
2187 --incident-project INCIDENT_PROJECT
2188 specify incident project to merge in
2189
2190
2191 -s REQUEST_ID, --supersede REQUEST_ID
2192 Superseding another request by this one
2193
2194
2195 osc mbranch (maintained, sm)
2196 Search or branch multiple instances of a package
2197
2198 usage: osc [global opts] mbranch [-h] [-c] [-a ATTRIBUTE]
2199 [-u UPDATE_ATTRIBUTE] [--dryrun]
2200 [--noaccess]
2201 [--nodevelproject] [--version]
2202
2203 This command is used for searching all relevant instances of packages
2204 and creating links of them in one project. This is esp. used for main‐
2205 tenance updates. It can also be used to branch all packages marked be‐
2206 fore with a given attribute.
2207
2208 [See http://en.opensuse.org/openSUSE:Build_Service_Concept_Maintenance
2209 for information on this topic.]
2210
2211 The branched package will live in
2212 home:USERNAME:branches:ATTRIBUTE:PACKAGE if nothing else specified.
2213
2214 If osc maintained or sm is issued only the relevant instances of a
2215 package will be shown. No branch will be created. This is similar to
2216 osc mbranch --dryrun.
2217
2218 usage:
2219 osc sm [SOURCEPACKAGE] [-a ATTRIBUTE]
2220 osc mbranch [ SOURCEPACKAGE [ TARGETPROJECT ] ]
2221
2222 options:
2223
2224 -c, --checkout
2225 Checkout branched package afterwards ('osc bco' is a
2226 shorthand for this option)
2227
2228
2229 -a ATTRIBUTE, --attribute ATTRIBUTE
2230 Use this attribute to find affected packages (default is
2231 OBS:Maintained)
2232
2233
2234 -u UPDATE_ATTRIBUTE, --update-project-attribute UPDATE_ATTRIBUTE
2235 Use this attribute to find update projects (default is
2236 OBS:UpdateProject)
2237
2238
2239 --dryrun
2240 Just simulate the action and report back the result.
2241
2242
2243 --noaccess
2244 Create a hidden project
2245
2246
2247 --nodevelproject
2248 do not follow a defined devel project (primary project
2249 where a package is developed)
2250
2251
2252 --version
2253 print version of maintained package
2254
2255
2256 osc meta
2257 Show meta information, or edit it
2258
2259 usage: osc [global opts] meta [-h] [-a ATTRIBUTE] [--attribute-de‐
2260 faults]
2261 [--attribute-project] [--blame] [-f] [-F
2262 FILE]
2263 [-r REV] [-m TEXT] [-e] [-c] [-R]
2264 [-s ATTRIBUTE_VALUES] [--add ATTRI‐
2265 BUTE_VALUES]
2266 [--delete]
2267
2268 Show or edit build service metadata of type <prj|pkg|prjconf|user|pat‐
2269 tern>.
2270
2271 This command displays metadata on buildservice objects like projects,
2272 packages, or users. The type of metadata is specified by the word after
2273 "meta", like e.g. "meta prj".
2274
2275 prj denotes metadata of a buildservice project. prjconf denotes the
2276 (build) configuration of a project. pkg denotes metadata of a build‐
2277 service package. user denotes the metadata of a user. group denotes
2278 the metadata of a group. pattern denotes installation patterns defined
2279 for a project.
2280
2281 To list patterns, use 'osc meta pattern PRJ'. An additional argument
2282 will be the pattern file to view or edit.
2283
2284 With the --edit switch, the metadata can be edited. Per default, osc
2285 opens the program specified by the environmental variable EDITOR with a
2286 temporary file. Alternatively, content to be saved can be supplied via
2287 the --file switch. If the argument is '-', input is taken from stdin:
2288 osc meta prjconf home:user | sed ... | osc meta prjconf home:user -F -
2289
2290 For meta prj and prjconf updates optional commit messages can be ap‐
2291 plied with --message.
2292
2293 When trying to edit a non-existing resource, it is created implicitly.
2294
2295 Examples:
2296 osc meta prj PRJ
2297 osc meta pkg PRJ PKG
2298 osc meta pkg PRJ PKG -e
2299
2300 usage:
2301 osc meta <prj|prjconf> [-r|--revision REV] ARGS...
2302 osc meta <prj|pkg|prjconf|user|group|pattern> ARGS...
2303 osc meta <prj|pkg|prjconf|user|group|pattern> [-m|--message TEXT]
2304 -e|--edit ARGS...
2305 osc meta <prj|pkg|prjconf|user|group|pattern> [-m|--message TEXT]
2306 -F|--file ARGS...
2307 osc meta pattern --delete PRJ PATTERN
2308 osc meta attribute PRJ [PKG [SUBPACKAGE]] [--attribute ATTRIBUTE]
2309 [--create [--set <value_list>]|--delete|--set <value_list>]
2310
2311 options:
2312
2313 -a ATTRIBUTE, --attribute ATTRIBUTE
2314 affect only a given attribute
2315
2316
2317 --attribute-defaults
2318 include defined attribute defaults
2319
2320
2321 --attribute-project
2322 include project values, if missing in packages
2323
2324
2325 --blame
2326 show author and time of each line
2327
2328
2329 -f, --force
2330 force the save operation, allows one to ignores some er‐
2331 rors like depending repositories. For prj meta only.
2332
2333
2334 -F FILE, --file FILE
2335 read metadata from FILE, instead of opening an editor.
2336 '-' denotes standard input.
2337
2338
2339 -r REV, --revision REV
2340 checkout given revision instead of head revision. For prj
2341 and prjconf meta only
2342
2343
2344 -m TEXT, --message TEXT
2345 specify log message TEXT. For prj and prjconf meta only
2346
2347
2348 -e, --edit
2349 edit metadata
2350
2351
2352 -c, --create
2353 create attribute without values
2354
2355
2356 -R, --remove-linking-repositories
2357 Try to remove also all repositories building against re‐
2358 move ones.
2359
2360
2361 -s ATTRIBUTE_VALUES, --set ATTRIBUTE_VALUES
2362 set attribute values
2363
2364
2365 --add ATTRIBUTE_VALUES
2366 add to the existing attribute values, skip duplicates
2367
2368
2369 --delete
2370 delete a pattern or attribute
2371
2372
2373 osc mkpac
2374 Create a new package under version control
2375
2376 usage: osc [global opts] mkpac [-h]
2377
2378 usage:
2379 osc mkpac new_package
2380
2381 osc mv
2382 Move SOURCE file to DEST and keep it under version control
2383
2384 usage: osc [global opts] mv [-h] [-f] source dest
2385
2386 arguments:
2387
2388 source
2389
2390
2391 dest
2392
2393
2394 options:
2395
2396 -f, --force
2397 forces removal of entire package and its files
2398
2399
2400 osc my
2401 Show waiting work, packages, projects or requests involving yourself
2402
2403 usage: osc [global opts] my [-h] [-b] [-m] [-a] [-U USER]
2404 [--exclude-project EXCLUDE_PROJECT]
2405 [--maintained]
2406
2407 Examples:
2408 # list all open tasks for me
2409 osc my [work]
2410 # list packages where I am bugowner
2411 osc my pkg -b
2412 # list projects where I am maintainer
2413 osc my prj -m
2414 # list request for all my projects and packages
2415 osc my rq
2416 # list requests, excluding project 'foo' and 'bar'
2417 osc my rq --exclude-project foo,bar
2418 # list requests I made
2419 osc my sr
2420
2421 usage:
2422 osc my <TYPE>
2423
2424 where TYPE is one of requests, submitrequests,
2425 projects or packages (rq, sr, prj or pkg)
2426
2427 options:
2428
2429 -b, --bugowner
2430 restrict listing to items where the user is bugowner
2431
2432
2433 -m, --maintainer
2434 restrict listing to items where the user is maintainer
2435
2436
2437 -a, --all
2438 all involvements
2439
2440
2441 -U USER, --user USER
2442 search for USER instead of yourself
2443
2444
2445 --exclude-project EXCLUDE_PROJECT
2446 exclude requests for specified project
2447
2448
2449 --maintained
2450 limit search results to packages with maintained attri‐
2451 bute set.
2452
2453
2454 osc patchinfo
2455 Generate and edit a patchinfo file
2456
2457 usage: osc [global opts] patchinfo [-h] [-f]
2458
2459 A patchinfo file describes the packages for an update and the kind of
2460 problem it solves.
2461
2462 This command either creates a new _patchinfo or updates an existing
2463 one.
2464
2465 Examples:
2466 osc patchinfo
2467 osc patchinfo [PROJECT [PATCH_NAME]]
2468
2469 options:
2470
2471 -f, --force
2472 force generation of new patchinfo file, do not update ex‐
2473 isting one.
2474
2475
2476 osc pdiff
2477 Quick alias to diff the content of a package with its parent
2478
2479 usage: osc [global opts] pdiff [-h] [-p] [-n]
2480
2481 usage:
2482 osc pdiff [--plain|-p] [--nomissing-ok|-n]
2483 osc pdiff [--plain|-p] [--nomissing-ok|-n] PKG
2484 osc pdiff [--plain|-p] [--nomissing-ok|-n] PRJ PKG
2485
2486 options:
2487
2488 -p, --plain
2489 output the diff in plain (not unified) diff format
2490
2491
2492 -n, --nomissingok
2493 fail if the parent package does not exist on the server
2494
2495
2496 osc prdiff (projdiff, projectdiff)
2497 Server-side diff of two projects
2498
2499 usage: osc [global opts] prdiff [-h] [-r] [-e REGEXP] [-i REGEXP] [-n]
2500 [-o]
2501 [-u] [-d]
2502
2503 Compares two projects and either summarizes or outputs the differences
2504 in full. In the second form, a project is compared with one of its
2505 branches inside a home:$USER project (the branch is treated as NEWPRJ).
2506 The home branch is optional if the current working directory is a
2507 checked out copy of it.
2508
2509 usage:
2510 osc prdiff [OPTIONS] OLDPRJ NEWPRJ
2511 osc prdiff [OPTIONS] [home:$USER:branch:$PRJ]
2512
2513 options:
2514
2515 -r, --requests
2516 show open requests for any packages with differences
2517
2518
2519 -e REGEXP, --exclude REGEXP
2520 skip packages matching REGEXP
2521
2522
2523 -i REGEXP, --include REGEXP
2524 only consider packages matching REGEXP
2525
2526
2527 -n, --show-not-in-old
2528 show packages only in the new project
2529
2530
2531 -o, --show-not-in-new
2532 show packages only in the old project
2533
2534
2535 -u, --unified
2536 show full unified diffs of differences
2537
2538
2539 -d, --diffstat
2540 show diffstat of differences
2541
2542
2543 osc prjresults (pr)
2544 Shows project-wide build results
2545
2546 usage: osc [global opts] prjresults [-h] [-b] [-w] [-c] [--xml] [-s
2547 STATUS]
2548 [-n EXPR] [-a ARCH] [-r REPO] [-V]
2549 [--show-excluded]
2550
2551 usage:
2552 osc prjresults (inside working copy)
2553 osc prjresults PROJECT
2554
2555 options:
2556
2557 -b, --brief
2558 show the result in "pkgname repo arch result"
2559
2560
2561 -w, --watch
2562 watch the results until all finished building, only sup‐
2563 ported with --xml
2564
2565
2566 -c, --csv
2567 csv output
2568
2569
2570 --xml generate output in XML
2571
2572
2573 -s STATUS, --status-filter STATUS
2574 show only packages with buildstatus STATUS (see legend)
2575
2576
2577 -n EXPR, --name-filter EXPR
2578 show only packages whose names match EXPR
2579
2580
2581 -a ARCH, --arch ARCH
2582 show results only for specified architecture(s)
2583
2584
2585 -r REPO, --repo REPO
2586 show results only for specified repo(s)
2587
2588
2589 -V, --vertical
2590 list packages vertically instead horizontally
2591
2592
2593 --show-excluded
2594 show packages that are excluded in all repos, also hide
2595 repos that have only excluded packages
2596
2597
2598 osc pull
2599 Merge the changes of the link target into your working copy
2600
2601 usage: osc [global opts] pull [-h]
2602
2603 osc rdelete
2604 Delete a project or packages on the server
2605
2606 usage: osc [global opts] rdelete [-h] [-r] [-f] [-m TEXT]
2607
2608 As a safety measure, project must be empty (i.e., you need to delete
2609 all packages first). Also, packages must have no requests pending
2610 (i.e., you need to accept/revoke such requests first). If you are sure
2611 that you want to remove this project and all its packages use '--recur‐
2612 sive' switch. It may still not work because other depends on it. If
2613 you want to ignore this as well use '--force' switch.
2614
2615 usage:
2616 osc rdelete [-r] [-f] PROJECT [PACKAGE]
2617
2618 options:
2619
2620 -r, --recursive
2621 deletes a project with packages inside
2622
2623
2624 -f, --force
2625 deletes a project where other depends on
2626
2627
2628 -m TEXT, --message TEXT
2629 specify log message TEXT
2630
2631
2632 osc rdiff
2633 Server-side "pretty" diff of two packages
2634
2635 usage: osc [global opts] rdiff [-h] [--issues-only] [-M] [-r N[:M]]
2636 [-p]
2637 [-c rev] [--missingok] [-u] [--xml]
2638
2639 Compares two packages (three or four arguments) or shows the changes of
2640 a specified revision of a package (two arguments)
2641
2642 If no revision is specified the latest revision is used.
2643
2644 usage:
2645 osc rdiff OLDPRJ OLDPAC NEWPRJ [NEWPAC]
2646 osc rdiff PROJECT PACKAGE
2647 osc rdiff PROJECT --meta
2648
2649 options:
2650
2651 --issues-only
2652 show only issues in diff
2653
2654
2655 -M, --meta
2656 diff meta data
2657
2658
2659 -r N[:M], --revision N[:M]
2660 revision id, where N = old revision and M = new revision
2661
2662
2663 -p, --plain
2664 output the diff in plain (not unified) diff format and
2665 show diff of files in archives
2666
2667
2668 -c rev, --change rev
2669 the change made by revision rev (like -r rev-1:rev). If
2670 rev is negative this is like -r rev:rev-1.
2671
2672
2673 --missingok
2674 do not fail if the source or target project/package does
2675 not exist on the server
2676
2677
2678 -u, --unexpand
2679 diff unexpanded version if sources are linked
2680
2681
2682 --xml show diff as xml (only for issues diff)
2683
2684
2685 osc rebuild (rebuildpac)
2686 Trigger package rebuilds
2687
2688 usage: osc [global opts] rebuild [-h] [-a ARCH] [-r REPO] [-f] [-M FLA‐
2689 VOR]
2690 [--all]
2691
2692 Note that it is normally NOT needed to kick off rebuilds like this, be‐
2693 cause they principally happen in a fully automatic way, triggered by
2694 source check-ins. In particular, the order in which packages are built
2695 is handled by the build service.
2696
2697 The arguments REPOSITORY and ARCH can be taken from the first two col‐
2698 umns of the 'osc repos' output.
2699
2700 usage:
2701 osc rebuild [PROJECT [PACKAGE[:FLAVOR] [REPOSITORY [ARCH]]]]
2702
2703 options:
2704
2705 -a ARCH, --arch ARCH
2706 trigger rebuilds for a specific architecture
2707
2708
2709 -r REPO, --repo REPO
2710 trigger rebuilds for a specific repository
2711
2712
2713 -f, --failed
2714 rebuild all failed packages
2715
2716
2717 -M FLAVOR, --multibuild-package FLAVOR
2718 Only work with the specified flavors of a multibuild
2719 package. Globs are resolved according to _multibuild
2720 file from server. Empty string is resolved to a package
2721 without a flavor.
2722
2723
2724 --all Rebuild all packages of entire project
2725
2726
2727 osc release
2728 Release sources and binaries
2729
2730 usage: osc [global opts] release [-h] [-r REPO]
2731 [--target-project TARGETPROJECT]
2732 [--target-repository TARGETREPOSITORY]
2733 [--set-release RELEASETAG] [--no-de‐
2734 lay]
2735
2736 This command is used to transfer sources and binaries without rebuild‐
2737 ing them. It requires defined release targets set to trigger="manual".
2738
2739 usage:
2740 osc release [PROJECT [PACKAGE]]
2741
2742 options:
2743
2744 -r REPO, --repo REPO
2745 Release only binaries from the specified repository
2746
2747
2748 --target-project TARGETPROJECT
2749 Release only to specified project
2750
2751
2752 --target-repository TARGETREPOSITORY
2753 Release only to specified repository
2754
2755
2756 --set-release RELEASETAG
2757 rename binaries during release using this release tag
2758
2759
2760 --no-delay
2761 Don't put the release job in a queue to be run later, but
2762 immediately run it. Thus the next call to osc prjresult
2763 will reflect it. Otherwise there is no way to know if it
2764 is finished or didn't start yet.
2765
2766
2767 osc releaserequest
2768 Create a release request
2769
2770 usage: osc [global opts] releaserequest [-h] [-m TEXT] [-p PKG]
2771
2772 For maintenance incident projects:
2773
2774 This command is used by the maintenance team to start the release
2775 process of a maintenance update. This includes usually testing based
2776 on the defined reviewers of the update project.
2777
2778 [See https://openbuildservice.org/help/manu‐
2779 als/obs-user-guide/cha.obs.maintenance_setup.html
2780 for information on this topic.]
2781
2782 For normal projects:
2783
2784 This command is used to transfer sources and binaries without rebuild‐
2785 ing them. It requires defined release targets set to trigger="manual".
2786
2787 [See https://openbuildservice.org/help/manu‐
2788 als/obs-user-guide/cha.obs.request_and_review_system.html
2789 for information on this topic.]
2790
2791 usage:
2792 osc releaserequest [-p package] [ SOURCEPROJECT ]
2793
2794 options:
2795
2796 -m TEXT, --message TEXT
2797 specify message TEXT
2798
2799
2800 -p PKG, --package PKG
2801 specify packages to release
2802
2803
2804 osc remotebuildlog (remotebuildlogtail, rbuildlogtail, rblt, rbuildlog,
2805 rbl)
2806 Shows the build log of a package
2807
2808 usage: osc [global opts] remotebuildlog [-h] [-l] [--lastsucceeded]
2809 [-M FLAVOR] [-o OFFSET] [-s]
2810
2811 Shows the log file of the build of a package. Can be used to follow the
2812 log while it is being written.
2813
2814 remotebuildlogtail shows just the tail of the log file.
2815
2816 usage:
2817 osc remotebuildlog project package[:flavor] repository arch
2818 or
2819 osc remotebuildlog project/package[:flavor]/repository/arch
2820 or
2821 osc remotebuildlog buildlogurl
2822
2823 options:
2824
2825 -l, --last
2826 Show the last finished log file
2827
2828
2829 --lastsucceeded, --last-succeeded
2830 Show the last succeeded log file
2831
2832
2833 -M FLAVOR, --multibuild-package FLAVOR
2834 Only work with the specified flavor of a multibuild pack‐
2835 age.
2836
2837
2838 -o OFFSET, --offset OFFSET
2839 get log starting or ending from the offset
2840
2841
2842 -s, --strip-time
2843 strip leading build time from the log
2844
2845
2846 osc repairlink
2847 Repair a broken source link
2848
2849 usage: osc [global opts] repairlink [-h] [-d DIR]
2850
2851 This command checks out a package with merged source changes. It uses a
2852 3-way merge to resolve file conflicts. After reviewing/repairing the
2853 merge, use 'osc resolved ...' and 'osc ci' to re-create a working
2854 source link.
2855
2856 usage: * For merging conflicting changes of a checkout package:
2857 osc repairlink
2858
2859 * Check out a package and merge changes:
2860 osc repairlink PROJECT PACKAGE
2861
2862 * Pull conflicting changes from one project into another one:
2863 osc repairlink PROJECT PACKAGE INTO_PROJECT [INTO_PACKAGE]
2864
2865 options:
2866
2867 -d DIR, --destdir DIR
2868 destination directory
2869
2870
2871 osc repairwc
2872 Try to repair an inconsistent working copy
2873
2874 usage: osc [global opts] repairwc [-h] [--force-apiurl]
2875
2876 Examples:
2877 osc repairwc <path>
2878
2879 Note: if <path> is omitted it defaults to '.' (<path> can be a project
2880 or package working copy)
2881
2882 Warning: This command might delete some files in the storedir (.osc).
2883 Please check the state of the wc afterwards (via 'osc status').
2884
2885 options:
2886
2887 --force-apiurl
2888 ask once for an apiurl and force this apiurl for all in‐
2889 consistent projects/packages
2890
2891
2892 osc repositories (platforms, repos)
2893 Shows repositories configured for a project
2894
2895 usage: osc [global opts] repositories [-h]
2896
2897 It skips repositories by default which are disabled for a given pack‐
2898 age.
2899
2900 usage:
2901 osc repos
2902 osc repos [PROJECT] [PACKAGE]
2903
2904 osc repourls
2905 Shows URLs of .repo files
2906
2907 usage: osc [global opts] repourls [-h]
2908
2909 Shows URLs on which to access the project repositories.
2910
2911 usage:
2912 osc repourls [PROJECT]
2913
2914 osc request (review, rq)
2915 Show or modify requests and reviews
2916
2917 usage: osc [global opts] request [-h] [-d] [-S SUPERSEDED_REQUEST] [-u]
2918 [--no-devel] [-m TEXT] [-t TYPE] [-a]
2919 [-f]
2920 [-s STATE] [-D DAYS] [-U USER] [-G
2921 GROUP]
2922 [-P PROJECT] [-p PACKAGE] [-b] [-M]
2923 [-B] [-e]
2924 [-i] [--or-revoke] [--non-interactive]
2925 [--exclude-target-project EXCLUDE_TAR‐
2926 GET_PROJECT]
2927 [--keep-packages-locked] [--incoming]
2928 [--involved-projects]
2929 [--target-package-filter TARGET_PACK‐
2930 AGE_FILTER]
2931 [--source-buildstatus]
2932
2933 [See http://en.opensuse.org/openSUSE:Build_Service_Collaboration for
2934 information on this topic.]
2935
2936 The 'request' command has the following sub commands:
2937
2938 "list" lists open requests attached to a project or package or person.
2939 Uses the project/package of the current directory if none of -M, -U
2940 USER, project/package are given.
2941
2942 "log" will show the history of the given ID
2943
2944 "show" will show the request itself, and generate a diff for review, if
2945 used with the --diff option. The keyword show can be omitted if the ID
2946 is numeric.
2947
2948 "decline" will change the request state to "declined"
2949
2950 "reopen" will set the request back to new or review.
2951
2952 "setincident" will direct "maintenance" requests into specific inci‐
2953 dents
2954
2955 "supersede" will supersede one request with another existing one.
2956
2957 "revoke" will set the request state to "revoked" WARNING: Revoking a
2958 maitenance release request unlocks packages in the source project.
2959 To avoid unlocking, use the --keep-packages-locked option.
2960
2961 "accept" will change the request state to "accepted" and will trigger
2962 the actual submit process. That would normally be a server-side copy of
2963 the source package to the target package.
2964
2965 "approve" marks a requests in "review" state as approved. This request
2966 will get accepted automatically when the last review got accepted.
2967
2968 "checkout" will checkout the request's source package ("submit" re‐
2969 quests only).
2970
2971 "prioritize" change the priority of a request to either "critical",
2972 "important", "moderate" or "low"
2973
2974
2975 The 'review' command has the following sub commands:
2976
2977 "list" lists open requests that need to be reviewed by the specified
2978 user or group
2979
2980 "add" adds a person or group as reviewer to a request
2981
2982 "accept" mark the review positive
2983
2984 "decline" mark the review negative. A negative review will decline the
2985 request.
2986
2987 usage:
2988 osc request list [-M] [-U USER] [-s state] [-D DAYS] [-t type] [-B]
2989 [PRJ [PKG]]
2990 osc request log ID
2991 osc request [show] [-d] [-b] ID
2992
2993 osc request accept [-m TEXT] ID
2994 osc request approve [-m TEXT] ID
2995 osc request cancelapproval [-m TEXT] ID
2996 osc request decline [-m TEXT] ID
2997 osc request revoke [-m TEXT] ID
2998 osc request reopen [-m TEXT] ID
2999 osc request setincident [-m TEXT] ID INCIDENT
3000 osc request supersede [-m TEXT] ID SUPERSEDING_ID
3001 osc request approvenew [-m TEXT] PROJECT
3002 osc request prioritize [-m TEXT] ID PRIORITY
3003
3004 osc request checkout/co ID
3005 osc request clone [-m TEXT] ID
3006
3007 osc review show [-d] [-b] ID
3008 osc review list [-U USER] [-G GROUP] [-P PROJECT [-p PACKAGE]] [-s
3009 state]
3010 osc review add [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p PACK‐
3011 AGE]] ID
3012 osc review accept [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p
3013 PACKAGE]] ID
3014 osc review decline [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p
3015 PACKAGE]] ID
3016 osc review reopen [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p
3017 PACKAGE]] ID
3018 osc review supersede [-m TEXT] [-U USER] [-G GROUP] [-P PROJECT [-p
3019 PACKAGE]] ID SUPERSEDING_ID
3020
3021 options:
3022
3023 -d, --diff
3024 generate a diff
3025
3026
3027 -S SUPERSEDED_REQUEST, --superseded-request SUPERSEDED_REQUEST
3028 Create the diff relative to a given former request
3029
3030
3031 -u, --unified
3032 output the diff in the unified diff format
3033
3034
3035 --no-devel
3036 Do not attempt to forward to devel project
3037
3038
3039 -m TEXT, --message TEXT
3040 specify message TEXT
3041
3042
3043 -t TYPE, --type TYPE
3044 limit to requests which contain a given action type (sub‐
3045 mit/delete/change_devel/add_role/set_bugowner/mainte‐
3046 nance_incident/maintenance_release)
3047
3048
3049 -a, --all
3050 all states. Same as'-s all'
3051
3052
3053 -f, --force
3054 enforce state change, can be used to ignore open reviews,
3055 devel-package dependencies and more
3056
3057
3058 -s STATE, --state STATE
3059 only list requests in one of the comma separated given
3060 states (new/review/accepted/revoked/declined) or "all"
3061 [default="new,review,declined"]
3062
3063
3064 -D DAYS, --days DAYS
3065 only list requests in state "new" or changed in the last
3066 DAYS.
3067
3068
3069 -U USER, --user USER
3070 requests or reviews limited for the specified USER
3071
3072
3073 -G GROUP, --group GROUP
3074 requests or reviews limited for the specified GROUP
3075
3076
3077 -P PROJECT, --project PROJECT
3078 requests or reviews limited for the specified PROJECT
3079
3080
3081 -p PACKAGE, --package PACKAGE
3082 requests or reviews limited for the specified PACKAGE,
3083 requires also a PROJECT
3084
3085
3086 -b, --brief
3087 print output in list view as list subcommand
3088
3089
3090 -M, --mine
3091 only show requests created by yourself
3092
3093
3094 -B, --bugowner
3095 also show requests about packages where I am bugowner
3096
3097
3098 -e, --edit
3099 edit a submit action
3100
3101
3102 -i, --interactive
3103 interactive review of request
3104
3105
3106 --or-revoke
3107 For automation scripts: accepts (if using with accept ar‐
3108 gument) a request when it is in new or review state. Or
3109 revoke it when it got declined. Otherwise just do noth‐
3110 ing.
3111
3112
3113 --non-interactive
3114 non-interactive review of request
3115
3116
3117 --exclude-target-project EXCLUDE_TARGET_PROJECT
3118 exclude target project from request list
3119
3120
3121 --keep-packages-locked
3122 Avoid unlocking of packages in maintenance incident when
3123 revoking release requests
3124
3125
3126 --incoming
3127 Show only requests where the project is target
3128
3129
3130 --involved-projects
3131 show all requests for project/packages where USER is in‐
3132 volved
3133
3134
3135 --target-package-filter TARGET_PACKAGE_FILTER
3136 only list requests for the packages matching the package
3137 filter. A (python) regular expression is expected.
3138
3139
3140 --source-buildstatus
3141 print the buildstatus of the source package (only works
3142 with "show" and the interactive review)
3143
3144
3145 osc requestmaintainership (reqbs, reqms, reqmaintainership, requestbugown‐
3146 ership, reqbugownership)
3147 Requests to add user as maintainer or bugowner
3148
3149 usage: osc [global opts] requestmaintainership [-h] [-m TEXT] [-r role]
3150
3151 usage:
3152 osc requestmaintainership # for current
3153 user in checked out package
3154 osc requestmaintainership USER # for speci‐
3155 fied user in checked out package
3156 osc requestmaintainership PROJECT # for current
3157 user if cwd is not a checked out package
3158 osc requestmaintainership PROJECT group:NAME # request for
3159 specified group
3160 osc requestmaintainership PROJECT PACKAGE # for current
3161 user
3162 osc requestmaintainership PROJECT PACKAGE USER # request for
3163 specified user
3164 osc requestmaintainership PROJECT PACKAGE group:NAME # request for
3165 specified group
3166
3167 osc requestbugownership ... # accepts same
3168 parameters but uses bugowner role
3169
3170 options:
3171
3172 -m TEXT, --message TEXT
3173 specify message TEXT
3174
3175
3176 -r role, --role role
3177 specify user role (default: maintainer)
3178
3179
3180 osc resolved
3181 Remove 'conflicted' state on working copy files
3182
3183 usage: osc [global opts] resolved [-h]
3184
3185 If an upstream change can't be merged automatically, a file is put into
3186 in 'conflicted' ('C') state. Within the file, conflicts are marked with
3187 special <<<<<<< as well as ======== and >>>>>>> lines.
3188
3189 After manually resolving all conflicting parts, use this command to re‐
3190 move the 'conflicted' state.
3191
3192 Note: this subcommand does not semantically resolve conflicts or re‐
3193 move conflict markers; it merely removes the conflict-related artifact
3194 files and allows PATH to be committed again.
3195
3196 usage:
3197 osc resolved FILE [FILE...]
3198
3199 osc restartbuild (abortbuild)
3200 Restart the build of a certain project or package
3201
3202 usage: osc [global opts] restartbuild [-h] [-a ARCH] [-M FLAVOR] [-r
3203 REPO]
3204 [--all]
3205
3206 usage:
3207 osc restartbuild [PROJECT [PACKAGE[:FLAVOR] [REPOSITORY [ARCH]]]]
3208
3209 options:
3210
3211 -a ARCH, --arch ARCH
3212 Restart builds for a specific architecture
3213
3214
3215 -M FLAVOR, --multibuild-package FLAVOR
3216 Only work with the specified flavors of a multibuild
3217 package. Globs are resolved according to _multibuild
3218 file from server. Empty string is resolved to a package
3219 without a flavor.
3220
3221
3222 -r REPO, --repo REPO
3223 Restart builds for a specific repository
3224
3225
3226 --all Restart all running builds of entire project
3227
3228
3229 osc results (r)
3230 Shows the build results of a package or project
3231
3232 usage: osc [global opts] results [-h] [-l] [-r REPO] [-a ARCH] [-b]
3233 [--no-multibuild] [-M FLAVOR] [-V]
3234 [-w]
3235 [-s STATUS_FILTER] [-f] [--xml]
3236 [--csv]
3237 [--format FORMAT] [--show-excluded]
3238
3239 usage:
3240 osc results # (inside working copy of PRJ or PKG)
3241 osc results PROJECT [PACKAGE[:FLAVOR]]
3242
3243 options:
3244
3245 -l, --last-build
3246 show last build results (succeeded/failed/unknown)
3247
3248
3249 -r REPO, --repo REPO
3250 Show results only for specified repo(s)
3251
3252
3253 -a ARCH, --arch ARCH
3254 Show results only for specified architecture(s)
3255
3256
3257 -b, --brief
3258 show the result in "pkgname repo arch result". Default
3259 for -f
3260
3261
3262 --no-multibuild
3263 Disable results for all direct affect packages inside of
3264 the project
3265
3266
3267 -M FLAVOR, --multibuild-package FLAVOR
3268 Only work with the specified flavors of a multibuild
3269 package. Globs are resolved according to _multibuild
3270 file from server. Empty string is resolved to a package
3271 without a flavor.
3272
3273
3274 -V, --vertical
3275 list packages vertically instead horizontally for entire
3276 project
3277
3278
3279 -w, --watch
3280 watch the results until all finished building
3281
3282
3283 -s STATUS_FILTER, --status-filter STATUS_FILTER
3284 only show packages with the given build status
3285
3286
3287 -f, --failed
3288 show only failed results
3289
3290
3291 --xml generate output in XML (former results_meta)
3292
3293
3294 --csv generate output in CSV format
3295
3296
3297 --format FORMAT
3298 format string for csv output
3299
3300
3301 --show-excluded
3302 show repos that are excluded for this package
3303
3304
3305 osc revert
3306 Restore changed files or the entire working copy
3307
3308 usage: osc [global opts] revert [-h] file [file ...]
3309
3310 Examples:
3311 osc revert <modified file(s)>
3312 osc revert . Note: this only works for package working copies
3313
3314 arguments:
3315
3316 file
3317
3318
3319 osc rpmlintlog (lint, rpmlint)
3320 Shows the rpmlint logfile
3321
3322 usage: osc [global opts] rpmlintlog [-h]
3323
3324 Shows the rpmlint logfile to analyse if there are any problems with the
3325 spec file and the built binaries.
3326
3327 usage:
3328 osc rpmlintlog project package repository arch
3329
3330 osc rremove
3331 Remove source files from selected package
3332
3333 usage: osc [global opts] rremove [-h] [-f] project package file [file
3334 ...]
3335
3336 arguments:
3337
3338 project
3339
3340
3341 package
3342
3343
3344 file
3345
3346
3347 options:
3348
3349 -f, --force
3350 Don't ask and delete files
3351
3352
3353 osc search (bse, se)
3354 Search for a project and/or package
3355
3356 usage: osc [global opts] search [-h] [--repos-baseurl] [-e] [-s]
3357 [--package]
3358 [--project] [--title] [--description]
3359 [-a ATTRIBUTE] [-V] [-i] [-b] [-m] [-M]
3360 [--csv] [--binary] [-B PROJECT]
3361 [--binaryversion VERSION]
3362
3363 If no option is specified osc will search for projects and packages
3364 which contains the 'search term' in their name, title or description.
3365
3366 usage:
3367 osc search 'search term' <options>
3368 osc bse ... ('osc search --binary')
3369 osc se 'perl(Foo::Bar)' ('osc search --package
3370 perl-Foo-Bar')
3371
3372 options:
3373
3374 --repos-baseurl
3375 show base URLs of download repositories
3376
3377
3378 -e, --exact
3379 show only exact matches, this is default now
3380
3381
3382 -s, --substring
3383 Show also results where the search term is a sub string,
3384 slower search
3385
3386
3387 --package
3388 search for a package
3389
3390
3391 --project
3392 search for a project
3393
3394
3395 --title
3396 search for matches in the 'title' element
3397
3398
3399 --description
3400 search for matches in the 'description' element
3401
3402
3403 -a ATTRIBUTE, --limit-to-attribute ATTRIBUTE
3404 match only when given attribute exists in meta data
3405
3406
3407 -V, --version
3408 show package version, revision, and srcmd5. CAUTION: This
3409 is slow and unreliable
3410
3411
3412 -i, --involved
3413 show projects/packages where given person (or myself) is
3414 involved as bugowner or maintainer [[{group|per‐
3415 son}/]<name>] default: person
3416
3417
3418 -b, --bugowner
3419 as -i, but only bugowner
3420
3421
3422 -m, --maintainer
3423 as -i, but only maintainer
3424
3425
3426 -M, --mine
3427 shorthand for --bugowner --package
3428
3429
3430 --csv generate output in CSV (separated by |)
3431
3432
3433 --binary
3434 search binary packages
3435
3436
3437 -B PROJECT, --baseproject PROJECT
3438 search packages built for PROJECT (implies --binary)
3439
3440
3441 --binaryversion VERSION
3442 search for binary with specified version (implies --bi‐
3443 nary)
3444
3445
3446 osc sendsysrq
3447 Trigger a sysrq in a running build
3448
3449 usage: osc [global opts] sendsysrq [-h] [-M FLAVOR]
3450
3451 This is only going to work when the build is running in a supported VM.
3452 Also only a subset of sysrq are supported. Typical use case for debug‐
3453 ging are 9, t and w in this sequence.
3454
3455 usage:
3456 osc sendsysrq REPOSITORY ARCH SYSRQ
3457 osc sendsysrq PROJECT PACKAGE[:FLAVOR] REPOSITORY ARCH SYSRQ
3458
3459 options:
3460
3461 -M FLAVOR, --multibuild-package FLAVOR
3462 Only work with the specified flavors of a multibuild
3463 package. Globs are resolved according to _multibuild
3464 file from server. Empty string is resolved to a package
3465 without a flavor.
3466
3467
3468 osc service
3469 Handle source services
3470
3471 usage: osc [global opts] service [-h] [-v]
3472
3473 Source services can be used to modify sources like downloading files,
3474 verify files, generating files or modify existing files.
3475
3476 usage:
3477 osc service COMMAND (inside working copy)
3478 osc service run [SOURCE_SERVICE]
3479 osc service runall
3480 osc service manualrun [SOURCE_SERVICE]
3481 osc service remoterun [PROJECT PACKAGE]
3482 osc service merge [PROJECT PACKAGE]
3483 osc service wait [PROJECT PACKAGE]
3484
3485 COMMAND can be:
3486 run r run defined services with modes "trylocal",
3487 "localonly", or no mode set locally,
3488 may take an optional parameter to run only a speci‐
3489 fied source service. In case
3490 parameters exist for this one in _service file they
3491 are used.
3492 runall ra run all services independent of the used mode
3493 manualrun mr run all services with mode "manual", may take an op‐
3494 tional parameter to run only a
3495 specified source service
3496 remoterun rr trigger a re-run on the server side
3497 merge commits all server side generated files and drops
3498 the _service definition
3499 wait waits until the service finishes and returns with an
3500 error if it failed
3501
3502 Not for common usage anymore:
3503 localrun lr the same as "run" but services with mode
3504 "serveronly" are also executed
3505 disabledrun dr run all services with mode "disabled"
3506
3507 options:
3508
3509 -v, --verbose
3510 verbose run of local services for debugging purposes
3511
3512
3513 osc setdevelproject (sdp)
3514 Set the devel project / package of a package
3515
3516 usage: osc [global opts] setdevelproject [-h] [-u]
3517
3518 Examples:
3519 osc setdevelproject [PROJECT PACKAGE] DEVEL_PROJECT [DEVEL_PACKAGE]
3520
3521 options:
3522
3523 -u, --unset
3524 remove devel project
3525
3526
3527 osc setlinkrev
3528 Updates a revision number in a source link
3529
3530 usage: osc [global opts] setlinkrev [-h] [-r rev] [-R] [-u]
3531
3532 This command adds or updates a specified revision number in a source
3533 link. The current revision of the source is used, if no revision num‐
3534 ber is specified.
3535
3536 usage:
3537 osc setlinkrev
3538 osc setlinkrev PROJECT [PACKAGE]
3539
3540 options:
3541
3542 -r rev, --revision rev
3543 use the specified revision.
3544
3545
3546 -R, --use-plain-revision
3547 Do not expand revision the specified or latest rev
3548
3549
3550 -u, --unset
3551 remove revision in link, it will point always to latest
3552 revision
3553
3554
3555 osc showlinked
3556 Show all packages linking to a given one
3557
3558 usage: osc [global opts] showlinked [-h]
3559
3560 Examples:
3561 osc showlinked [PROJECT PACKAGE]
3562
3563 osc signkey
3564 Manage Project Signing Key
3565
3566 usage: osc [global opts] signkey [-h] [--create] [--extend] [--delete]
3567 [--notraverse] [--sslcert]
3568
3569 osc signkey [--create|--delete|--extend] <PROJECT> osc signkey [--no‐
3570 traverse] <PROJECT>
3571
3572 This command is for managing gpg keys. It shows the public key by de‐
3573 fault. There is no way to download or upload the private part of a key
3574 by design.
3575
3576 However you can create a new own key. You may want to consider to sign
3577 the public key with your own existing key.
3578
3579 If a project has no key, the key from upper level project will be used
3580 (e.g. when dropping "KDE:KDE4:Community" key, the one from "KDE:KDE4"
3581 will be used).
3582
3583 WARNING: THE OLD KEY CANNOT BE RESTORED AFTER USING DELETE OR CREATE
3584
3585 options:
3586
3587 --create
3588 create new gpg signing key for this project
3589
3590
3591 --extend
3592 extend expiration date of the gpg public key for this
3593 project
3594
3595
3596 --delete
3597 delete the gpg signing key in this project
3598
3599
3600 --notraverse
3601 don't traverse projects upwards to find key
3602
3603
3604 --sslcert
3605 fetch SSL certificate instead of GPG key
3606
3607
3608 osc status (st)
3609 Show status of files in working copy
3610
3611 usage: osc [global opts] status [-h] [-e]
3612
3613 Show the status of files in a local working copy, indicating whether
3614 files have been changed locally, deleted, added, ...
3615
3616 The first column in the output specifies the status and is one of the
3617 following characters:
3618 ' ' no modifications
3619 'A' Added
3620 'C' Conflicted
3621 'D' Deleted
3622 'M' Modified
3623 'R' Replaced (file was deleted and added again afterwards)
3624 '?' item is not under version control
3625 '!' item is missing (removed by non-osc command) or incomplete
3626 'S' item is skipped (item exceeds a file size limit or is _service:*
3627 file)
3628 'F' Frozen (use "osc pull" to merge conflicts) (package-only state)
3629
3630 examples:
3631 osc st
3632 osc st <directory>
3633 osc st file1 file2 ...
3634
3635 usage:
3636 osc status [OPTS] [PATH...]
3637
3638 options:
3639
3640 -e, --show-excluded
3641 also show files which are excluded by the "exclude_glob"
3642 config option
3643
3644
3645 osc submitrequest (submitpac, submitreq, sr)
3646 Create request to submit source into another Project
3647
3648 usage: osc [global opts] submitrequest [-h] [-m TEXT] [-F FILE] [-r
3649 REV]
3650 [-s REQUEST_ID] [--nodevelpro‐
3651 ject]
3652 [--separate-requests]
3653 [--cleanup]
3654 [--no-cleanup] [--no-update]
3655 [--update-link] [-d] [--yes]
3656
3657 [See http://en.opensuse.org/openSUSE:Build_Service_Collaboration for
3658 information on this topic.]
3659
3660 See the "request" command for showing and modifying existing requests.
3661
3662 usage:
3663 osc submitreq [OPTIONS]
3664 osc submitreq [OPTIONS] DESTPRJ [DESTPKG]
3665 osc submitreq [OPTIONS] SOURCEPRJ SOURCEPKG DESTPRJ [DESTPKG]
3666
3667 osc submitpac ... is a shorthand for osc submitreq --cleanup ...
3668
3669 options:
3670
3671 -m TEXT, --message TEXT
3672 specify message TEXT
3673
3674
3675 -F FILE, --file FILE
3676 read log message from FILE, '-' denotes standard input.
3677
3678
3679 -r REV, --revision REV
3680 specify a certain source revision ID (the md5 sum) for
3681 the source package
3682
3683
3684 -s REQUEST_ID, --supersede REQUEST_ID
3685 Superseding another request by this one
3686
3687
3688 --nodevelproject
3689 do not follow a defined devel project (primary project
3690 where a package is developed)
3691
3692
3693 --separate-requests
3694 Create multiple requests instead of a single one (when
3695 command is used for entire project)
3696
3697
3698 --cleanup
3699 remove package if submission gets accepted (default for
3700 home:<id>:branch projects)
3701
3702
3703 --no-cleanup
3704 never remove source package on accept, but update its
3705 content
3706
3707
3708 --no-update
3709 never touch source package on accept (will break source
3710 links)
3711
3712
3713 --update-link
3714 This transfers the source including the _link file.
3715
3716
3717 -d, --diff
3718 show diff only instead of creating the actual request
3719
3720
3721 --yes proceed without asking.
3722
3723
3724 osc token
3725 Show and manage authentication token
3726
3727 usage: osc [global opts] token [-h] [-c] [-d TOKENID] [-o OPERATION]
3728 [-t TOKENSTRING] [--scm-token SCM_TOKEN]
3729
3730 Authentication token can be used to run specific commands without send‐
3731 ing credentials.
3732
3733 usage:
3734 osc token
3735 osc token --create [--operation <OPERATION>] [<PROJECT> <PACKAGE>]
3736 osc token --delete <TOKENID>
3737 osc token --trigger <TOKENSTRING> [--operation <OPERATION>]
3738 [<PROJECT> <PACKAGE>]
3739
3740 options:
3741
3742 -c, --create
3743 Create a new token
3744
3745
3746 -d TOKENID, --delete TOKENID
3747 Delete a token
3748
3749
3750 -o OPERATION, --operation OPERATION
3751 Default is "runservice", but "branch", "release", "re‐
3752 build", or "workflow" can also be used
3753
3754
3755 -t TOKENSTRING, --trigger TOKENSTRING
3756 Trigger the action of a token
3757
3758
3759 --scm-token SCM_TOKEN
3760 The scm's access token (only in combination with a --op‐
3761 eration=workflow option)
3762
3763
3764 osc triggerreason (tr)
3765 Show reason why a package got triggered to build
3766
3767 usage: osc [global opts] triggerreason [-h] [-M FLAVOR]
3768
3769 The server decides when a package needs to get rebuild, this command
3770 shows the detailed reason for a package. A brief reason is also stored
3771 in the jobhistory, which can be accessed via "osc jobhistory".
3772
3773 Trigger reasons might be:
3774 - new build (never build yet or rebuild manually forced)
3775 - source change (e.g. on updating sources)
3776 - meta change (packages which are used for building have changed)
3777 - rebuild count sync (In case that it is configured to sync release
3778 numbers)
3779
3780 usage in package or project directory:
3781 osc triggerreason REPOSITORY ARCH
3782 osc triggerreason PROJECT PACKAGE[:FLAVOR] REPOSITORY ARCH
3783
3784 options:
3785
3786 -M FLAVOR, --multibuild-package FLAVOR
3787 Only work with the specified flavor of a multibuild pack‐
3788 age.
3789
3790
3791 osc undelete
3792 Restores a deleted project or package on the server
3793
3794 usage: osc [global opts] undelete [-h] [-m TEXT]
3795
3796 The server restores a package including the sources and meta configura‐
3797 tion. Binaries remain to be lost and will be rebuild.
3798
3799 usage:
3800 osc undelete PROJECT
3801 osc undelete PROJECT PACKAGE
3802
3803 options:
3804
3805 -m TEXT, --message TEXT
3806 specify log message TEXT
3807
3808
3809 osc unlock
3810 Unlocks a project or package
3811
3812 usage: osc [global opts] unlock [-h] [-m TEXT]
3813
3814 Unlocks a locked project or package. A comment is required.
3815
3816 usage:
3817 osc unlock PROJECT [PACKAGE]
3818
3819 options:
3820
3821 -m TEXT, --message TEXT
3822 specify log message TEXT
3823
3824
3825 osc update (up)
3826 Update a working copy
3827
3828 usage: osc [global opts] update [-h] [-r REV] [--linkrev REV] [-u] [-e]
3829 [-s]
3830 [-S] [-l limit_size]
3831
3832 examples:
3833
3834 1. osc up
3835 If the current working directory is a package, update it.
3836 If the directory is a project directory, update all contained
3837 packages, AND check out newly added packages.
3838
3839 To update only checked out packages, without checking out new
3840 ones, you might want to use "osc up *" from within the project
3841 dir.
3842
3843 2. osc up PAC
3844 Update the packages specified by the path argument(s)
3845
3846 When --expand-link is used with source link packages, the expanded
3847 sources will be checked out. Without this option, the _link file and
3848 patches will be checked out. The option --unexpand-link can be used to
3849 switch back to the "raw" source with a _link file plus patch(es).
3850
3851 options:
3852
3853 -r REV, --revision REV
3854 update to specified revision (this option will be ignored
3855 if you are going to update the complete project or more
3856 than one package)
3857
3858
3859 --linkrev REV
3860 revision of the link target that is used during link ex‐
3861 pansion
3862
3863
3864 -u, --unexpand-link
3865 if a package is an expanded link, update to the raw _link
3866 file
3867
3868
3869 -e, --expand-link
3870 if a package is a link, update to the expanded sources
3871
3872
3873 -s, --source-service-files
3874 Run local source services after update.
3875
3876
3877 -S, --server-side-source-service-files
3878 Use server side generated sources instead of local gener‐
3879 ation.
3880
3881
3882 -l limit_size, --limit-size limit_size
3883 Skip all files with a given size
3884
3885
3886 osc updatepacmetafromspec (updatepkgmetafromspec, metafromspec)
3887 Update package meta information from a specfile
3888
3889 usage: osc [global opts] updatepacmetafromspec [-h] [--specfile FILE]
3890
3891 ARG, if specified, is a package working copy.
3892
3893 options:
3894
3895 --specfile FILE
3896 Path to specfile. (if you pass more than working copy
3897 this option is ignored)
3898
3899
3900 osc vc
3901 Edit the changes file
3902
3903 usage: osc [global opts] vc [-h] [-m MESSAGE] [-F FILE] [-e]
3904
3905 osc vc [-m MESSAGE|-e] [filename[.changes]|path [file_with_comment]] If
3906 no <filename> is given, exactly one *.changes or *.spec file has to be
3907 in the cwd or in path.
3908
3909 The email address used in .changes file is read from BuildService in‐
3910 stance, or should be defined in oscrc [https://api.opensuse.org/] user
3911 = login pass = password email = user@defined.email
3912
3913 or can be specified via mailaddr environment variable.
3914
3915 By default, osc vc opens the program specified by the EDITOR environ‐
3916 ment variable (and it uses Vim if that variable is not set) with a tem‐
3917 porary file that should replace the *.changes file when saved by the
3918 editor, or discarded otherwise.
3919
3920 options:
3921
3922 -m MESSAGE, --message MESSAGE
3923 add MESSAGE to changes (do not open an editor)
3924
3925
3926 -F FILE, --file FILE
3927 read changes message from FILE (do not open an editor)
3928
3929
3930 -e, --just-edit
3931 just open changes (cannot be used with -m)
3932
3933
3934 osc version
3935 Give version of osc binary
3936
3937 usage: osc [global opts] version [-h]
3938
3939 usage:
3940 osc version
3941
3942 osc whatdependson
3943 Show the packages that require the specified package during the build
3944
3945 usage: osc [global opts] whatdependson [-h]
3946
3947 The command whatdependson can be used to find out what will be trig‐
3948 gered when a certain package changes.
3949
3950 This is no guarantee, since the new build might have changed dependen‐
3951 cies.
3952
3953 The packages marked with the [i] flag are inherited to the project.
3954
3955 The arguments REPOSITORY and ARCH can be taken from the first two col‐
3956 umns of the 'osc repos' output.
3957
3958 usage in package or project directory:
3959 osc whatdependson REPOSITORY ARCH
3960
3961 usage:
3962 osc whatdependson PROJECT [PACKAGE] REPOSITORY ARCH
3963
3964 osc whois (user, who)
3965 Show fullname and email of a buildservice user
3966
3967 usage: osc [global opts] whois [-h] [user ...]
3968
3969 arguments:
3970
3971 user
3972
3973
3974 osc wipebinaries (unpublish)
3975 Delete all binary packages of a certain project/package
3976
3977 usage: osc [global opts] wipebinaries [-h] [-a ARCH] [-M FLAVOR] [-r
3978 REPO]
3979 [--build-disabled]
3980 [--build-failed]
3981 [--broken] [--unresolvable]
3982 [--all]
3983
3984 With the optional argument <package> you can specify a certain package
3985 otherwise all binary packages in the project will be deleted.
3986
3987 usage:
3988 osc wipebinaries OPTS # works in checked out
3989 project dir
3990 osc wipebinaries OPTS PROJECT [PACKAGE[:FLAVOR]]
3991 osc unpublish OPTS # works in checked out
3992 project dir
3993 osc unpublish OPTS PROJECT [PACKAGE[:FLAVOR]]
3994
3995 options:
3996
3997 -a ARCH, --arch ARCH
3998 Delete all binary packages for a specific architecture
3999
4000
4001 -M FLAVOR, --multibuild-package FLAVOR
4002 Only work with the specified flavors of a multibuild
4003 package. Globs are resolved according to _multibuild
4004 file from server. Empty string is resolved to a package
4005 without a flavor.
4006
4007
4008 -r REPO, --repo REPO
4009 Delete all binary packages for a specific repository
4010
4011
4012 --build-disabled
4013 Delete all binaries of packages for which the build is
4014 disabled
4015
4016
4017 --build-failed
4018 Delete all binaries of packages for which the build
4019 failed
4020
4021
4022 --broken
4023 Delete all binaries of packages for which the package
4024 source is bad
4025
4026
4027 --unresolvable
4028 Delete all binaries of packages which have dependency er‐
4029 rors
4030
4031
4032 --all Delete all binaries regardless of the package status
4033 (previously default)
4034
4035
4036 osc workerinfo
4037 Gets the information to a worker from the server
4038
4039 usage: osc [global opts] workerinfo [-h] <hostarch>:<workerid>
4040
4041 Examples:
4042 osc workerinfo x86_64:goat:1
4043
4044 usage:
4045 osc workerinfo <hostarch>:<workerid>
4046
4047 arguments:
4048
4049 <hostarch>:<workerid>
4050
4051
4052
4054 Contributors to the osc project. See the project's GIT history for the complete list.
4055
4056
4058 The latest version of osc may be downloaded from
4059 ⟨https://github.com/openSUSE/osc/⟩
4060
4061
4062
4063osc 2023-12-07 OSC(1)