https://github.com/rsrchboy/yum-repoquery
Query a YUM repository for package information
https://github.com/rsrchboy/yum-repoquery
Last synced: 3 months ago
JSON representation
Query a YUM repository for package information
- Host: GitHub
- URL: https://github.com/rsrchboy/yum-repoquery
- Owner: rsrchboy
- Created: 2009-09-07T06:46:36.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-09-16T18:18:38.000Z (over 13 years ago)
- Last Synced: 2025-01-16T04:20:58.922Z (5 months ago)
- Language: Perl
- Homepage: http://metacpan.org/release/YUM-RepoQuery/
- Size: 160 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- Changelog: Changes
Awesome Lists containing this project
README
=pod
=head1 NAME
YUM::RepoQuery - Query a YUM repository for package information
=head1 VERSION
version 0.002
=head1 SYNOPSIS
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',
);=head1 DESCRIPTION
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? :)=head1 INTERFACE
"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 (L).=head2 METHODS
=over 4
=item B
Standard constructor. Takes a number of arguments, two of which are
required:=over 4
=item I
(Required) The id one refers to this repo as. Used mainly in looking for
existing yum cache directories under /var/tmp/.=item I
(Required) The URI of the repository.
=back
=item B
The DBIx::Class schema corresponding to this repository's primary.sqlite.
=item B
The DBIx::Class schema corresponding to this repository's other.sqlite.
=item B
The DBIx::Class schema corresponding to this repository's filelists.sqlite.
=item B
An array of all packages in this repo.
=item B
Returns the count of all packages in this repository.
=item B
When called with a package name, returns true if that package exists in this
repository.=item B
Given a package name, returns the row object corresponding to it.
=back
=head1 BUGS AND LIMITATIONS
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
C, or through the web interface at
L.=head1 AUTHOR
Chris Weyl
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 by Chris Weyl.
This is free software, licensed under:
The GNU Lesser General Public License, Version 2.1, February 1999