Latest LQ Deal: Linux Power User Bundle
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 05-02-2008, 06:18 PM   #1
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
how to install src.rpm

I have learned how to compile the src and install them, or install from the rpm package. But I don't know how to install the package.src.rpm.

Is there an extra step to do it, other than the rpm -i?
Old 05-02-2008, 06:27 PM   #2
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
I do not know about the rpm command. I am new to Linux. If you have the adminstration control in KDE then you can go to software and install new packages from there. I have KDE 3.5.
Old 05-02-2008, 06:29 PM   #3
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,894

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
The .src.rpm is source code that needs to be compiled. When you install the .src.rpm, you get a source tarball in /usr/src/.../.../SOURCES, and an rpm .spec file in /usr/src/.../.../SPECS.

Your task is to compile the binary .rpm that installs in the usual manner.

Go to the SPECS folder, and run the command 'rpmbuild -bb <filename>.spec' to build the binary rpm which will be placed in /usr/src/.../.../RPMS.

/.../.../ represents sublevels of /usr/src. The exact path will vary among rpm based distros.
Old 05-02-2008, 11:32 PM   #4
LQ Newbie
Registered: Nov 2006
Location: Kerala
Distribution: Fedora, Debian, RHEL
Posts: 29
Blog Entries: 1

Rep: Reputation: 15
You can install src.rpm using the same way as installing an rpm.

# rpm -ivh fileanme.src.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
install src.rpm ust Linux - Software 7 10-13-2005 08:34 AM
how to install a .src.rpm labced501 Mandriva 11 10-07-2004 03:59 PM
Can't install src.rpm corbis_demon Linux - Newbie 4 06-30-2004 01:09 PM
how to install *.src.rpm vanhelsing Linux - Software 1 06-10-2004 08:35 AM
when install *.src.rpm.................... eye Linux - Software 1 09-01-2003 12:05 PM > Forums > Linux Forums > Linux - Newbie

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