06-07-2006
An alternative way... i found by luck this file. here u can see the distribution but i dont know if its on all systems. At least its in Debian...
/proc/version
anyone ones if this file is a linux standard? because Darwin doesnt use /proc.
thx
7 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I m working on many Linux servers in my project. But i am unable to know which Linux Distribution i am using Like whether i am using SUSE or REDHAT or MONDRAKE. I tried with "uname" command. But it does not help me. Please provide me the command if u know.
Regards,
Basavaraja KC (3 Replies)
Discussion started by: BasavarajaKC
3 Replies
2. UNIX for Dummies Questions & Answers
Hey
I am right now working on an old Compaq computer, and because I have a newer one I thought of installing Linux on this one. The thing is that I don't know which Linux distribution that would work with a minimum of lag. My computer specifications is:
Compaq Presario 7000
Intel Pentium... (7 Replies)
Discussion started by: Sixmax
7 Replies
3. Programming
Hi,
Can anyone please tell me, what is the best Linux distribution for Software Development.
Thanks,
Philip. (4 Replies)
Discussion started by: Phi01
4 Replies
4. Linux
Hi
I consider changing operating system onto Linux. But I'm not sure what kind of distribution should I use :
- Red Hat
- Suse
- Ubuntu
- Debian
- Fedora
Operating system will be operating on the notebook to replace Win XP and must be stable version with all drivers to hardware (WiFi... (7 Replies)
Discussion started by: presul
7 Replies
5. Linux
Dear all
i am new to Linux, i need a Linux OS that have been "qt development and lesstif" together.
Regards (5 Replies)
Discussion started by: mkhorami76
5 Replies
6. Fedora
Hi,
i'm currently part of an apprenticeship becoming a IT specialist.
Because I'm already an electronic technician (finished apprenticeship) I can do this one in 2 years (normally you need 3).
Thing is, in school they started out with basic unix stuff (working with the shell) in the first... (3 Replies)
Discussion started by: Dr. Nick
3 Replies
7. What is on Your Mind?
What was the first Linux distribution you tried?
My first was Knoppix, it was pretty good I thought, and it supported my old hardware http://www.linuxforum.com/images/smilies/smile.png Too bad I couldn't figure out how to install it at the time though.
What about you? (32 Replies)
Discussion started by: billcrosby
32 Replies
LEARN ABOUT DEBIAN
linux::distribution::packages
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)