I repeated your steps and installed php5-mhash and then purged
php5-mhash. In both cases php5-common was installed, respectively
purged.
According to the man page of apt-get this seems to be intended
behaviour:
purge
purge is identical to remove except that packages are removed and
purged (any configuration files are deleted too).
remove
remove is identical to install except that packages are removed
instead of installed....
According to your proposal, purge and remove would no longer reflect
install. I am not sure if this is a good idea. I set this bug report to
incomplete for now, reflecting that the issue has to be given more
thought.
** Changed in: apt (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/541438
Title:
"apt-get purge" should not select another package (when the requested
one in not installed and provided by another one)
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs