RPM: Turn off automatic dependency generation

jupiter jupiter.hce at gmail.com
Thu Aug 9 23:17:57 UTC 2012

Thanks Panu, some code I packaged using and linking its own libraries
and those links are used during initialization when you run the

Thank you.

Kind regards,


On 8/7/12, Panu Matilainen <pmatilai at laiskiainen.org> wrote:
> On 08/07/2012 06:48 AM, jupiter wrote:
>> Hi,
>> I don't want rpm to check dependencies, I don't specify anything on
>> requires tag on spec, but the rpm installation still check the
>> dependencies (I know I can run --nodeps, but I don't want to add any
>> additional tag for others to install).
>> I've read the document in section of turn off automatic dependency
>> generation, and I tried to add "%define __find_requires %{nil}" to the
>> spec, but package is still check dependencies.  I even commented out
>> check dependencies on /usr/lib/rpm/find-requires, not work either.
>> Appreciate any help for how to turn off rpm dependency check.
>> Thank you.
> Disabling dependency generation is almost always a bad idea. Rpm doesn't
> invent those dependencies out of the blue: they are required for running
> the software, and swiping them under the carpet wont make the software
> work without them. Eliminating/fixing specific problematic generated
> dependencies is what you want to do instead, generally.
> Generated dependencies can be disabled per-package with "AutoReq: 0" in
> the spec, but the real question is: why do you want to do this?
> 	- Panu -
> _______________________________________________
> Rpm-list mailing list
> Rpm-list at lists.rpm.org
> http://lists.rpm.org/mailman/listinfo/rpm-list

More information about the Rpm-list mailing list