OnWorks favicon

gbp-pq-rpm - Online in the Cloud

Run gbp-pq-rpm in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gbp-pq-rpm that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



gbp-pq-rpm - Manage patches and development branches in Git


gbp pq-rpm [ --version ] [ --help ] [ --verbose ] [ --color=[auto|on|off] ] [ --color-
scheme=COLOR_SCHEME ] [ --packaging-dir=DIRECTORY ] [ --spec-file=FILEPATH ] [ --upstream-
tag=TAG-FORMAT ] [ --force ] [ --[no-]patch-numbers ] drop | export | import | rebase |
switch | apply


gbp pq-rpm helps in managing patches and development branch(es) for packages that are
maintained with gbp. It designed to be used for packages that are maintained using the
"orphan-packaging" model. gbp pq-rpm has multiple subcommands, or actions, for working
with the branches and patches.

gbp pq-rpm makes it easy to do source code development on a separate development branch
(patch-queue branch in Debian git-buildpackage terms). For example, if the packaging
files would be stored in master the associated development branch would be


import Create a development (patch-queue) branch by applying all patches from the
packaging branch on top of the upstream version. The patches must apply without

export Export patches from the development branch into the packaging branch. It generates
patches (one-per-commit) from the development branch and updates the spec file
accordingly. It doesn't automatically commit the changes though - they need to
verified and committed manually.

rebase Switch to the development branch and rebase it against the current upstream version
(indicated in the spec file of the associated packaging branch).

drop Drop (delete) the development branch associated to the current branch. For example,
you're on branch foo this would drop branch development/foo.

apply Add a single patch to the development branch - similar to using git-am.

switch Switch between the development branch and the associated packaging branch.


Print version of the program, i.e. version of the git-buildpackage suite


Verbose execution


--help Print help and exit

Whether to use colored output.

Colors to use in output (when color is enabled). The format for COLOR_SCHEME is
'<debug>:<info>:<warning>:<error>'. Numerical values and color names are accepted,
empty fields imply the default color. For example, --git-color-scheme='cyan:34::'
would show debug messages in cyan, info messages in blue and other messages in
default (i.e. warning and error messages in red).

Subdirectory that contains the RPM packaging files.

Relative path to the spec file to use. Special value auto causes gbp to search and
guess. Other values cause the --packaging-dir option to be ignored: the directory
of the spec file is used, instead.

Use this tag format when looking for tags of upstream versions, default is

Import even if the development (patch-queue) branch already exists. Only valid for
the import action.

Whether the patch files should start with a number or not.


When exporting patches from a patch-queue branch gbp pq-rpm will look at the commit
message for special tags it recognizes. All tags need to start at the first column and
require at least one whitespace after the colon.

Gbp-Rpm: Ignore
Ignores the commit, no patch is generated out of it.

Gbp-Rpm: If <expression>
Conditional patch. Put patch inside "%if <expression>" in the spec file.

Gbp-Rpm: IfArch<expression>
Conditional patch. Put patch inside "%ifarch <expression>" in the spec file.

For example, the following commit message:

Fix around a problem in Fedora

which is not applicable elsewhere.

Gbp-Rpm: If 0%{?fedora}

Will result something like this in the spec file:

# 0001-Fix-around-a-problem-in-Fedora.patch
%if 0%{?fedora}
%patch0 -p1

Use gbp-pq-rpm online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 2
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 3
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 4
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    Download Dolibarr ERP - CRM
  • 5
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    Download SQuirreL SQL Client
  • 6
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    Download Brackets
  • More »

Linux commands