09-07-2011
How to create RPM in RHEL5
I would like to package my developed application and deploy it using RPM to my users. Understand that RHEL5 has the following directories created:
- /usr/src/redhat/BUILD
- /usr/src/redhat/RPMS
- /usr/src/redhat/SOURCES
- /usr/src/redhat/SPECS
- /usr/src/redhat/SRPMS
Using KDevelop as my development tool, it is able to create the .tar.gz of my source files.
In order to create the RPM file, do I need to do the following:
1. Copy my .tar.gz to /usr/src/redhat/SOURCES directory?
2. Copy my .spec file to /usr/src/redhat/SPECS directory and run
rpmbuild -ba from there?
As these redhat directories are owned by ROOT, is there any way to specify other directories instead?
Also, if my application has some runtime library dependencies, like
libboost_system.so, how do I indicate it in my .spec file?
10 More Discussions You Might Find Interesting
1. 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
2. Shell Programming and Scripting
Hi Guru,s/Geek,s
I need help to create RPM names from rpms.
Example :
a2ps-4.14-6.fc10.i386
perl-Email-Find-0.10-2.fc10.noarch
directfb-1.2.7-2.fc10.i386
libid3tag-0.15.1b-7.fc10.i386
apr-util-1.3.7-1.fc10.i386
libquicktime-1.0.3-4.fc10.i386
The Desired Output is :
a2ps... (2 Replies)
Discussion started by: anand.linux1984
2 Replies
3. 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
4. Red Hat
Hi All,
I had created a installer (RPM), but later I came across that Netbeans (netbeans-6.9-ml-linux), Flex Builder Linux Alpha (flexbuilder_linux_install_a4_081408.bin) and JDK (jdk-6u20-linux-i586-rpm.bin) dont provide any RPM but they provide a huge binary executable shell script.
My... (0 Replies)
Discussion started by: jw_amp
0 Replies
5. 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
6. UNIX for Dummies Questions & Answers
I m planning to use puppet to implement organizational linux hardening policies across the linux servers.
To begin with i have downloaded.
puppet-2.7.1.tar.gz and tried some basic configuration to get start with puppet.
Now i want to roll out the puppet but before that i would like to make... (7 Replies)
Discussion started by: pinga123
7 Replies
7. Red Hat
I would like to package my developed application and deploy it using RPM to my users. Understand that RHEL5 has the following directories created:
/usr/src/redhat/BUILD
/usr/src/redhat/RPMS
/usr/src/redhat/SOURCES
/usr/src/redhat/SPECS
/usr/src/redhat/SRPMS
Using KDevelop as my... (0 Replies)
Discussion started by: tanlccc
0 Replies
8. UNIX for Dummies Questions & Answers
I m referring below article for creating rpm.
Installation and Setup Rpmbuild Tutorial
As per the document i will need rpmdevtools and rpmlint to begin with.
However i have yum installed and whenever i run them i get below output.
# yum install rpmdevtools rpmlint
Setting up Install Process... (0 Replies)
Discussion started by: pinga123
0 Replies
9. 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
10. Red Hat
i would like to package up an rpm from pre-installed files, say i have a program called "widget" installed under "/opt/widget"
/opt/widget/bin/*
/opt/widget/lib/*
/opt/widget/etc/*
/opt/widget/log/*
and i want to create an rpm from those already installed files, what would the spec file... (2 Replies)
Discussion started by: melixir
2 Replies
LEARN ABOUT CENTOS
rpmsign
RPMSIGN(8) System Manager's Manual RPMSIGN(8)
NAME
rpmsign - RPM Package Signing
SYNOPSIS
rpm --addsign|--resign PACKAGE_FILE ...
rpm --delsign PACKAGE_FILE ...
DESCRIPTION
Both of the --addsign and --resign options generate and insert new signatures for each package PACKAGE_FILE given, replacing any existing
signatures. There are two options for historical reasons, there is no difference in behavior currently.
rpm --delsign PACKAGE_FILE ...
Delete all signatures from each package PACKAGE_FILE given.
USING GPG TO SIGN PACKAGES
In order to sign packages using GPG, rpm must be configured to run GPG and be able to find a key ring with the appropriate keys. By
default, rpm uses the same conventions as GPG to find key rings, namely the $GNUPGHOME environment variable. If your key rings are not
located where GPG expects them to be, you will need to configure the macro %_gpg_path to be the location of the GPG key rings to use. If
you want to be able to sign packages you create yourself, you also need to create your own public and secret key pair (see the GPG manual).
You will also need to configure the rpm macros
%_gpg_name
The name of the "user" whose key you wish to use to sign your packages.
For example, to be able to use GPG to sign packages as the user "John Doe <jdoe@foo.com>" from the key rings located in /etc/rpm/.gpg using
the executable /usr/bin/gpg you would include
%_gpg_path /etc/rpm/.gpg
%_gpg_name John Doe <jdoe@foo.com>
%__gpg /usr/bin/gpg
in a macro configuration file. Use /etc/rpm/macros for per-system configuration and ~/.rpmmacros for per-user configuration. Typically it's
sufficient to set just %_gpg_name.
SEE ALSO
popt(3),
rpm(8),
rpmdb(8),
rpmkeys(8),
rpm2cpio(8),
rpmbuild(8),
rpmspec(8),
rpmsign --help - as rpm supports customizing the options via popt aliases it's impossible to guarantee that what's described in the manual
matches what's available.
http://www.rpm.org/ <URL:http://www.rpm.org/>
AUTHORS
Marc Ewing <marc@redhat.com>
Jeff Johnson <jbj@redhat.com>
Erik Troan <ewt@redhat.com>
Panu Matilainen <pmatilai@redhat.com>
Red Hat, Inc RPMSIGN(8)