LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-04-2006, 05:51 PM   #1
strycnine
Member
 
Registered: Jul 2006
Location: Romania
Distribution: Fedora 12
Posts: 160

Rep: Reputation: 31
src.rpm


$ rpm -ivh xchm-1.2-1.src.rpm
xchm-1.2-1.src.rpm: not an rpm package (or package manifest):
??? what happend
How do I install this type of rpm(*.src.rpm)?
 
Old 08-04-2006, 06:09 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 62
src.rpm are source rpms meaning they contain the source file and a spec file which is used to build the rpm to match your system. What it does with that commmand is it extracts the contents to /usr/src/redhat/ Specs and other directories there. Then you can use the rpmbuild command to build the rpm from the spec file.
rpmbuild -ba file.spec

Or to shorten the process use the rpmbuild command directly to the src.rpm file like so.
rpmbuild --recompile -- rebuild file.src.rpm

When it finishes completely with no errors then the rpm will be in /usr/src/redhat/RPMS

Brian1
 
Old 08-04-2006, 06:25 PM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
It looks like the file you downloaded is corrupted or maybe you downloaded the link to the file instead. Use "file xchm-1.2-1.src.rpm" to see what type of file it is.
 
  


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
is it ok to use i386 rpm for i686 & how about src rpm amolgupta Linux - Software 4 05-01-2013 09:45 AM
How do I re-package a .src.rpm to mdk.rpm GlennsPref Mandriva 3 05-20-2006 07:41 PM
Building RPM via src.Rpm ivanatora Linux - Newbie 2 02-20-2006 05:29 PM
.src.rpm, .i386.rpm and .i686.rpm hhegab Linux - Software 2 06-19-2003 08:19 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 04:24 PM


All times are GMT -5. The time now is 09:06 AM.

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