How to find out what version of glibc is used?

Booting, installing, newbie
Post Reply
Message
Author
User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

How to find out what version of glibc is used?

#1 Post by LazY Puppy »

Hi,

How can I find out what version of glibc of a Puppy is used?
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

april

#2 Post by april »


User avatar
Karl Godt
Posts: 4199
Joined: Sun 20 Jun 2010, 13:52
Location: Kiel,Germany

#3 Post by Karl Godt »

Usually the version is added ad the end of the file name .

On 32-bit it is usually located inside the /lib folder :

Code: Select all

# ls /lib/libc-*
/lib/libc-2.11.1.so
The needs to cut -f2 -d '-' | rev | cut -f1 -d '.' | rev
Something like this or awk .

Usually executing /lib/libc-*
should tell something like this :

Code: Select all

# /lib/libc-*
GNU C Library (Ubuntu EGLIBC 2.11.1-0ubuntu7) stable release version 2.11.1, by Roland McGrath et al.
Copyright (C) 2009 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.4.3.
Compiled on a Linux >>2.6.24-27-server<< system on 2010-04-22.
Available extensions:
	crypt add-on version 2.1 by Michael Glad and others
	GNU Libidn by Simon Josefsson
	Native POSIX Threads Library by Ulrich Drepper et al
	BIND-8.2.3-T5B
For bug reporting instructions, please see:
<http://www.debian.org/Bugs/>.
But of course if several versions installed needs some filters to get the used one .

The library is mainly linked to by Link /lib/libc.so.6 .

One could check an always available library like /usr/[X11]/lib/libX11.so
using command `ldd` :

Code: Select all

# ldd /usr/lib/libX11.so
	linux-gate.so.1 =>  (0xb7801000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb76c8000)
	libdl.so.2 => /lib/libdl.so.2 (0xb76c4000)
	libc.so.6 => /lib/libc.so.6 (0xb757a000)

Code: Select all

# WHICH_CLIB=`ldd /usr/lib/libX11.so | grep 'libc\.so' | head -n1 | awk '{print $3}'`
# $WHICH_CLIB
End would be :

Code: Select all

# $WHICH_CLIB | grep -oE 'version [[:digit:]\.]+' | head -n1
version 2.11.1
«Give me GUI or Death» -- I give you [[Xx]term[inal]] [[Cc]on[s][ole]] .
Macpup user since 2010 on full installations.
People who want problems with Puppy boot frugal :P

User avatar
LazY Puppy
Posts: 1934
Joined: Fri 21 Nov 2014, 18:14
Location: Germany

#4 Post by LazY Puppy »

WOW !!!

Thanks!
RSH

"you only wanted to work your Puppies in German", "you are a separatist in that you want Germany to secede from Europe" (musher0) :lol:

No, but I gave my old drum kit away for free to a music store collecting instruments for refugees! :wink:

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#5 Post by Mike Walsh »

I usually find that something like

Code: Select all

ldd --version
will tell you what you need to know.


Mike. :wink:

Post Reply