Re: How to add an entry in the rpm database (without a package onhand)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxx>
Platform System Management - 613 592-2666 x252

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux