LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't install src.rpm (https://www.linuxquestions.org/questions/linux-newbie-8/cant-install-src-rpm-199538/)

corbis_demon 06-30-2004 12:43 PM

Can't install src.rpm
 
Hi,
Can someone tell me how the source code rpm's should be installed.I don't know what option should be passed after rpm command.I tried -bp,but it didn't work.Help.

l1fe 06-30-2004 12:56 PM

.src.rpm is completely different from .rpm, at least to my knowledge (I'm a newbie too :P)

kilgoretrout 06-30-2004 12:56 PM

It depends what version of rpm is installed on your system. For RPM4.1 and greater included with most recent rpm distros the command is:

# rpmbuild --rebuild <name of source rpm>

for RPM4.0 and earlier it's:

# rpm --rebuild <name of source rpm>

The process creates/builds a new rpm in some subdirectory of /usr/src; it usually tells you where the rpm is placed. That's the rpm you install.

darthtux 06-30-2004 12:59 PM

When you rpm a source rpm look in
/usr/src/rpm/RPMS/
or
/usr/src/rpm/SRPMS/
for the rpm to install

corbis_demon 06-30-2004 01:09 PM

Thanks guys, for the help.


All times are GMT -5. The time now is 08:31 PM.