[CentOS] How to install source rpm on centos

Sun Mar 13 15:10:35 UTC 2011
Nico Kadel-Garcia <nkadel at gmail.com>

On Sun, Mar 13, 2011 at 10:47 AM, sync <jiannma at gmail.com> wrote:

> Thanks , The problem is solved now.
>
> I just run the following commands:
>
> root at test ~: cp -r /usr/src/redhat  /home/test/rpm
> root at test ~: rpmbuild --rebuild pssh-1.2.2-1.rf.src.rpm
>
>
> Then enter the rpm directory will find the xxx.rpm package, then run "rpm
> -ivh xx.rpm".

Workable, but if "/home/test/rpm" exists already, it will copy
"/usr/src/redhat" to "/home/test/rpm/redhat". This can get.....
confusing.