On Sun, Jul 31, 2011 at 20:37, Graeme Geldenhuys <graemeg.li...@gmail.com>wrote:

> 2011/7/31 Ludo Brands <ludo.bra...@free.fr>:
> > Have you tried uname?
>
> That only gives you the kernel version.
>
>
> > lsb_release on ubuntu 10 64 bit says: no LSB modules are available. On
> > debian lenny for arm: command not found...
>
> Don't you guys READ!!!  I specifically showed the parameters you need
> to specify with the 'lsb_release' command so you DO GET THE RIGHT
> OUTPUT.
>
> Try this:
>
>   $ lsb_release -a
>
>
> Or from my original post...
>


$ lsb_release -a
LSB Version:    n/a
Distributor ID: n/a
Description:    (none)
Release:        n/a
Codename:       n/a


It is missing from some implementations. Arch Linux (my distro) is spread
and not a small based distro, so lsb is not the way, only LSB based distro's
are.

But the original person that asked the question should explain better what
he is looking for. It might not require to detect the distro itself for
example, or to allow the package builder to tweak things, or at the first
run to ask the distro from a list of supported distro and save it in
configuration files.

It's all depends on what he requires to do.



> >
> --------------------------------------------------------------------------
> > $ lsb_release --help
> > Usage: lsb_release [options]
> >
> > Options:
> >  -h, --help         show this help message and exit
> >  -v, --version      show LSB modules this system supports
> >  -i, --id           show distributor ID
> >  -d, --description  show description of this distribution
> >  -r, --release      show release number of this distribution
> >  -c, --codename     show code name of this distribution
> >  -a, --all          show all of the above information
> >  -s, --short        show all of the above information in short format
> >
>
>
> --
> Regards,
>   - Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
> http://fpgui.sourceforge.net
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus@lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to