LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 02-15-2006, 02:26 AM   #1
mystic_durle12
Member
 
Registered: Feb 2005
Location: Pakistan
Distribution: Red Hat 9
Posts: 109

Rep: Reputation: 15
how to install source rpms


i have go a source rpm and architecture independant, with .src.rpm and noarch.rpm extension respectively. i dont know how to install them. can someone be kind enough to tell me how?
 
Old 02-15-2006, 03:14 AM   #2
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
Hi,

Type this in a terminal:
Code:
rpm --rebuild yourfilename.src.rpm
That's it.
It will uncompress and unarchive it. Compiler will compile and link the program. RPM will install it.

Have fun
 
Old 02-15-2006, 03:16 AM   #3
mystic_durle12
Member
 
Registered: Feb 2005
Location: Pakistan
Distribution: Red Hat 9
Posts: 109

Original Poster
Rep: Reputation: 15
thanx a lot mate
 
Old 02-15-2006, 03:20 AM   #4
mystic_durle12
Member
 
Registered: Feb 2005
Location: Pakistan
Distribution: Red Hat 9
Posts: 109

Original Poster
Rep: Reputation: 15
but one question still remain unanswered. what should i do with .noarch.rpms and one thing more plz. i have a package ------.fr.noarch.rpm, dashes stand for some name. what does fr represent.
 
Old 02-15-2006, 03:26 AM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by mystic_durle12
but one question still remain unanswered. what should i do with .noarch.rpms and one thing more plz. i have a package ------.fr.noarch.rpm, dashes stand for some name. what does fr represent.
noarch rpms are usually binaries not meant for any particular architecture so they are installed like normal rpms. The "fr" could mean anything, but usually its the packagers initials or an abbreviation of a distro that the rpms are meant for.
 
Old 02-15-2006, 03:56 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
The --rebuild option of rpm may be obsolete. You can use the "rpmbuild -bi package-name.spec" command instead.
After installing a source RPM, there will be a .spec file in the /usr/src/redhat/SPECS directory.
Cd to the SPECS directory. If, for example, you are installing sed from the source rpm, there will be a sed.spec file in that directory. Running "rpmbuild -bi sed.spec" as root will install the source.

One nice thing about installing the source, is that you have access to the documentation source. I'll use that even if I have installed a binary package. "rpmbuild -bp <package-name>.spec" will apply the patches. Then in the /usr/src/redhat/BUILD/<package>/ directory, you can run "make ps" or "make pdf" or "make dvi" to get the printed versions of the manuals, instead of the info files you normally get.


The .noarch.rpm is not a source file. It is an RPM that is architecture independent. For example, it may install documents in /usr/share/doc/<package-name>/ or maybe it is a collection of perl, or python scripts.

Last edited by jschiwal; 02-15-2006 at 04:21 AM.
 
  


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
where do source rpms go? sum1else Fedora 8 09-25-2005 02:01 PM
Building RPMs from source IronBeagle Linux - Software 2 03-04-2005 02:46 PM
Using Source RPMs Ross Clement Red Hat 3 11-23-2003 03:44 PM
help with source rpms with rehat8.0 amtsdw Linux - Newbie 1 04-24-2003 09:12 AM
source rpms Daveb3 Linux - Newbie 9 04-05-2003 02:26 PM


All times are GMT -5. The time now is 04:49 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