FOSSology  4.4.0
Open Source License Compliance by Open Source Software
Package agent

About

The package metadata agent puts data about each package (rpm and deb) into the database.

  • Pkgagent get RPM package info from rpm files using rpm library, Build pkgagent.c need "rpm" and "librpm-dev", running binary just need "rpm".
  • Pkgagent get Debian binary package info from .deb binary control file.
  • Pkgagent get Debian source package info from .dsc file.

Ways to use pkgagent

There are 2 ways to use the pkgagent agent:

  1. Command Line Analysis - test a rpm file from the command line
  2. Agent Based Analysis - run from the scheduler

Command Line Analysis

To analyze a rpm file from the command line:

CLI argument Description
file If files are rpm package listed, display their meta data
-v Verbose (-vv = more verbose)

example:

$ ./pkgagent rpmfile

Agent Based Analysis

To run the pkgagent as an agent simply run with no command line args

CLI argument Description
no file Process data from the scheduler
-i Initialize the database, then exit

example:

$ upload_pk | ./pkgagent
const char * upload_pk
Definition: sqlstatements.h:82

Supported actions

Command line flag Description
-i Initialize the database, then exit
-v Verbose (-vv = more verbose)
-c Specify the directory for the system configuration
-C Run from command line
file If files are rpm package listed, display their package information
no file Process data from the scheduler
-V Print the version info, then exit

Agent source