[Lazarus] RE : Determining OS
Mark Morgan Lloyd
markMLl.lazarus at telemetry.co.uk
Mon Aug 1 14:07:47 CEST 2011
Ludo Brands wrote:
>>>> Can somebody confirm this for Ubuntu? Are there comparable
>> files for
>>>> other distreax?
>>> Both my Ubuntu 8.04.4 and Ubuntu 10.04.3 systems have the
>> lsb_release
>>> and the xdg-open commands available. So I guess that's +1
>> to Canonical
>>> for at least trying to be helpful!
>> Yes, but for cases where lsb_release might not work- e.g. an older
>> release- does apt/sources.list refer to a section of their
>> repository by
>> name or simply as "stable" etc.?
>>
>
> apt/sources.list for my ubuntu 10.04 64 bit refers to fe.
>
> deb http://us.archive.ubuntu.com/ubuntu/ lucid-security main restricted
>
> Kubuntu (ubuntu with KDE desktop) 10.04 32 bit and Xubuntu 10.04 (with
> XFCE4) point to the same repositories.
>>From older versions, I remember similar names containing ubuntu and the
> codename (hardy, dapper, etc).
So with luck Ubuntu will either have lsb_release on newer systems, or a
codename embedded in apt/sources.list on older ones.
All bets are off if access is through a proxy with non-standard names.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
More information about the Lazarus
mailing list