LinuxQuestions.org
Review your favorite Linux distribution.
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 03-28-2003, 05:25 AM   #1
ztopher
LQ Newbie
 
Registered: Nov 2002
Posts: 12

Rep: Reputation: 0
Help on RPM --rebuild


Hi

When i try to make a binary from a src.rpm with command:
rpm --rebuild I get the following response. Installing <prg_name>. But nothing is installed and i cannot figure out how to make a binary from source. Really hope someone can help me out a bit.


/Ztopher
 
Old 03-28-2003, 07:35 AM   #2
UserName
LQ Newbie
 
Registered: Mar 2003
Distribution: redhat 8.0,mandrake 9.1
Posts: 29

Rep: Reputation: 15
i think rpm --rebuild is absolete
try rpmbuild --rebuild and let us know


cheers
 
Old 03-28-2003, 07:35 AM   #3
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
When you use rpm --rebuild, you ought to see a whole bunch of garbage scrolling up the screen. Most of it is just compiler messages, but towards the end, after it finishes (and assuming it doesn't end with error messages), you should see a line something like:

Wrote RPM to /usr/src/RPM/RPMS/i386/something.rpm

The directory may be different, but you get the idea. Anyway, the point is that using --rebuild does not actually install the software - it just builds the RPM, and you will need to install it yourself after that. Sometimes it'll build more than one RPM (for example, it'll build the software itself, but also some add-on, or development libraries, or whatever). So, from this point, just type:

rpm -ivh /directory/it/gave/you/above/whatever.rpm
or
rpm -Uvh (etc.) if you are upgrading from a previous version.

Hope this helps!
 
Old 03-28-2003, 07:46 AM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
When you install a .src.rpm, you do get something installed, but not in the way you expect if you're new to rpm's. A .src.rpm installs two files: a spec file in /usr/src/<distroname>/SPECS, and a tarball in /usr/src/<distroname>/SOURCES. When you run rpm --rebuild, your binary rpm will be written to /usr/src/<distroname>/RPMS/arch/i386.


The rpm --rebuild command gives you an installable binary, and should install the binary (according to the man pages, anyway). But, I've never seen the binary installed, only written to the above name directory. I then had an rpm to install. That may be a variation on rpm done by certain distros (controlled by a script somewhere, maybe?). It's a minor hassle for me. I'd rather do it that way anyhow. Build it now; install it after i've had a chance to test it (rpm --test). Hope this helps.
 
  


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
rpm rebuild Xris718 Linux - General 2 05-06-2005 02:34 PM
rpm --rebuild juworld Linux - Newbie 1 02-27-2004 03:30 PM
rpm rebuild talkinggoat Linux - Software 15 09-27-2003 04:02 PM
rpm --rebuild chrisknight Linux - General 1 07-13-2003 09:12 PM
RPM rebuild? GT I.N.C Linux - Software 4 10-20-2002 02:10 PM


All times are GMT -5. The time now is 06:37 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