Unix and Linux Discussions Tagged with suse linux |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
4,278 |
SuSE |
|
|
|
0 |
2,764 |
Linux |
|
|
|
0 |
1,676 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
19,092 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
11,787 |
IP Networking |
|
|
|
0 |
3,385 |
UNIX and Linux Applications |
|
|
|
0 |
1,164 |
UNIX and Linux RSS News |
|
|
|
0 |
1,155 |
Software Releases - RSS News |
|
|
|
13 |
5,953 |
What is on Your Mind? |
|
|
|
9 |
4,619 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
3,117 |
SuSE |
|
|
|
3 |
7,189 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,087 |
UNIX Desktop Questions & Answers |
|
|
|
1 |
7,766 |
Programming |
|
|
|
8 |
5,797 |
SuSE |
|
|
|
2 |
10,143 |
Shell Programming and Scripting |
|
|
|
5 |
8,872 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
17,103 |
Linux Benchmarks |
|
|
|
4 |
3,047 |
What is on Your Mind? |
|
|
|
6 |
4,323 |
UNIX Desktop Questions & Answers |
|
|
|
5 |
16,997 |
SuSE |
|
|
|
1 |
3,762 |
UNIX for Advanced & Expert Users |
|
|
|
4 |
4,657 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
7,115 |
SuSE |
|
|
|
25 |
10,281 |
SuSE |
|
|
|
3 |
5,354 |
SuSE |
|
|
|
7 |
5,180 |
SuSE |
|
|
|
10 |
9,352 |
SuSE |
|
|
|
2 |
4,389 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,283 |
SuSE |
|
|
|
5 |
3,113 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,163 |
SuSE |
|
|
|
3 |
2,670 |
SuSE |
|
|
|
2 |
7,991 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,325 |
Windows & DOS: Issues & Discussions |
|
|
|
13 |
7,275 |
Slackware |
|
|
|
3 |
3,600 |
SuSE |
|
|
|
1 |
2,974 |
SuSE |
|
|
|
13 |
14,510 |
Slackware |
|
|
|
1 |
2,999 |
IP Networking |
Linux::Distribution::Packages(3pm) User Contributed Perl Documentation Linux::Distribution::Packages(3pm)
NAME
Linux::Distribution::Packages - list all packages on various Linux distributions
SYNOPSIS
use Linux::Distribution::Packages qw(distribution_packages distribution_write);
$linux = new Linux::Distribution::Packages({'format' => 'csv', 'output_file' => 'packages.csv'});
$linux->distribution_write();
# Or you can (re)set the options when you write.
$linux->distribution_write({'format' => 'xml', 'output_file' => 'packages.xml'});
# If you want to reload the package data
$linux->distribution_packages();
DESCRIPTION
This is a simple module that uses Linux::Distribution to guess the linux distribution and then uses the correct commands to list all the
packages on the system and then output them in one of three formats: native, csv, and xml.
Distributions currently working: debian, ubuntu, fedora, redhat, suse, gentoo, slackware, redflag.
The module inherits from Linux::Distribution, so can also use its calls.
EXPORT
None by default.
TODO
* Add the capability to correctly get packages for all recognized distributions. * Seperate out parsing from writing. Parse data to hash
and give access to hash. Then write the formatted data from the hash.
AUTHORS
Judith Lebzelter, <judith@osdl.org> Alberto Re, <alberto@accidia.net>
COPYRIGHT AND LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or,
at your option, any later version of Perl 5 you may have available.
perl v5.10.1 2006-04-19 Linux::Distribution::Packages(3pm)