Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.319.549 Times

Config::YUM 1.8

  Date Added: May 22, 2010  |  Visits: 608

Config::YUM

Report Broken Link
Printer Friendly Version


Product Homepage
Download (89 downloads)



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).

Requirements: No special requirements
Platforms: Linux
Keyword: Automatically Configyum Extension Hash Libraries Parse Parsing Perl Programming Version Will Be Yum
Users rating: 0/10

License: Freeware Size: 7.17 KB
USER REVIEWS
More Reviews or Write Review


CONFIG::YUM RELATED
Libraries  -  Hash::NoVivify 0.01
Hash::NoVivify is a Perl extension for non-vivifying exists and defined functions. SYNOPSIS use Hash::NoVivify qw(Defined Exists); ... if (Exists(%hash, qw(key1 key2 ... keyn ))) { ... } if (Defined(%hash, qw(key1 key2 ... keyn))) {...
3.07 KB  
Libraries  -  File::Listing 5.805
File::Listing is a Perl module to parse directory listing. SYNOPSIS use File::Listing qw(parse_dir); for (parse_dir(`ls -l`)) { ($name, $type, $size, $mtime, $mode) = @$_; next if $type ne f; # plain file #... } # directory listing can...
235.52 KB  
Network & Internet  -  mod_perl 2.0.3
mod_perl project brings together the full power of the Perl programming language and the Apache HTTP server. You can use Perl to manage Apache, respond to requests for web pages and much more. mod_perl gives you a persistent Perl interpreter...
3.5 MB  
Utilities  -  iMac EFI Firmware Update 1.4
This update fixes intermittent system freeze issues for iMac computers with ATI Radeon HD 4850 graphics and fixes wake-from-sleep issues in Boot Camp. To complete the firmware update process, please follow the instructions in the...
1.74 MB  
Libraries  -  XML::Mini 1.2.8
XML::Mini is a Perl implementation of the XML::Mini XML create/parse interface. SYNOPSIS use XML::Mini::Document; use Data::Dumper; ###### PARSING XML ####### # create a new object my $xmlDoc = XML::Mini::Document->new(); # init the...
34.82 KB  
Utilities  -  XML Parse Library 0.50
XML-Parse library is a lightweight set of re-usable functions for general purpose parsing, checking, and creating xml files. It can support stream-oriented, SAX or DOM parsing styles, and includes an optional xsd schema validator and graphical...
11.26 KB  
Libraries  -  XML::Parser 2.34
XML::Parser is a perl module for parsing XML documents. SYNOPSIS use XML::Parser; $p1 = new XML::Parser(Style => Debug); $p1->parsefile(REC-xml-19980210.xml); $p1->parse( Hello World ); # Alternative $p2 = new XML::Parser(Handlers...
225.28 KB  
Libraries  -  Tie::Hash::Stack 0.09
Tie::Hash::Stack is a Perl module which maintains an array of hashes like a stack. SYNOPSIS use Tie::Hash::Stack qw(pop_hash push_hash merge_hash); my %hash; tie( %hash, "Tie::Hash::Stack" ); # Ties the hash $hash{ 1 } = "one"; $hash{ 2...
6.14 KB  
Libraries  -  File::Basename 5.8.8
File::Basename is a Perl module to parse file paths into directory, filename and suffix. SYNOPSIS use File::Basename; ($name,$path,$suffix) = fileparse($fullname,@suffixlist); $name = fileparse($fullname,@suffixlist); $basename =...
12.2 MB  
Libraries  -  Getopt::Tiny 1.02
Getopt::Tiny is yet another command line argument parsing module. SYNOPSIS use Getopt::Tiny; my $arg = default value; my @list; my %hash; my $flag; my %set; # begin usage info my (%flags) = ( argx => $arg, # set a parameter listx =>...
5.12 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB