Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


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

Rep: Reputation: 31

$ 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, 05:09 PM   #2
LQ Guru
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 64
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

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

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


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

All times are GMT -5. The time now is 05:27 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
Open Source Consulting | Domain Registration