LFS宿主系统版本检查

参考下面文章对lfslivecd-x86-6.3-r2145.iso的liveCD宿主系统进行了一下版本检查:


root [ ~ ]# ls
lfscd-remastering-howto.txt    README.txt
root [ ~ ]# cat > version-check.sh << "EOF"
> #!/bin/bash

> # Simple script to list version numbers of critical development tools

> bash --version | head -n1 | cut -d" " -f2-4
> echo -n "Binutils: "; ld --version | head -n1 | cut -d" " -f3-4
> bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f1,6-8
> echo -n "Coreutils: "; chown --version | head -n1 | cut -d")" -f2
> diff --version | head -n1
> find --version | head -n1
> gawk --version | head -n1
> gcc --version | head -n1
> /lib/libc.so.6 | head -n1 | cut -d" " -f1-7
> grep --version | head -n1
> gzip --version | head -n1
> cat /proc/version | head -n1 | cut -d" " -f1-3,5-7
> make --version | head -n1
> patch --version | head -n1
> sed --version | head -n1
> tar --version | head -n1

> EOF
root [ ~ ]# 
root [ ~ ]# 
root [ ~ ]# ls
lfscd-remastering-howto.txt    README.txt    version-check.sh
root [ ~ ]# bash version-check.sh
bash, version 3.2.17(1)-release
Binutils: 版本 2.17
bzip2,    Version 1.0.4,
Coreutils:    6.9
diff (GNU diffutils) 2.8.1
GNU find 版本 4.2.31
GNU Awk 3.1.5
gcc (GCC) 4.1.2
GNU C Library stable release version 2.5.1,
grep (GNU grep) 2.5.1
gzip 1.3.12
Linux version 2.6.22.5 (gcc version 4.1.2)
GNU Make 3.81
patch 2.5.4
GNU sed version 4.1.5
tar (GNU tar) 1.18
root [ ~ ]#













本文转sinojelly51CTO博客,原文链接:http://blog.51cto.com/sinojelly/201488,如需转载请自行联系原作者
上一篇:基于Windows环境下Myeclipse10.0下载安装破解及jdk的下载安装及环境变量的配置


下一篇:走向.NET架构设计—第四章—业务层分层架构(前篇)