On 16/06/15, Matthew Miller wrote:
On Tue, Jun 16, 2015 at 09:31:27AM -0400, Dusty Mabe wrote:
> > > It's unfortunate that the dependencies can't be expressed in a
richer
> > > way here. It's not that the kernel requires that package... the
> > > hardware does. Even if we remove it in the cloud kickstarts, it gets
> > > pulled back in on update, because it's a "Requires(pre)".
> > Create a dnf plugin to ignore it.
> Will this handle the rpm db correctly? Meaning after the install will
> rpm still think there is a missing dependency? If this happens I think
> you get a warning anytime you use yum/dnf.
In this case, since it's only a Requires(pre), RPM doesn't mind.
I was talking with the dnf developers today. They said there is no
direct way to achieve this. But we can create a plugin which will remove
it (if it exits) after any transaction.
Another option is to try to put the package in the exclude list for the
transaction. I will try for this method first.
Kushal
--
Fedora Cloud Engineer
CPython Core Developer
CentOS Cloud SIG lead
http://kushaldas.in