yum install-remove ~all ~the ~things ~I ~do ~not ~want all the things I do want
I.e. I have a computed list of packages that should be installed, but some of those packages might implicitly bring in dependencies. This is a general problem with RPM because if the dependencies aren't declared as "==" in the spec files but ">=" you'll end up with whatever the latest version is. Then when someone builds a new machine you silently have a mixture of old and new versions in production.
The problem is that if package A is declared but depends on package B which is undeclared this:
yum install-remove A ~B
Will result in yum removing both A and B the first time you run this, the second time it'll install both, and so on as you try to run this again.
What I'd like this to do instead is error out if you give it a transaction where some of the things you're trying to remove are dependencies for some of the things you're trying to install.
I'd like to use this for:
I.e. I have a computed list of packages that should be installed, but some of those packages might implicitly bring in dependencies. This is a general problem with RPM because if the dependencies aren't declared as "==" in the spec files but ">=" you'll end up with whatever the latest version is. Then when someone builds a new machine you silently have a mixture of old and new versions in production.
The problem is that if package
A
is declared but depends on packageB
which is undeclared this:Will result in yum removing both A and B the first time you run this, the second time it'll install both, and so on as you try to run this again.
What I'd like this to do instead is error out if you give it a transaction where some of the things you're trying to remove are dependencies for some of the things you're trying to install.