src.rpm 是source包,要编译后才可以使用的;安装后是源码,rebuild后就会生成rpm包
[root@localhost beinan]# ls unrar*
unrar-3.5.2-1.2.fc4.src.rpm unrar.spec
[root@localhost beinan]# rpm -ivh unrar-3.5.2-1.2.fc4.src.rpm
[root@localhost beinan]# ls /usr/src/redhat/SOURCES/unrar
unrar.1 unrarsrc-3.5.2.tar.gz
[root@localhost beinan]# rpmbuild --ba unrar.spec
[root@localhost beinan]# ls /usr/src/redhat/RPMS/i386/
unrar-3.5.2-1.i386.rpm unrar-debuginfo-3.5.2-1.i386.rpm
[root@localhost beinan]# rpm -ivh /usr/src/redhat/RPMS/i386/unrar-3.5.2-1.i386.rpm
Preparing... ########################################### [100%]
1:unrar ########################################### [100%]
[root@localhost beinan]# unrar x mydoc.rar