There's a few other methods I've used, if that doesn't work and you can't 
run that script (SELinux-restrictions or other reasons). 

'uname -a' may show something useful or significant, such as: 

        Linux gentoo 2.6.16-gentoo-r12 #2 SMP Sat Sep 16 03:53:14 Local 
time zone
        must be set--see zic  ppc64 POWER5 (gr) GNU/Linux

dpkg -l | grep libc6

[EMAIL PROTECTED]:/tmp$ COLUMNS=67 dpkg -l| grep libc6
ii  libc6          2.5-0ubuntu14  GNU C Library: Shared libraries
ii  libc6-dev      2.5-0ubuntu14  GNU C Library: Development Libraries and 

ii  libc6-i686     2.5-0ubuntu14  GNU C Library: Shared libraries [i686 
opt

On Ubuntu or Debian, the package version itself will indicate the 
distribution being used

rpm -qa | grep -i release

        [EMAIL PROTECTED]:~> rpm -qa | grep -i release
        sles-release-9-82.17
        core-release-9-6.3
        release-notes-9.1-8.88

These aren't perfect, but they'll work on systems where they may be older 
(i.e. prior to lsb-release being packaged) or where you may be restricted 
from running shell scripts or other things. 


David A. Desrosiers
Linux on Power Developer Program Manager
[EMAIL PROTECTED]



_______________________________________________
Peterboro mailing list
[email protected]
https://mailman.lug.org.uk/mailman/listinfo/peterboro

Reply via email to