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
Raphael Hertzog <hertzog@debian.org>.
1.16.15 2014-06-05 Dpkg::Control::Info(3)
Check Out this Related Man Page
Dpkg::Vendor(3) libdpkg-perl Dpkg::Vendor(3)NAME
Dpkg::Vendor - get access to some vendor specific information
DESCRIPTION
The files in /etc/dpkg/origins/ can provide information about various vendors who are providing Debian packages. Currently those files look
like this:
Vendor: Debian
Vendor-URL: http://www.debian.org/
Bugs: debbugs://bugs.debian.org
If the vendor derives from another vendor, the file should document the relationship by listing the base distribution in the Parent field:
Parent: Debian
The file should be named according to the vendor name.
FUNCTIONS
$fields = Dpkg::Vendor::get_vendor_info($name)
Returns a Dpkg::Control object with the information parsed from the corresponding vendor file in /etc/dpkg/origins/. If $name is
omitted, it will use /etc/dpkg/origins/default which is supposed to be a symlink to the vendor of the currently installed operating
system. Returns undef if there's no file for the given vendor.
$name = Dpkg::Vendor::get_vendor_file($name)
Check if there's a file for the given vendor and returns its name.
$name = Dpkg::Vendor::get_current_vendor()
Returns the name of the current vendor. If DEB_VENDOR is set, it uses that first, otherwise it falls back to parsing
/etc/dpkg/origins/default. If that file doesn't exist, it returns undef.
$object = Dpkg::Vendor::get_vendor_object($name)
Return the Dpkg::Vendor::* object of the corresponding vendor. If $name is omitted, return the object of the current vendor. If no
vendor can be identified, then return the Dpkg::Vendor::Default object.
Dpkg::Vendor::run_vendor_hook($hookid, @params)
Run a hook implemented by the current vendor object.
1.16.15 2014-06-05 Dpkg::Vendor(3)
Hi ,
I have special character control M in many of my files as below
ersNet-Telnet-3.03/Makefile.PL100644 21166 144 612 7113770214 135
77 0ustar jayusers## -*- Perl -*-^M
^M
use ExtUtils::MakeMaker qw(WriteMakefile);^M
^M
WriteMakefile(NAME => "Net::Telnet",^M
... (4 Replies)
I have file as shown below. Would like to split the file based on the context of data.
Like, split the content between "---- XXX Info ----" and "
---- YYY Info ----" to a file.
When I try using below command, 2nd file contains all the info starting after first "---- YYYY Info ----" instance.... (8 Replies)
I want to control content of my mounted flash card which have string like "kernel32.dll". I explore some virus files have content of "kernel32". I find those files and rename this files.By shell programming. Not files name kernel32.dll. File include string like "kernel32.dll". Help me please (2 Replies)
I have a binary file with all content is text, i want convert this binary to a regular file because i want to parse it.
Thx.
---------- Post updated at 05:01 AM ---------- Previous update was at 04:34 AM ----------
I have found the solution
cat file | tr -d '\0' (8 Replies)