cancel
Showing results for 
Search instead for 
Did you mean: 

how to install *.src.rpm ?

SOLVED
Go to solution
Maaz
Valued Contributor

how to install *.src.rpm ?

Hello Dear Experts

plz le me know how to install *.src.rpm.

I tried following ... but failed
rpm -Uvh *.src.rpm
And
rpm -ivh *.src.rpm

Regards
Maaz
4 REPLIES
Alexander Chuzhoy
Honored Contributor

Re: how to install *.src.rpm ?

use
rpmbuild --rebuild pakagename
instead.
This will place the ready rpm under /usr/src/redhat/RPMS tree.
Look for it under existing directories -probably noarch..
Best regards.
Maaz
Valued Contributor

Re: how to install *.src.rpm ?

Thanks Dear Alexander for prompt reply

plz find the attachement... and le me know whats the prblm.

I tried ... but failed
# rpmbuild --rebuild /vlock-1.3-2.src.rpm
.
.
.
RPM build errors:
File not found: /tmp/vlock/usr/man/man1/vlock.1

Thnaks
Regards
Maaz
Stuart Browne
Honored Contributor
Solution

Re: how to install *.src.rpm ?

Hrm.. It looks like the 'spec' file is a bit out-of-touch with the installation.

Right about now, you've no choice but to manually nudge the spec file into line.

Start by 'installing' the source package:

rpm -ivh /vlock-1.3-2.src.rpm

From here you've got two choices. Fix the 'Makefile' so the file gets installed, or fix the Spec so it doesn't look for it. I'd suggest the latter unless you like makefiles:

Then modify the associated spec file:

vi /usr/src/redhat/SPECS/vlock.spec

Find the reference to the file 'vlock.1' under the '%files' section, and remove it.

Once done, save and exit (:wq), then use the command:

rpmbuild -ba /usr/src/redhat/SPECS/vlock.spec

It should end up with an RPM in '/usr/src/redhat/RPMS/i386/' for you to install.
One long-haired git at your service...
NiCK_76
Respected Contributor

Re: how to install *.src.rpm ?

rpmbuild --rebuild *.src.rpm

New rpm files in the /usr/src/redhat/RPMS/

use rpm -Uvh to install them
just for fun