wiki:WikiStart
Last modified 10 months ago Last modified on 05/20/14 11:17:07

PackageDB-cli

packagedb-cli is a command line interface of the well-known packagedb of the Fedora project.

This interface allows you to:

pkgdb-cli list

  • List all the packages of the project
  • List all the packages of the project following a pattern
  • List all orphaned packages
  • List all orphaned and eol'd packages
  • List all the packages of a given user

pkgdb-cli acl

  • See the ACL of a given package (for all branch or a specific one)
  • See all pending ACL of a given package (for all branch or a specific one)

pkgdb-cli request

  • Request ACL for a given action, package and branch

pkgdb-cli update

  • Approve or denied requested ACL for a given package, user, action, branch

pkgdb-cli orphan

  • Orphan my package(s) using name/regex (ie: pkgdb orphan R-\* devel)
  • Orphan all your packages in one go
  • Orphan a given package, for a given branch
  • Retire a given package, for a given branch
  • Orphan and retire a in one go

pkgdb-cli unorphan

  • Unorphan a given package, for a given branch
  • Unorphan a given package, for a all branches

This interface will allow you to:

  • Find the review bug of a package -- This will be given while listed ACL for a package. Work is being done to integrate the information directly in pkgdb.

With the ACL information is provided:

  • the group which are linked to the package and their permission
  • the packager which are linked to the package and their permission
  • the number of bug open on the bugzilla
  • the date and author of the last build.

These last two information can be removed with the option --noextra.

Current release

The current release is 2.2.

You can install it via yum:

 yum install packagedb-cli

For EL, you can find it in the EPEL repository for EL5 and EL6.

PkgDB2 Library

With the release 2.x packagedb-cli now provides a pkgdb2client.py python library that can be used by anyone to interact with the PkgDB2 API.

You can use this library inside a virtualenv by installing packagedb-cli via pip:

  pip install packagedb-cli

Development

To can clone the git repository via:

git clone http://git.fedorahosted.org/git/packagedb-cli.git

It's a simple python script, so feel free to play with it!

Open Tickets (Feel free to check them out, comment on them or even fix them ;-))

#2
Give some sort of format possibility to the output ?
#5
Output as list instead of matrix
#17
Please add a man page
#21
pkgdb-cli unretire should set the poc by default to the user

Fixed Problems Scheduled for Next Release (2.3)

#19
Ordering in acl output
#20
pkgdb-cli list --user seems slow and lists eol/orphaned by default