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

Notices

Reply
 
Search this Thread
Old 09-16-2006, 09:47 AM   #1
prince2242002
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 (ftp.redhat.com) 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, 09:58 AM   #2
Lenard
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: 56
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, 05:07 AM   #3
prince2242002
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.
 
  


Reply

Tags
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 04:55 PM
help with rpm command arunvk Linux - Software 6 12-10-2005 09:15 AM
How can I get the rpm command and rpm build command on my Debian box? abefroman Debian 6 11-28-2005 12:38 PM
rpm -q command praveenv Linux - Newbie 2 09-08-2004 04:41 AM
rpm command loganwva Linux - General 3 03-13-2002 09:48 AM


All times are GMT -5. The time now is 01:58 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration