Dpkg::Control::Info man page on ElementaryOS

Man page or keyword search:  
man Server   4994 pages
apropos Keyword Search (all sections)
Output format
ElementaryOS logo
[printable version]

Dpkg::Control::Info(3)		 libdpkg-perl		Dpkg::Control::Info(3)

NAME
       Dpkg::Control::Info - parse files like debian/control

DESCRIPTION
       It provides an object to access data of files that follow the same
       syntax as debian/control.

FUNCTIONS
       $c = Dpkg::Control::Info->new($file)
	   Create a new Dpkg::Control::Info object for $file. If $file is
	   omitted, it loads debian/control. If file is "-", it parses the
	   standard input.

       $c->reset()
	   Resets what got read.

       $c->load($file)
	   Load the content of $file. Exits in case of errors. If file is "-",
	   it loads from the standard input.

       $c->parse($fh, $description)
	   Parse a control file from the given filehandle. Exits in case of
	   errors.  $description is used to describe the filehandle, ideally
	   it's a filename or a description of where the data comes from. It's
	   used in error messages.

       $c->[0]
       $c->get_source()
	   Returns a Dpkg::Control object containing the fields concerning the
	   source package.

       $c->get_pkg_by_idx($idx)
	   Returns a Dpkg::Control object containing the fields concerning the
	   binary package numbered $idx (starting at 1).

       $c->get_pkg_by_name($name)
	   Returns a Dpkg::Control object containing the fields concerning the
	   binary package named $name.

       $c->get_packages()
	   Returns a list containing the Dpkg::Control objects for all binary
	   packages.

       $c->output($filehandle)
	   Dump the content into a filehandle.

       "$c"
	   Return a string representation of the content.

       @{$c}
	   Return a list of Dpkg::Control objects, the first one is
	   corresponding to source information and the following ones are the
	   binary packages information.

AUTHOR
       Raphaƫl Hertzog <hertzog@debian.org>.

1.17.5				  2013-12-10		Dpkg::Control::Info(3)
[top]

List of man pages available for ElementaryOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net