[wplug] Determining distro version (was: weird rsync error)

terry mcintyre terrymcintyre at yahoo.com
Mon Mar 24 15:26:38 EST 2008


terry at terry-laptop:~$ lsb_release -d
Description:    Ubuntu 7.10

--- Vance Kochenderfer <vkochend at nyx.net> wrote:

> Patrick Wagstrom <patrick at wagstrom.net> wrote:
> > 
> > > A command like "/sbin/wtflinuxflavor" would be
> really nice, all it
> > > needs to do is "echo You're running XXX" or
> > > "printf You're running ZZZ"
> > 
> > you mean something complicated like:
> > cat /etc/issue
> 
> This generally works, though if someone has changed
> the login
> banner it won't help.  You can also look for a file
> "/etc/*release" (e.g., /etc/redhat-release,
> /etc/debian-release),
> but I don't know if Ubuntu has that.  Of course
> uname gives the
> kernel version but doesn't tell you anything about
> userland.
> 
> There is an "lsb_release" command that should be
> present on all
> LSB-compliant distros and gives output in a
> standardized format.
> Other than that, there's no real consistent way to
> find out the
> distro version, though in theory it shouldn't matter
> so much since
> installers are supposed to check dependency versions
> individually.
> 
> Vance Kochenderfer        |  "Get me out of these
> ropes and into a
> vkochend at nyx.net          |   good belt of Scotch"  
>  -Nick Danger
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
> 


Terry McIntyre &lt;terrymcintyre at yahoo.com&gt;

“Wherever is found what is called a paternal government, there is found state education. It has been discovered that the best way to insure implicit obedience is to commence tyranny in the nursery.”

Benjamin Disraeli, Speech in the House of Commons [June 15, 1874]


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


More information about the wplug mailing list