No, it will only remove the package that you requested to install, not the dependencies.
This is what the urpme
--auto-orphans options was intended to do, and basically it works as designed, if you know how it really works,
as there's some mechanics that you need to know and need to pay attention to, so that it works exactly as you requested.
Small example:
You have a clean system as starting point, where
urpme --auto-orphans gives no orphans, that is,
all packages currently installed were requested by you to be installed. Literally each one.
Then you install package
foo, this pulls in packages
bar and
baz.
The orphans function marks bar and baz as not explicitely requested by putting them into
/var/lib/rpm/installed-through-deps.listThen, some time later you want to remove
foo. But
bar and
baz stay, as they may still be of use, maybe they are some shared libraries.
Now, you could remove them via urpme --auto-orphans.
You can manually mark packages "un-orphaned" (i.e. remove them from /var/lib/rpm/installed-through-deps.list) by
telling urpmi to install that package, that will do nothing but remove it from the orphans list, as you told urpmi
directly to install it.
That is the ideal case. Just run urpme --auto-orphans (
but DO NOT say yes to remove packages!!!)
to see how many "orphans" you currently have. If you want to keep them, just urpmi all of them ...
Then it works as you requested, and as i described.
Only other way would be to
- Code: Select all
grep -F [RPM] /var/log/syslog
and look for packages that were installed
together with the one you want to remove to manually remove them also, but that's more fiddling ...