library rpminfo
Library for retrieving information about RPM packages.
wildlyinaccurate/rpminfo
Library for retrieving information about RPM packages.
- Friday, August 2, 2013
- by wildlyinaccurate
- Repository
- 0 Watchers
- 0 Stars
- 120 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 145 % Grown
, (*1)
RPMInfo retrieves and parses information about RPM packages., (*2)
$query = new RPMInfo\Query('package-name');
$info = $query->getInfo();
// Package information can be accessed using array or object syntax:
$info['name'];
$info->name;
// The following fields are available:
$info->name;
$info->version;
$info->release;
$info->install_date;
$info->group;
$info->size;
$info->signature;
$info->url;
$info->summary;
$info->description;
$info->relocations;
$info->vendor;
$info->build_date;
$info->build_host;
$info->source_rpm;
$info->license;
Instead of querying a package name, you can parse a string., (*3)
$packageInfo = <<<EOL
Name : basesystem Relocations: (not relocatable)
Version : 8.0 Vendor: CentOS
EOL;
$parser = new RPMInfo\Parser;
$info = $parser->parse($packageInfo);
echo $info->name; // "basesystem"
echo $info->relocations; // "(not relocatable)"
echo $info->version; // "8.0"
echo $info->vendor; // "CentOS"
dev-master
9999999-dev
Library for retrieving information about RPM packages.
Sources
Download
MIT
The Requires
The Development Requires
by
Joseph Wynn
rpm
0.1.0
0.1.0.0
Library for retrieving information about RPM packages.
Sources
Download
MIT
The Requires
The Development Requires
by
Joseph Wynn
rpm