2014-05-12 25 views

Odpowiedz

9

Tak, z ld -v można zobaczyć wersję binutils (w przypadku 2.24)

0

Spróbuj tego:

sh <(dpkg -L binutils | awk '/bin\// {print $0 " --version"}') | \ 
grep Binutils | sort -u | column -t 

To dostaje wszystkich programów w pakietach Binutilsw i zapytań każdy z jego --version parametru. Wyszukuję pusty ciąg znaków dla tych, którzy oczekują danych wejściowych w terminalu.

5

testowałem go tylko z Debianem 8, ale myślę, że należy pracować z innych systemów operacyjnych opartych na Debianie (Ubuntu, Mint, inne).


dpkg -l | binutils grep

$ dpkg -l | grep binutils 
ii binutils          2.25-5+deb8u1      amd64  GNU assembler, linker and binary utilities 

apt-cache binutils polityki

$ apt-cache policy binutils 
binutils: 
    Installed: 2.25-5+deb8u1 
    Candidate: 2.25-5+deb8u1 
    Version table: 
*** 2.25-5+deb8u1 0 
     500 http://ftp.ru.debian.org/debian/ jessie-proposed-updates/main amd64 Packages 
     100 /var/lib/dpkg/status 
    2.25-5 0 
     500 http://ftp.ru.debian.org/debian/ jessie/main amd64 Packages 
     500 http://httpredir.debian.org/debian/ jessie/main amd64 Packages 

apt-cache show binutils (oddzielana)

$ apt-cache show binutils 
Package: binutils 
Version: 2.25-5+deb8u1 
Installed-Size: 20566 
Maintainer: Matthias Klose <[email protected]> 
Architecture: amd64 
Replaces: binutils-gold (<< 2.20.51.20100415), binutils-mingw-w64-i686 (<< 2.23.52.20130612-1+3), binutils-mingw-w64-x86-64 (<< 2.23.52.20130612-1+3) 
Provides: binutils-gold, elf-binutils 
Depends: libc6 (>= 2.14), zlib1g (>= 1:1.2.0) 
Suggests: binutils-doc (>= 2.25-5+deb8u1) 
.............................. 

ld version

$ ld --version 
GNU ld (GNU Binutils for Debian) 2.25 

ar version

$ ar --version 
GNU ar (GNU Binutils for Debian) 2.25