Hi,
thanks for your bug report.
* Olivier Aubert [2010-12-06 12:41 +0100]:
> Orphaner hard-codes apt-get as application to remove package, ...
A long time ago I thought about using dpkg instead of apt, but there
were two good reasons why orphaner should use apt-get instead of dpkg:
* Apt has hooks, dpkg has not and people use these hooks to do things
like rw mounting /usr before installing or removing packages.
Actually, these apt hooks should be part of dpkg instead, but this
is nothing I can change (at least not easily). Aptitude probably
uses these apt hooks too.
* By using apt-get, orphaner gets an additional dependency and sanity
check nearly for free. Orphaner runs apt-get in simulation mode and
parses the output (or rather uses grep and compares apt-get's result
with what orphaner has expected), if the apt-get's output is ok, it
finally tells apt-get to remove the packages.
> but it would be nice to be able to use aptitude instead, because it
> has the nice property of keeping a log file of its actions in
> /var/log/aptitude.
Nowadays dpkg also has a log (/var/log/dpkg.log*) and I doubt that
logging in aptitude would have been implemented if this would have been
done for dpkg earlier.
> A configuration option to use aptitude would be nice.
I don't think adding a configuration file for deborphan or orphaner
would be a good idea. What possibly could be done is using an
environment variable, e.g., $ORPHANER_OPTIONS in which one could specify
additional orphaner options, this variable could be set in ~/.bashrc in
wanted.
Because of the dependency and sanity check, adding the requested option
and maintaining it would be a more work than one would expect. I also
don't see why it would be useful now that dpkg has logging too.
deborphan will be team maintained in future and others might have
a different opinion about this bug, but currently, I don't think such an
option should be added to orphaner. Let's wait what others think about
this.
Did you know that dpkg does logging and if you did not, did learning
this change your opinion about the requested option?
Regards
Carsten
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]