LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-18-2011, 03:41 PM   #1
dann_radkov
Member
 
Registered: Sep 2011
Posts: 52

Rep: Reputation: Disabled
.src.rpm files installation


I have a .src.rpm file containing network drivers that i have to install on a SUSE via the autoyast or via a policy.
Can i set a policy to be applied with a command
rpm --rebuild .xxxx.src.rpm
that will extract the .src.rpm file?
After it extracts it where will it extract it?
I really need to execute it afterwards and set everything to be done automatically.
 
Old 09-18-2011, 04:36 PM   #2
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
I'm my experience installing a source RPM will extract the file into a folder called "rpmbuild" within the users home directory. You may need to run "rpmdev-setuptree" before doing so; this command is part of the rpmdevtools package (in CentOS).

This folder should contain:

RPMS/
SPECS/
SOURCES/
BUILD/
SRPMS/

The spec file used to build the package RPM will reside in SPECS and the code will reside in SOURCES. In theory running rpmbuild -b <spec file here> should rebuild the RPM. If successful the RPM will be written to the RPMS directory.

Last edited by harry edwards; 09-18-2011 at 04:37 PM.
 
1 members found this post helpful.
Old 09-18-2011, 05:02 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
.. Or set up the unprivileged rpmbuild account like this :


# 13 http://www.linuxquestions.org/questi...1-a-766486/#13
 
Old 09-19-2011, 04:13 AM   #4
dann_radkov
Member
 
Registered: Sep 2011
Posts: 52

Original Poster
Rep: Reputation: Disabled
#I'm my experience installing a source RPM will extract the file into a folder called "rpmbuild" within the users home directory. You may need to run "rpmdev-setuptree" before doing so; this command is part of the rpmdevtools package (in CentOS).#

What about if the user is a root?
I dont have rpmddev tools.
when doing rpmbuild <specfile> nothing happens.I dont see any new files.The .src.rpm file and the .src file are in 1 common directory along with the main .tar file and a Kernel-syms-2.6.27.19-5.1.i586.rpm ?
I dont understand what is the kernel-syms-2.6.27.19-5.1.i586.rpm for ??
 
Old 09-19-2011, 04:24 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Quote:
when doing rpmbuild <specfile> nothing happens
Nothing is supposed to happen. The commands for package build are :
rpmbuild -bb file.spec, or : rpmbuild -ba file.spec
http://linux.die.net/man/8/rpmbuild

.

Last edited by knudfl; 09-19-2011 at 04:25 PM.
 
1 members found this post helpful.
  


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
Problem *.src.rpm installation mihalisla Linux - Newbie 2 07-01-2006 08:17 PM
Please Demystify .src.rpm files koodoo Linux - Newbie 5 05-01-2005 05:44 PM
Difference between src.rpm files and source.rpm files ja_nch Red Hat 2 09-06-2003 07:12 PM
How to install from .src.rpm files Baran Linux - Newbie 2 09-02-2003 10:30 AM
rpm switches for src files krumholz Linux - Software 4 06-18-2003 01:07 PM


All times are GMT -5. The time now is 05:06 PM.

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