Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hi, I have a running linux-server but I don't know what a distribution it is. (redhat, ubunt,suse ... ) How can I check what's the distribution. The main problem is, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    1

    what is my linux distribution


    Hi,

    I have a running linux-server but I don't know what a distribution it is.
    (redhat, ubunt,suse ... )

    How can I check what's the distribution.

    The main problem is, I have to change to another ethernet card.
    But I always get the followign error :
    insmod: cannot insert `/lib/modules/2.6.16.51/pcnet32.ko': Invalid module format (-1): Exec format error

    Thanks for help.

    with kind regards
    edi

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Welcome to the forums!

    Look around in the /etc folder for files that might reveal the distro information, such as *.release.

    You might also be able to find some indicators in system boot messages.
    oz

  3. #3
    Just Joined!
    Join Date
    Dec 2008
    Posts
    8
    type

    uname -i

  4. #4
    Just Joined! cheapscotchron's Avatar
    Join Date
    Dec 2008
    Location
    swamps of jersey
    Posts
    68
    cat /proc/version

  5. #5
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,756
    cat /proc/version
    This will not tell you which Linux/version you are running. It may help give you a *clue.*

    Search > How can I find what distro is running?

    Code:
    cat /etc/*release*
    cat /etc/*version*
    cat /etc/lsb-release
    cat /etc/issue
    One of those will likely work.

  6. #6
    Just Joined! cheapscotchron's Avatar
    Join Date
    Dec 2008
    Location
    swamps of jersey
    Posts
    68
    That's true, but then again, that wasnt the question he asked.

    >>How can I check what's the distribution.

    root@mars:~> cat /proc/version
    Linux version 2.6.22.5-31-default (geeko@buildhost) (gcc version 4.2.1 (SUSE Linux)) #1 SMP 2007/09/21 22:29:00 UTC
    root@mars:~>

  7. #7
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,756
    Code:
    cat /proc/version 
    Linux version 2.6.9-55.ELsmp (brewbuilder@hs20-bc2-4.build.redhat.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)) #1 SMP Fri Apr 20 16:36:54 EDT 2007
    Code:
    cat /proc/version 
    Linux version 2.6.18-1.2798 (brewbuilder@hs20-bc2-4.build.redhat.com) (gcc version 4.1.1 20061011 (Red Hat 4.1.1-30)) #1 SMP Mon Oct 16 14:37:32 EDT 2006
    So which of these machines is running RedHat or Fedora? Or are they just "the same"? And what version? Doesn't look too helpful to me.

    Let's see...we have someone that doesn't know what distro they have, yet they posted this in the Gentoo forum. I think it's safe to say that what they need to know (because the forum is going to ask next), is what distro and what version.

    I'll stick with:

    This will not tell you which Linux/version you are running. It may help give you a *clue.*

  8. #8
    Just Joined!
    Join Date
    Apr 2008
    Location
    Melbourne, Victoria, Australia.
    Posts
    11
    I just tried uname -i and it came back with unknown. But cat /proc/version did give me my kernel version and distro name.

  9. #9
    Just Joined!
    Join Date
    Oct 2005
    Location
    India
    Posts
    23
    Simple !!!

    Fire "cat /etc/redhat-release" and you'r done..

  10. #10
    Just Joined!
    Join Date
    Dec 2012
    Posts
    1
    Quote Originally Posted by jaijai View Post
    Fire "cat /etc/redhat-release" and you'r done..
    I'd suggest
    Code:
    cat /etc/*-release
    instead, in case he's not sure it's RedHat

Page 1 of 2 1 2 LastLast

Posting Permissions

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