| YUM-RepoQuery documentation | view source | Contained in the YUM-RepoQuery distribution. |
YUM::RepoQuery - Query a YUM repository for package information
use YUM::RepoQuery;
my $repo = YUM::RepoQuery->new(
# short tag to id the repo with
id => 'f9-updates-src'
# uri to the repository
uri => 'ftp://mirrors.kernel.org/fedora/updates/9/SRPMS',
);
YUM::RepoQuery takes the URI to a package repository with YUM metadata, and allows one to query what packages, and versions of those packages, are available in that repo.
WARNING: This is a very early, primitive package. "Release early, release often", right? :)
"Release Early, Release Often"
There's a bunch more that we can do here (not the least of which is documentation!). As I get time, I'll be updating and adding more; please feel free to drop a line with patches / requests either at my email or (preferably) at this module's rt tracker address (bug-yum-repoquery@rt.cpan.org).
Standard constructor. Takes a number of arguments, two of which are required:
(Required) The id one refers to this repo as. Used mainly in looking for existing yum cache directories under /var/tmp/.
(Required) The URI of the repository.
The DBIx::Class schema corresponding to this repository's primary.sqlite.
The DBIx::Class schema corresponding to this repository's other.sqlite.
The DBIx::Class schema corresponding to this repository's filelists.sqlite.
An array of all packages in this repo.
Returns the count of all packages in this repository.
When called with a package name, returns true if that package exists in this repository.
Given a package name, returns the row object corresponding to it.
YUM::RepoQuery requires no configuration files or environment variables.
YUM::RepoQuery requires Moose, MooseX::AttributeHelpers, and the external executable 'repoquery'.
None known.
No bugs have been reported.
There's a lot of room for improvement here; a better set of accessors + tests would certainly be nice.
Please report any bugs or feature requests to
bug-yum-repoquery@rt.cpan.org, or through the web interface at
http://rt.cpan.org.
Chris Weyl <cweyl@alumni.drew.edu>
Copyright (c) 2008, Chris Weyl <cweyl@alumni.drew.edu>.
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS OR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the
Free Software Foundation, Inc.,
59 Temple Place, Suite 330,
Boston, MA 02111-1307 USA
# vim:textwidth=96:
| YUM-RepoQuery documentation | view source | Contained in the YUM-RepoQuery distribution. |