Find the answer to your Linux question:
Results 1 to 4 of 4
I need some info from certain distros for an application I'm writing. I need to know whats all in the file that tells the distro and release info. It is ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    8

    Looking for some info please

    I need some info from certain distros for an application I'm writing.

    I need to know whats all in the file that tells the distro and release info. It is usually located under /etc and is named something like <distro>-release or <distro>-version (<distro> being the name of the distro your using).

    So if you could please tell me the name of the file and its contents (a simple cat /etc/distro-xxxx would do).

    I already have the info for the following distros:
    slackware
    arch linux
    zenwalk
    fedora
    ubuntu
    sabayon
    turbolinux

    Thank you for any help!

  2. #2
    Linux Guru Juan Pablo's Avatar
    Join Date
    Mar 2006
    Location
    /home/south_america/ecuador/quito
    Posts
    2,064
    Gentoo 2007.0
    /etc/gentoo-release:
    Gentoo Base System release 1.12.9
    Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
    Linux User #425940

    Don't PM me with questions, instead post in the forums

  3. #3
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,391
    Both CentOS and Fedora use /etc/redhat-release.

    On my CentOS 4.5 server it says: "CentOS release 4.5 (Final)"
    Linux user #126863 - see http://linuxcounter.net/

  4. #4
    Just Joined!
    Join Date
    Jan 2007
    Posts
    8
    Thanks guys.
    I came up with an easy way to find the name of the file for most distros:
    ls /etc | grep "version\|release"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •