[Ilugc] Creating a dummy RPM package
- From: binand@xxxxxxxxx (Binand Sethumadhavan)
- Date: Mon Sep 25 13:12:10 2006
On 25/09/06, Pushparajan V <vprajan@xxxxxxxxx> wrote:
"whether is it possible to create a fake RPM file which can be
installed and uninstalled without creating any files in the host
system?.."
Didn't realize that you are installing a non-RPM package...
To create such a fake RPM file, first ensure that you have the
rpm-build package installed. Then, save this text somewhere as
dummy.spec:
=== cut here ===
Summary: Dummy Package to provide tomcat5
Name: dummy-tomcat
Version: 1.0
Release: 1
Group: System Environment/Base
License: Beerware
BuildArch: noarch
Provides: tomcat5, tomcat5-admin-webapps
%description
This meta-package fools other packages to think you have tomcat5 installed
%files
=== cut here ===
Now, run the command: rpmbuild -bb dummy.spec
It will create a dummy-1.0-1.noarch.rpm which when installed, will
provide tomcat5 (assuming your software looks at the provides list
rather than the name list).
Binand
Other related posts: