注意一下, 下面的 binutils \是第一个rpm 包名称,不包含后面的版本号码
[root@rac02 grid]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \
然后输入:
compat-libstdc++-33 \
elfutils-libelf \
elfutils-libelf-devel \
gcc \
gcc-c++ \
glibc \
glibc-common \
glibc-devel \
glibc-headers \
ksh \
libaio \
libaio-devel \
libgcc \
libstdc++ \
libstdc++-devel \
make \
sysstat \
unixODBC \
unixODBC-devel
结果如下:
[root@rac02 grid]# rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' binutils \
> compat-libstdc++-33 \
> elfutils-libelf \
> elfutils-libelf-devel \
> gcc \
> gcc-c++ \
> glibc \
> glibc-common \
> glibc-devel \
> glibc-headers \
> ksh \
> libaio \
> libaio-devel \
> libgcc \
> libstdc++ \
> libstdc++-devel \
> make \
> sysstat \
> unixODBC \
> unixODBC-devel
binutils-2.17.50.0.6-9.el5 (i386)
compat-libstdc++-33-3.2.3-61 (i386)
elfutils-libelf-0.137-3.el5 (i386)
elfutils-libelf-devel-0.137-3.el5 (i386)
gcc-4.1.2-44.el5 (i386)
gcc-c++-4.1.2-44.el5 (i386)
glibc-2.5-34 (i686)
glibc-common-2.5-34 (i386)
glibc-devel-2.5-34 (i386)
glibc-headers-2.5-34 (i386)
ksh-20080202-2.el5 (i386)
libaio-0.3.106-3.2 (i386)
libaio-devel-0.3.106-3.2 (i386)
libgcc-4.1.2-44.el5 (i386)
libstdc++-4.1.2-44.el5 (i386)
libstdc++-devel-4.1.2-44.el5 (i386)
make-3.81-3.el5 (i386)
sysstat-7.0.2-3.el5 (i386)
unixODBC-2.2.11-7.1 (i386)
unixODBC-devel-2.2.11-7.1 (i386)
[root@rac02 grid]#
如果是64bit系统, 有些rpm 包应该包括两个同样的package, 一个是32bit , 一个是64bit .