Friday August 12, 2005 at 14:48
Subject: --force --nodeps Considered Harmful
Keywords:
RPM, Technical
Posted by: Sean Reifschneider
One of the worst things you can do to your RPM-based system is to use
the --force and --nodeps options when adding packages. You don't see much
discussion of just how bad it can be for you though. It's made worse by
some pre-packaged software coming from vendors who have installation
instructions telling you to use --force instead of fixing their packages.
So, before you use these flags, let me tell you about them...
The --force option to "rpm" is actually a short-hand for the options
--replacepkgs, --replacefiles, and --oldpackage:
(Post Reply)
-
--replacepkgs will install the package even if the system already
has this package installed on the system. This leads to
duplicate copies of packages being installed, which is almost
never what you want to have happen. The exception to this is the
kernel, where you may want multiple versions installed so you can
back off to an old version if a new one breaks something. Note
that kernel packages are built such that they do not require
--replacepkgs.
--replacefiles will overwrite files from other packages, ignoring
conflicts between the packages. This is the primary reason that
package installation fails, and simply using this option results
in upgrades to the conflicting package breaking the package you
are now trying to install. Never a good idea, but sometimes
useful if you're lazy and willing to put up with the breakage.
--oldpackage allows an upgrade to upgrade to an older version of a
package. In other words, it provides a retrograde. Usually, RPM
will not upgrade any packages which you already have the same or a
newer version installed.
(Post Reply)
| Comment |
balakumar Subject: nice aice article |
This is very nice article to understand more about RPM