Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Red Hat This forum is for the discussion of Red Hat Linux.


  Search this Thread
Old 11-18-2004, 09:14 PM   #1
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
Question how to know a src.rpm package what support hardware platform

if I wanna run rpm --rebuild xxx.src.rpm, example:
rpm --rebuild kernel-2.4.21-9.EL.src.rpm --target=i686
bu if not declaim --target=i686 parameter, then only compiled i386 by default.

my question is: how to know a src.rpm package what support hardware platform, how to query it ?
rpm -qpi kernel-2.4.21-9.EL.src.rpm

[root@img SRPMS]# rpm -qpi kernel-2.4.21-9.EL.src.rpm
warning: kernel-2.4.21-9.EL.src.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Name : kernel Relocations: (not relocatable)
Version : 2.4.21 Vendor: Red Hat, Inc.
Release : 9.EL Build Date: Fri 09 Jan 2004 06:08:35 AM CST
Install Date: (not installed) Build Host:
Group : System Environment/Kernel Source RPM: (none)
Size : 60775663 License: GPLv2
Signature : DSA/SHA1, Sun 11 Jan 2004 12:48:42 PM CST, Key ID 219180cddb42a60e
Packager : Red Hat, Inc. <>
Summary : The Linux kernel (the core of the Linux operating system).
Description :
The kernel package contains the Linux kernel (vmlinuz), the core of the Red
Hat Enterprise Linux operating system. The kernel handles the basic
functions of the operating system: memory allocation, process allocation,
device input and output, etc.
above is not include hardware platform message .
any help to great thanks.

I think the compiler options located in .spec file that released by run: rpm2cpio kernel-2.4.21-9.EL.src.rpm | cpio -idm.
but how to check out the %{_target_platform} options without extract rpm package.
Old 11-21-2004, 02:47 AM   #2
Senior Member
Registered: Apr 2003
Distribution: Red Hat + Fedora
Posts: 1,084

Rep: Reputation: 54
Well, you need to read the spec file actually.


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 to install src.rpm package on Red hat Linux? asimpeter Linux - Newbie 10 09-21-2011 09:57 AM
rebuilding cyrus-sasl src.rpm w/mysql support fails willwrk4u Red Hat 1 04-17-2004 02:34 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 - Distributions > Red Hat

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