Re: Name distribution

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 03 December 2004 05:20, Rahul Sundaram wrote:
> there should be file called lsb-release in LSB compatible
> distributions with the required packages installed. LSB in a
> roundabout way is something designed to avoid requiring a particular
> distro in the first place

Hm.
summer@Glider:~$ cat /etc/lsb-release
cat: /etc/lsb-release: No such file or directory
summer@Glider:~$ 
So
summer@Glider:~$ sudo apt-get install lsb-release
Password:
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  lsb-release
0 upgraded, 1 newly installed, 0 to remove and 5 not upgraded.
etc and now:
summer@Glider:~$ cat /etc/lsb-release
DISTRIB_ID=Debian
DISTRIB_RELEASE=3.1
DISTRIB_CODENAME=sarge
DISTRIB_DESCRIPTION="Debian GNU/Linux"
summer@Glider:~$

and that seems a fairly sane set of info. But, you cannot rely on its present.

Howecer,
[root@dugong ~]# cat /etc/lsb-release /etc/redhat-release
LSB_VERSION="1.3"
Fedora Core release 3 (Heidelberg)
[root@dugong ~]#
[summer@thylacine ~]$ cat /etc/lsb-release
LSB_VERSION="1.3"
[summer@thylacine ~]$ cat /etc/lsb-release /etc/redhat-release
LSB_VERSION="1.3"
Red Hat Enterprise Linux Desktop release 3.90 (Nahant)
[summer@thylacine ~]$

I don't know what the specs say about the file, but I see there's no common 
information.


-- 

Cheers
John Summerfield
tourist pics: http://environmental.disaster.cds.merseine.nu/


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux