hello everybody,

I am facing a problem as far as Linux RPM is concerned.

This is the .spec file that i am creating and my requirement
is to Package the software that we have created as a rpm,
so that it runs on another linux based system i.e on a remote
linux based pc when i transfer my binary rpm to that.

my .spec file is as follows:

%define name titankey_setup
%define version 2.0.1
%define release 1mdk

Name: %{name}
Summary: antispam
Version: %{version}
Release: %{release}
Source0: /usr/src/redhat/SOURCES/titankey_setup_2.0.1.tar.gz
Group: Applications/Multimedia
License: MIT-like

A Test Application


rm -rf /shivas-antispam-testing
mkdir /shivas-antispam-testing
cp /usr/src/redhat/SOURCES/titankey_setup_2.0.1.tar.gz /shivas-antispam-testing

Then, i execute this file being in the SPECS directory by giving the
folowing command :

rpmbuild -ba antispam-ex.spec

it executes successfully and in the end gives two messages as:

Wrote: /usr/src/redhat/SRPMS/titankey_setup-2.0.1-1mdk.src.rpm
Wrote: /usr/src/redhat/RPMS/i586/titankey_setup-2.0.1-1mdk.i586.rpm

I am getting the desired results perfectly fine at my system.
A Directory by the name of shivas-antispam-testing does gets created
in my root and it contains all the software files untarred .

Now, my problems are:

A. when i
export this "titankey_setup-2.0.1-1mdk.i586.rpm" file
to another linux based system and then successfully execute it,
using the command rpm -ivh titankey_setup-2.0.1-1mdk.i586.rpm
it says:

package titankey_setup-2.0.1-1mdk is already installed

1. I am not able to figure out as to where this
package (titankey_setup-2.0.1-1mdk) is installed
i.e. at what path in that remote linux system?

i tried executing the command whereis<package name>but it just tells
the name of the package above and doesn't tell me the path on the
system, as to where this package is installed?

Similarly when i give this command,

2. rpm -qlp titankey_setup-2.0.1-1mdk.i586.rpm on that
remote linux based system

it says: (contains no files) why so....?

B. how do i make sure that i execute the above
.rpm file on a remote linux based system
and that it creates the shivas-antispam-testing
directory in the root and untars all the files in
the same way as it was doing on my linux system

C. if i specify ftp location of my fie antispam-ex.spec
in the SOURCE0 parameter of .spec file, will it then work ?
and how do i specify it correctly?

D. My distribution is RedHat 9 Currently, however i would also like to
test all the above on Mandrake Linux 10.1, will it work the same way or
do i need to follow a different procedure entirely as far as RPM is
concerned for Mandrake Linux ?

Any Help in this regard would be highly appreciative