uname output ?
Jeff Macdonald
jeff.macdonald at virtualbuilder.com
Mon Aug 19 13:50:17 EDT 2002
How about using GCC?
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-112)
On Mon, 2002-08-19 at 11:26, Michael O'Donnell wrote:
>
>
> > I'm curious; just how do you identify if a system is Debian or
> > Red Hat? I've yet to find a reliable method.
>
> Wouldn't the presence of (some combination of) the various
> apt-related directories be a reliable sign that you had
> a Debian box? Like, say, /etc/apt, /var/cache/apt and
> /var/lib/apt. Bonus points for /etc/debian_version...
>
> I don't know much about RedHat but I'd assume the
> corresponding RPM stuff could serve the same purpose.
>
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss
More information about the gnhlug-discuss
mailing list