Linux version, libraries

S.D.Mechveliani mechvel@math.botik.ru
Tue, 19 Mar 2002 15:53:07 +0300


To my 

>> How to find out in a regular way the info about Linux system and
>> libc version?

Simon Marlow writes

> Try 'uname -a' & 'ls -l /lib/libc*'.


uname -a
Linux   ...<machine>... 
  2.2.12 #6 SMP mar oct 5 16:44:59 CEST 1999 i686 unknown

ls -l /lib/libc*

-rwxr-xr-x 1 root root 4118299 Sep 20 1999 /lib/libc-2.1.2.so*
lrwxrwxrwx 1 root root      13 Nov  5 1999 /lib/libc.so.6 -> libc-2.1.2.so*
lrwxrwxrwx 1 ...  1999            /lib/libcom_err.so.2 -> libcom_err.so.2.0*
-rwxr-xr-x 1 root root    7889 Oct 26 1999 /lib/libcom_err.so.2.0*
-rwxr-xr-x 1 root root   64595 Sep 20 1999 /lib/libcrypt-2.1.2.so*
lrwxrwxrwx 1 .. 1999               /lib/libcrypt.so.1 -> libcrypt-2.1.2.so*


But how to find whether it is  RedHat  (version) ?

On GMP library:

> find /usr/lib  -name '*gmp*'

/usr/lib/libgmp.so.2.0.2
/usr/lib/libgmp.so.2
find: /usr/lib/netscape/de/nethelp: Permission ...
/usr/lib/perl5/5.00503/i386-linux/linux/igmp.ph
/usr/lib/perl5/5.00503/i386-linux/netinet/igmp.ph

?

-----------------
Serge Mechveliani
mechvel@botik.ru