LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-28-2008, 04:02 PM   #1
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
Source RPM woes -- "Unknown tag"


Good afternoon!

I myself being a Slackware-type (compile everything manually) user, I'm utterly at a loss when it comes to RPMs. I can install and remove RPMs just fine, but today I find myself confronted with a Source RPM for Nessus, the security scanner. I have unpacked the src.rpm into /usr/src/redhat (this is on a CentOS 5 machine), which deposited all of the files in /usr/src/redhat/SOURCES and the spec file in usr/src/redhat/SPECS

Running rpm build however returns the following (I don't know why the spec file has such a long name, but that's what it came as):

Code:
_[/usr/src/redhat/SPECS]_(root@centos5)_
# rpmbuild nessus.specnasl.specnessus-server.specnessus-debuginfo.speclibnessus2.speclibhosts_gatherer2.speclibpcap-nessus2.speclibnasl2.specnessus-devel.spec
error: line 32: Unknown tag: %lib_package nessus 2
I've poked around the internet but nobody seems to have had this problem with this package. Looking inside the specfile around line 32 shows that there is no 'package' section relating to the base nessus package, which I imagine would be problematic.

If anyone could suggest to where I should turn my attention, I'd be appreciative. Thanks!

-- Christopher
 
Old 01-28-2008, 04:38 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Dumping a .src.rpm should only need the --rebuild arg to get your build process going. BTW it's not SOP to build as root: build as unprivileged user (or is that some practice that crept over from using Slackware?) see Building without root, patching software, and distributing RPMs.
 
Old 01-28-2008, 04:50 PM   #3
Poetics
Senior Member
 
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Original Poster
Rep: Reputation: 49
Thanks for the suggestion; however adding the --rebuild flag returns a "cannot be installed" error (no more information than the specfile name).

I'm well aware the dangers inherent in doing most tasks as root and glad you picked up on it -- unfortunately for this particular box it's a necessity handed down by management.

Edit: Good link too, I'm sure I'll get a lot of use out of it as I start to delve (begrudgingly, admittedly) into the world of RPMs.

Last edited by Poetics; 01-28-2008 at 04:51 PM.
 
Old 01-28-2008, 06:12 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I never needed to handle %lib_package macros, so for an explanation see here starting at "Would mind telling me". Hope that works. If it doesn't try building from the nine specs separately starting with the libs.
If that doesn't work post the output in BB code tags and we'll see. If that doesn't work maybe I can help you cheat the whole process and build a monolithic RPM but you mustn't ever distribute that chimera outside your /24.
 
  


Reply

Tags
nessus, srpm



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
"FATAL: Unknown capture source type" error from Kismet atlantanewbie Linux - Wireless Networking 2 04-03-2010 05:34 AM
Courious "unknown" entries in "netstat" output Sheridan Linux - Networking 5 09-01-2009 09:09 AM
Difference Between "Source RPM" "Static RPM" Mic Q SUSE / openSUSE 2 03-30-2005 06:51 PM
rpm -bp command not working says "-bp: unknown option" Niceman2005 Linux - Software 2 11-08-2004 01:36 AM
How to tell rpm of "installed from source" packages hfreeman Linux - Software 2 07-28-2004 01:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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