Main > Programming > Libraries >

Config::YUM 1.8

Config::YUM 1.8

Sponsored Links

Config::YUM 1.8 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.007 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 931
Date added: 2007-04-12
Publisher: Oliver Falk

Config::YUM 1.8 description

Config::YUM is a Perl extension for parsing yum.conf.

SYNOPSIS

use Config::YUM;

my $yp = new Config::YUM;
my $yum_conf = $yp->parse();

foreach(keys %{$yum_conf}) {
print "Section: $_ is called " . $yum_conf->{$_}->{name} . "n";
}

$yum_conf will be a a hash, all INI sections are the primary hash keys.
include= will be automatically downloaded merged with the local yum.conf
mirrorlists will also be downloaded and saved as an array in $yum_conf->{somerepo}->{baseurls}
the first url in mirrorlists will be safed as $yum_conf->{somerepo}->{baseurl}.
exclude statements will be splited and safed to $yum_conf->{somerepo}->{exclude_hash}. Note that we
safe a perl regex string as keys here.

To say it with one sentence. Config::YUM automatically parses a yum.conf does the downloading and provides you
with a ready to use perl hash. :-)

You can define a few things @ new:

- use_cache: 0/1 (1 will enable, default: 0; Uses Cache::File)

- yum_conf: path to your yum.conf (default: /etc/yum.conf)

- yum_repos_d: path to your yum.repos.d (default: /etc/yum.repos.d)

- agent: You LWP::UserAgent agent string (default: Config::YUM/$VERSION)

- releasever: Define your RH/FC release version (rpm -qf --queryformat %{VERSION} /etc/redhat-release; Default: automatically queried)

- basearch: Define your basearch (uname -i; Default: automatically discovered)

- download_primary: Define if we should download/parse the primary.xml.gz

These arguments can be specified this way (dont forget the {!)
my $yp = new Config::YUM({
use_cache => 1,
yum_conf => /etc/yum.conf,
yum_repos_d => /etc/yum.repos.d,
agent => MyProgram/$VERSION,
relasever => 4,
basearch => i386,
download_primary => 1
});

This module provides you with a few functions,
parse() will return a hash containing the allready parsed local/remote yum.conf.

yumconf_local() will return a hash containing the allready parsed local yum.conf (Will run parse(), if you didnt yet)
yumconf_remote() will return a hash containing the allready parsed remote yum.conf (Will run parse(), if you didnt yet)

Config::YUM 1.8 Screenshot

Advertisements

Config::YUM 1.8 Keywords

Bookmark Config::YUM 1.8

Hyperlink code:
Link for forum:

Config::YUM 1.8 Copyright

WareSeeker periodically updates pricing and software information of Config::YUM 1.8 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Config::YUM 1.8 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Config::Magic is a Perl extension for reading all kinds of configuration files. Free Download
Config::File is a Perl module to parse a simple configuration file. Free Download
Xmms::Config is a Perl Interface to xmms_cfg API. Free Download
JoeDog::Config provides a perl extension for parsing data/configuration file. Free Download
User::Utmp is a Perl access to utmp- and utmpx-style databases. Free Download
NDBM_File is a Perl module that allows tied access to ndbm files. Free Download
ODBM_File is a Perl module to allow tied access to odbm files. Free Download
CSS Sync is a Firefox extension which automatically Sync the CSS from your server. Free Download