LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-25-2003, 12:17 PM   #1
seastar
LQ Newbie
 
Registered: Dec 2003
Distribution: RedHat 8
Posts: 8

Rep: Reputation: 0
how to take a xxx.src.rpm --> xxx.rpm and install


I need good instructions on how to use a source rpm to install the package and any dependencies?
 
Old 12-25-2003, 12:21 PM   #2
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
do this as root:
rpmbuild --rebuild xxx.src.rpm
 
Old 12-25-2003, 12:28 PM   #3
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Then you'll most likely find a new RPM in /usr/src/packages/RPM
 
Old 12-25-2003, 12:59 PM   #4
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
the path depends on the distribution mikshaw.

/usr/src/packages/RPMS for suse
/usr/src/redhat/RPMS for redhat
and
/usr/src/RPM/RPMS for mandrake
and so on.
 
Old 12-25-2003, 01:10 PM   #5
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
Thanks for the correction.
Cheers.
 
Old 12-25-2003, 01:34 PM   #6
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,891

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
For a thorough explanation which is easy to read, with example commands and output, go to the RedHat website. Under Documentation, look for the book MaxRPM (you can read it on-line or d/l it. Basic rundown: a src rpm is source code which must be compiled to get a binary rpm to install and run. The src rpm installs in /usr/src/<kernel version>/SOURCES, and the spec file which tells rpm what to do with the source is in /SPECS (variation: SuSE puts in in /usr/src/packages). cd to the SPECS directory, and enter the rpm build command, with options, from there (this requires root permission). The resulting binary rpm will be written to the /RPMS directory. Install it as you would install any other rpm.
 
Old 12-26-2003, 09:15 AM   #7
seastar
LQ Newbie
 
Registered: Dec 2003
Distribution: RedHat 8
Posts: 8

Original Poster
Rep: Reputation: 0
Further trouble.
I have completed the "rpmrebuild" step and then gone to install the rpm.
there must be a additional switch or step I need to execute to get this package to install.
below find my error messages

[root@wdrlnxsrv3 wdrtemp]# rpm -Uvh /usr/src/redhat/RPMS/i386/zlib-1.1.4-8.1.i386.rpm
error: failed dependencies:
zlib = 1.1.3 is needed by zlib-devel-1.1.3-25.7
[root@wdrlnxsrv3 wdrtemp]#
[root@wdrlnxsrv3 wdrtemp]# rpm -Uvh /usr/src/redhat/RPMS/i386/zlib-1.1.4-8.1.i386.rpm
error: failed dependencies:
zlib = 1.1.3 is needed by zlib-devel-1.1.3-25.7
[root@wdrlnxsrv3 wdrtemp]#
 
Old 12-26-2003, 11:51 AM   #8
vinay_s_s
Member
 
Registered: Jul 2003
Posts: 658

Rep: Reputation: 30
clearly, u also need the 1.1.4 version of zlib-devel
or remove zlib-devel and try again
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
Problem getting connection with a DLink Router with IP 10.xxx.xxx.xxx kezira Fedora 9 11-28-2005 10:31 PM
Problem getting connection with a DLink Router after setting static IP 10.xxx.xxx.xxx kezira Linux - Networking 1 11-09-2005 10:27 PM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM
# ping -b xxx.xxx.xxx.255 porous Linux - Networking 2 10-13-2003 12:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration