GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  REX::COMMANDS::PKGCONF (3)

.ds Aq ’

NAME

Rex::Commands::PkgConf - Configure packages

CONTENTS

DESCRIPTION

With this module you can configure packages. Currently it only supports Debian (using debconf), but it is designed to be extendable.

SYNOPSIS



 my %options = get_pkgconf(postfix);
 say $options{postfix/relayhost}->{value};

 # Only obtain one value
 my %options = get_pkgconf(postfix, postfix/relayhost);
 say $options{postfix/relayhost}->{value};

 # Set options
 set_pkgconf("postfix", [
    {question => chattr, type => boolean, value => false},
    {question => relayhost, type => string, value => relay.example.com},
 ]);

 # Dont update if its already set
 set_pkgconf("mysql-server-5.5", [
    {question => mysql-server/root_password, type => string, value => mysecret},
    {question => mysql-server/root_password_again, type => string, value => mysecret},
 ], no_update => 1);



EXPORTED FUNCTIONS

    get_pkgconf($package, [$question])

Use this to query existing package configurations.

Without a question specified, it will return all options for the specified package as a hash.

With a question specified, it will return only that option

Each question is returned with the question as the key, and the value as a hashref. The hashref contains the keys: question, value and already_set. already_set is true if the question has already been answered.



 # Only obtain one value
 my %options = get_pkgconf(postfix, postfix/relayhost);
 say $options{postfix/relayhost}->{question};
 say $options{postfix/relayhost}->{value};
 say $options{postfix/relayhost}->{already_set};



set_pkgconf($package, CW$values, [%options])

Use this to set package configurations.

At least the package name and values must be specified. Values must be an array ref, with each item containing a hashref with the attributes specified that are required by the package configuration program.

For example, for debconf, this must be the question, the type and answer. In this case, the types can be any accetable debconf type: string, boolean, select, multiselect, note, text, password.

Optionally the option no_update may be true, in which case the question will not be updated if it has already been set.

See the synopsis for examples.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 REX::COMMANDS::PKGCONF (3) 2016-03-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.