Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: (OT) command for finding out which distribution of Linux is being used

by RobPayne (Chaplain)
on Oct 16, 2006 at 05:17 UTC ( #578431=note: print w/ replies, xml ) Need Help??


in reply to (OT) command for finding out which distribution of Linux is being used

The following will give you the redhat version:

$ cat /etc/redhat-release
Similarly, on fedora it is:
$ cat /etc/fedora-release
HTH! That's not really perl-related, though. You might want to ask this type of question in the chatterbox, in the future.


Comment on Re: (OT) command for finding out which distribution of Linux is being used
Re^2: (OT) command for finding out which distribution of Linux is being used
by heidi (Sexton) on Oct 16, 2006 at 05:40 UTC
    thanks for the answer. as you said, i will ask such questions in chatter box henceforth. thanks again.
Re^2: (OT) command for finding out which distribution of Linux is being used
by wazoox (Prior) on Oct 16, 2006 at 06:47 UTC
    And just in case, for Debian and related distributions, the release information is stored into
    /etc/debian_version
    And slackare uses
    /etc/slackware-version
      And just in case, for Debian and related distributions, the release information is stored into

      And FWIW in CRUX I can use the crux command, which in turn is a script which just echoes the wanted info, hardcoded there. The lesson to be learnt here is that not only the question has nothing to do with Perl, but also that it is one that hardly has an answer, since it's up to each distro to provide that info, and each distro provides it, or possibly doesn't, in its own way, i.e. there appears not to be a standard.

      However as fenLisesi++ points out, some more info seems to be available in /proc/version, specifically in the C compiler description: I've now checked 6 systems which comprise 4 different distros, namely CRUX, Mandriva, Debian and Gentoo; but I don't have the slightest idea how all this may be in general - and there are far many more distros out there...

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://578431]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2014-09-16 23:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (53 votes), past polls