[Lazarus] Determining OS

Graeme Geldenhuys graemeg.lists at gmail.com
Sun Jul 31 19:19:39 CEST 2011


2011/7/31 ik :
>
> I'm using Arch Linux and that is my output:
>
> ------------------------
> $ lsb_release
> LSB Version:    n/a
>

Under Ubuntu 8.04 the 'lsb_release' command on it's own doesn't give
any usable output either. You need to specify a parameter.

eg:   $ lsb_release -a


See 'lsb_release --help'  for more available options.
As shown below:

>> --------------------------------------------------------------------------
>> $ 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
>>
>> $ lsb_release -a
>> No LSB modules are available.
>> Distributor ID: Ubuntu
>> Description:    Ubuntu 8.04.4 LTS
>> Release:        8.04
>> Codename:       hardy
>>
>> --------------------------------------------------------------------------

-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net




More information about the Lazarus mailing list