[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How to add an entry in the rpm database (without a package onhand)
- From: Igor Pasemnik <ipasemnik liquidcomputing com>
- To: RPM Package Manager <rpm-list redhat com>
- Subject: Re: How to add an entry in the rpm database (without a package onhand)
- Date: Wed, 15 Nov 2006 16:05:57 -0500
I assume you want to satisfy some requires from some other packages,
although you mentioned without rpm and/or creating one, here is how easy
it is to bypass using --nodeps and satisfy whatever requirements that
other package has, assuming you really want to bypass the requirements,
here is a minimal spec file, say something like dummy.spec, build it as
root or non-root with the following stanza:
rpmbuild --define '_rpmdir /tmp' -bb dummy.spec
you should end up with something like:
Wrote: /tmp/x86_64/dummy-1.0.0-1.0.0.x86_64.rpm
install it with (you may need to be root here though):
rpm -Uvh /tmp/x86_64/dummy-1.0.0-1.0.0.x86_64.rpm
here is the sample spec file:
#----------- spec file starts ---------------
Name: dummy
Version: 1.0.0
Release: 1.0.0
Vendor: dummy
Group: dummy
Summary: Provides %{name}
License: %{vendor}
# in Provides: you add whatever you want to fool the system
Provides: another-dummy >= 3.4.5-6.7.8
Provides: yet-another-dummy =< 3.4.5
Provides: also-dummy
Buildroot: %{_tmppath}/%{name}-%{version}-root
%description
%{summary}
%files
#----------- spec file ends ---------------
> >
> > I was wondering if it were possible to add an entry without an rpm, or
> > creating an rpm at all. I guess not.
--
Igor Pasemnik <ipasemnik liquidcomputing com>
Platform System Management - 613 592-2666 x252
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]