1YUM::RepoQuery(3) User Contributed Perl Documentation YUM::RepoQuery(3)
2
3
4
6 YUM::RepoQuery - Query a YUM repository for package information
7
9 version 0.002
10
12 use YUM::RepoQuery;
13
14 my $repo = YUM::RepoQuery->new(
15 # short tag to id the repo with
16 id => 'f9-updates-src'
17 # uri to the repository
18 uri => 'ftp://mirrors.kernel.org/fedora/updates/9/SRPMS',
19 );
20
22 YUM::RepoQuery takes the URI to a package repository with YUM metadata,
23 and allows one to query what packages, and versions of those packages,
24 are available in that repo.
25
26 WARNING: This is a very early, primitive package. "Release early,
27 release often", right? :)
28
30 "Release Early, Release Often"
31
32 There's a bunch more that we can do here (not the least of which is
33 documentation!). As I get time, I'll be updating and adding more;
34 please feel free to drop a line with patches / requests either at my
35 email or (preferably) at this module's rt tracker address
36 (bug-yum-repoquery@rt.cpan.org).
37
38 METHODS
39 new()
40 Standard constructor. Takes a number of arguments, two of which
41 are required:
42
43 id (Required) The id one refers to this repo as. Used mainly in
44 looking for existing yum cache directories under /var/tmp/.
45
46 uri (Required) The URI of the repository.
47
48 primary
49 The DBIx::Class schema corresponding to this repository's
50 primary.sqlite.
51
52 other
53 The DBIx::Class schema corresponding to this repository's
54 other.sqlite.
55
56 filelists
57 The DBIx::Class schema corresponding to this repository's
58 filelists.sqlite.
59
60 packages
61 An array of all packages in this repo.
62
63 package_count
64 Returns the count of all packages in this repository.
65
66 has_package (str)
67 When called with a package name, returns true if that package
68 exists in this repository.
69
70 get_package (str)
71 Given a package name, returns the row object corresponding to it.
72
74 No bugs have been reported.
75
76 There's a lot of room for improvement here; a better set of accessors +
77 tests would certainly be nice.
78
79 Please report any bugs or feature requests to
80 "bug-yum-repoquery@rt.cpan.org", or through the web interface at
81 <http://rt.cpan.org>.
82
84 Chris Weyl <cweyl@alumni.drew.edu>
85
87 This software is Copyright (c) 2011 by Chris Weyl.
88
89 This is free software, licensed under:
90
91 The GNU Lesser General Public License, Version 2.1, February 1999
92
93
94
95perl v5.28.1 2011-09-16 YUM::RepoQuery(3)