02-04-2006
For most distributions, source RPMs (SRPM) are included on the CD-ROMs/DVD-ROM, or can be downloaded off the distribution site.
You may install the SRPM but they will always be installed in /usr/src/[whatever]. To extract it at any arbitrary location, you will need to do it via cpio.
More info:
http://www.rpm.org/max-rpm/s1-rpm-mi...-rpm2cpio.html
An example:
Quote:
[cbkihong@laptop testrpm]$ rpm2cpio coreutils-5.2.1-7.src.rpm | cpio -iv
DIR_COLORS
DIR_COLORS.xterm
colorls.csh
colorls.sh
coreutils-4.5.2-C.patch
coreutils-4.5.3-langinfo.patch
coreutils-4.5.3-printf-ll.patch
coreutils-4.5.3-sysinfo.patch
coreutils-5.0-allow_old_options.patch
coreutils-5.2.1.tar.bz2
coreutils-acl.patch
coreutils-dateseconds.patch
coreutils-i18n.patch
coreutils-pam.patch
coreutils-selinux.patch
coreutils.spec
fileutils-4.1-dircolors_c.patch
fileutils-4.1.10-timestyle.patch
fileutils-4.1.10-utmp.patch
fileutils-4.1.5-afs.patch
sh-utils-1.16-paths.patch
sh-utils-2.0.11-dateman.patch
su.pamd
8875 blocks
This will extract the source RPM in the current directory. This package (coreutils) includes sources to all the fundamental commands. The official source package is in the coreutils-5.2.1.tar.bz2 tarball (known as "pristine sources" in the official literature), those outside are patches that will be automatically applied before the actual building process begins with rpmbuild. For more information about this process, please read the RPM book.
Last edited by cbkihong; 02-04-2006 at 10:41 PM..
10 More Discussions You Might Find Interesting
1. Programming
Hello Unix experts,
I downloaded rpm-4.0 source from ftp.redhat.com and tried to make it. There are something I could not understand.
- Makefile.in and Makefile.am instead of Makefile
- file INSTALL doesn't show clearly the steps of compiling
What are these 2 files, Makefile.in and... (2 Replies)
Discussion started by: eddie
2 Replies
2. Shell Programming and Scripting
I have an application for linux writen by me. and before use it, I have to install it. I 've writen a shell program to install it. Now how can I turn it to the *.rpm ? Is this can done by shell command rpm? How to do it?
thanks (1 Reply)
Discussion started by: murataht
1 Replies
3. Linux
Hey,
I've a problem installing a package. rpm -ivh brings the errors:
libjvm.so is needed by
libverify.so is needed by
But I have installed the Java SDK like requested and the files are on the disk. But I have no idea how to find out, why rpm cann't find them.
I have also... (2 Replies)
Discussion started by: mod
2 Replies
4. UNIX for Advanced & Expert Users
Hi Everybody,
I want to download the kernel-2.4.33 source rpm.Does anybody know from where should i download?? As in kernel.org there are .gz or .bz2 versions of kernel packages are available.
Any help is welcome.
Thanks,
Sriram (2 Replies)
Discussion started by: sriram.ec
2 Replies
5. Linux
Hi,
I need to install an rpm file,but I only have '.src.rpm' version of it. I want to convert it to a binary rpm.
so I tried this
rpm --rebuild somethin.src.rpm
But I am gettin '--rebuild:Invalid option' as output
Is there another way to rebuild source rpm.?
Thanks in... (2 Replies)
Discussion started by: eamani_sun
2 Replies
6. SuSE
Hi,
I have got few RPM's from rpmfind.net ( mainly gcc ).
But it seems to be src files instead of the image.
so I think we have to build the src files according to target machine using rpmbuild.
Can any one help me with
1) Various options of rpm build that have to be taken care
2)... (3 Replies)
Discussion started by: Sivaswami
3 Replies
7. Red Hat
Hi,
I have created one soruce rpm by using some help file on net. when i installed the rpm with command "rpm -i xxx.rpm", by default it got installed under "/usr/src/redhat/SOURCES/. I want to install these source file under /application/myapps/.
Also i want some guidence to improve the source... (0 Replies)
Discussion started by: rajeshatbuzz
0 Replies
8. Shell Programming and Scripting
It's the end of the day and I just can't get my head around this. I'm trying to extract just the name of the RPM from the path to a .rpm file. So from:
/home/me/rpm/RPMS/i386/nagios-our-plugins-1.2-6.i386.rpmI need to extract 'nagios-our-plugins'.
I can't get the awk syntax right:
awk '{... (5 Replies)
Discussion started by: aussieos
5 Replies
9. Shell Programming and Scripting
How to make RPM not write to RPM database if RPM fails to deploy?
IE I create an rpm spec file that contains the following
if
then
exit 1
fi
My rpm will fail at deployment, but if I do rpm -qa , I can see the rpm in the rpm db (3 Replies)
Discussion started by: 3junior
3 Replies
10. AIX
dears
i am trying to install the autoconf-2.63-1.aix6.1.noarch.rpm but its shows the below error message .
P700_dev/svn/dependencies>rpm -i autoconf-2.63-1.aix6.1.noarch.rpm
error: failed dependencies:
m4 is needed by autoconf-2.63-1
P700_dev/svn/dependencies> (6 Replies)
Discussion started by: thecobra151
6 Replies
LEARN ABOUT HPUX
edit-patch
EDIT-PATCH(1) General Commands Manual EDIT-PATCH(1)
NAME
edit-patch, add-patch - tool for preparing patches for Debian source packages
SYNOPSIS
edit-patch path/to/patch
add-patch path/to/patch
DESCRIPTION
edit-patch is a wrapper script around the Quilt, CDBS, and dpatch patch systems. It simplifies the process of preparing and editing patches
to Debian source packages and allows the user to not have to be concerned with which patch system is in use. Run from inside the root
directory of the source package, edit-patch can be used to edit existing patches located in debian/patches.
It can also be used to incorporate new patches. If pointed at a patch not already present, it will copy the patch to debian/patches in the
correct format for the patch system in use. Next, the patch is applied and a subshell is opened in order to edit the patch. Typing exit
or pressing Ctrl-d will close the subshell and launch an editor to record the debian/changelog entry.
edit-patch is integrated with the Bazaar and Git version control systems. The patch will be automatically added to the tree, and the
debian/changelog entry will be used as the commit message.
If no patch system is present, the patch is applied inline, and a copy is stored in debian/patches-applied.
add-patch is the non-interactive version of edit-patch. The patch will be incorporated but no editor or subshell will be spawned.
AUTHORS
edit-patch was written by Daniel Holbach <daniel.holbach@canonical.com>, Michael Vogt <michael.vogt@canonical.com>, and David Futcher
<bobbo@ubuntu.com>.
This manual page was written by Andrew Starr-Bochicchio <a.starr.b@gmail.com>.
Both are released under the terms of the GNU General Public License, version 3.
DEBIAN
Debian Utilities EDIT-PATCH(1)