Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 03-28-2003, 05:25 AM   #1
LQ Newbie
Registered: Nov 2002
Posts: 12

Rep: Reputation: 0
Help on RPM --rebuild


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.

Old 03-28-2003, 07:35 AM   #2
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

Old 03-28-2003, 07:35 AM   #3
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
rpm -Uvh (etc.) if you are upgrading from a previous version.

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

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
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.


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 PM.

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