AptPkg::System(3pm) User Contributed Perl Documentation AptPkg::System(3pm)NAME
AptPkg::System - APT system abstraction class
SYNOPSIS
use AptPkg::System;
DESCRIPTION
The AptPkg::System module provides an interface to APT's system abstraction mechanism.
AptPkg::System
The AptPkg::System package implements the APT pkgSystem class.
An instance of the AptPkg::System class appropriate for the particular back-end packaging system (deb, rpm, etc.) may be fetched using the
system method from AptPkg::Config.
A global instance of the libapt-pkg _system instance is provided as $AptPkg::System::_system, and may be imported.
The following methods are implemented:
label
Return the description of the packaging system, for example:
Debian dpkg interface
for Debian systems.
lock
Lock the packaging system.
unlock(QUIET)
Unlock the packaging system, ignoring errors if QUIET is non-zero.
versioning
Return an instance of the AptPkg::Version class for this system.
SEE ALSO AptPkg::Config(3pm), AptPkg::Version(3pm), AptPkg(3pm).
AUTHOR
Brendan O'Dea <bod@debian.org>
perl v5.14.2 2012-03-16 AptPkg::System(3pm)
Check Out this Related Man Page
AptPkg::hash(3pm) User Contributed Perl Documentation AptPkg::hash(3pm)NAME
AptPkg::hash - a helper class for implementing tied hashes
SYNOPSIS
use AptPkg::hash;
DESCRIPTION
The AptPkg::hash class provides hash-like access for objects which have an underlying XS implementation.
Such objects need to add AptPkg::hash to @ISA, provide get, set and exists methods, and an iterator class.
AptPkg::hash
new([XS_OBJECT])
Create a object as a tied hash. The object is implemented as a hash reference blessed into the class, which in turn is tied to
AptPkg::hash.
This means that both $obj->method() and $obj->{key} valid, the latter invoking get/set (through FETCH/STORE).
The tie associates an array reference with the hash, which initially contains a reference to the hash, the XS object and an anon hash
which may be used by subclasses to store state information.
If no XS object is passed, one is created via new in the XS class. The name of that class is constructed from the class name, by
lower-casing the last component and prefixing it with an underscore (eg. AptPkg::Config becomes AptPkg::_config).
If the module contains a @KEYS array, then the private hash will be populated with those entries as keys (see the description below of
the AptPkg::hash::method class).
_self, _xs, _priv
Accessors which may be used in subclass methods to fetch the three array elements associated with the hash reference.
keys(ARGS)
In a scalar context, creates and returns a new iterator object (the class name with the suffix ::Iter appended).
The XS object, the private hash and any arguments are passed to the constructor.
In an array context, the iterator is used to generate a list of keys which are then returned.
The iterator class must implement a next method, which returns the current key and advances to the next.
AptPkg::hash::method
The AptPkg::hash::method class extends AptPkg::hash, providing a simple way to map a fixed set of keys (defined by the @KEYS array) into
method calls on either the object, or the internal XS object.
Classes inheriting from AptPkg::hash::method should provide an iterator class which inherits from AptPkg::hash::method::iter.
AUTHOR
Brendan O'Dea <bod@debian.org>
perl v5.14.2 2012-03-16 AptPkg::hash(3pm)
I wrote a sh program with many options and lot of cool stuff and I will to learn how to package it. So ppl could downlaod it and use it just like ls cp ..
So if I have BUX.sh
ppl could type
BUX -r-r
on the command line and it just work
or I could have
BUM man
Also I like to offer them... (4 Replies)
Hi All,
I am new to linux. Still I am asked to package a war file as an RPM package. That is an unusual RPM packaging(To me). If you guys could guide me, on how to do that, will be great. I have a war file inside a folder, that folder is inside a tar file as a SOURCE for RPM package.... (8 Replies)
Hi all,
Pls provide your suggestions and advice for the below queries. I have a files like below sample
$ ls -l /u01/app
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test1
-rw-r--r-- 1 appusr appdba 4 Feb 20 21:35 test
-... (1 Reply)
Hi All,
I am doing Solaris packaging. I got core dump error while doing it. I have identified particular folder causing it but not sure about the reason. Without
that folder i can able to do the package. I have attached the proto file and other related files for your reference. Pls... (1 Reply)
How can i get Long.MAX_VALUE - System.currentTimeMillis() ( in Java ) In Unix.
date %s is not the timpstamp in millis.
Also is it possible if we can System.currentTimeMillis() equivalent of
yesterday's 23:59:59 in millis ? (6 Replies)
Hi Guys,
Some time ago I get a disk for my SCO System V 3.2 R4.2 tcp 1.2.1 distribution. Now 4 Year later I am serarching the development system due to the fact that System V did not come with the C compiler. There is any change to get it ? my intention is academyc only.
or anyone... (3 Replies)