Operating System - Linux
1830623 Members
2305 Online
110015 Solutions
New Discussion

how to reconfigure and recomplie for a rpm installation, what is use for SRPM

 
SOLVED
Go to solution

how to reconfigure and recomplie for a rpm installation, what is use for SRPM

i wonder whether i can reconfigure and complier a rpm installation just like in tarball insall.

i found there is also SRPMS in redhat, it install the source, whether this kind can do that above destination?

fredeick
frederick
4 REPLIES 4
Kodjo Agbenu
Honored Contributor
Solution

Re: how to reconfigure and recomplie for a rpm installation, what is use for SRPM

Hello,

I would suggest you to go to http://freshmeat.net and type "rpm build". For example, if you are running KDE2, you can try krpmbuild.

Good luck.

Kodjo


Learn and explain...
Stuart Browne
Honored Contributor

Re: how to reconfigure and recomplie for a rpm installation, what is use for SRPM

Using Source RPM's, you can install the source (rpm -ivh .rpm), then modify the code-base (/usr/src/redhat/BUILD), recompile it (using the standard tar-ball methods, or I beleive 'rpm -bc'), then re-build a custom binary RPM (rpm -bb ).

The 5 directories under that structure hold the following information:

BUILD Where re-built binary RPM's are stored
SOURCE Where the tar-ball of source for a given package lives
SPECS Specification files for Source RPM's.
SRPMS Source RPM's that are made using 'rpm -ba' or 'rpm -bs'.


Hope this helps a bit.. :P
One long-haired git at your service...
U.SivaKumar_2
Honored Contributor

Re: how to reconfigure and recomplie for a rpm installation, what is use for SRPM

Hi,
Have a look at this link.
http://www-06.ibm.com/developerworks/library/l-rpm2/

regards,
U.SivaKumar
Innovations are made when conventions are broken
I_M
Honored Contributor

Re: how to reconfigure and recomplie for a rpm installation, what is use for SRPM

Hi

# rpm --rebuild xxxx.src.rpm

# rpm -ivh /usr/src/redhat/RPMS/i386/xxxx.i386.rpm

Good luck