Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 09-16-2006, 10:47 AM   #1
LQ Newbie
Registered: May 2006
Posts: 13

Rep: Reputation: 0
rpm command

Hi everyone,

I downloaded a couple of updates in the form of SRPMs from the redhat ftp server recently ( through the command line. Next, I installed the rpms using the standard command rpm -ivh <package_name>.src.rpm

Then going to the /usr/src/redhat/SPECS directory, i tried to compile the *.spec files using the rpm -bb <package_name>.spec command. But it gives me an error saying that the switch -bb is invalid !!

Isn't it true that you need to compile the SRPMs after installing them once ? What needs to be done next ? Please help !
Old 09-16-2006, 10:58 AM   #2
Senior Member
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 57
And which version of Red Hat are you using??? Do you have rpm-build installed??

Checking for the package; rpm -qa rpm-build

Yes, then use it; rpmbuild -bb foo.spec

Or you can try; rpmbuild --rebuild --recompile <package_name>.src.rpm

Yes it is true you have to compile the binary rpm(s) to install the package(s), the source is the source and you want the resulting binary packages.
Old 09-17-2006, 06:07 AM   #3
LQ Newbie
Registered: May 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Hi Lenard,

Thanks for the help I'm using Red Hat Enterprise Linux 4.


command, rpm

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
Why -bash: rpm: command not found??? Also an rpm/yum Q? vbtalent Debian 6 01-23-2006 05:55 PM
help with rpm command arunvk Linux - Software 6 12-10-2005 10:15 AM
How can I get the rpm command and rpm build command on my Debian box? abefroman Debian 6 11-28-2005 01:38 PM
rpm -q command praveenv Linux - Newbie 2 09-08-2004 05:41 AM
rpm command loganwva Linux - General 3 03-13-2002 10:48 AM > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:51 AM.

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