Firstly sorry if it was too long. The relevant parts were:<div><br></div><div><br></div><div><div>root@PANTHER:/home/georgiy# # NOTICE HERE HOW python-newt IS REMOVED BUT NOT PURGED</div><div>root@PANTHER:/home/georgiy# aptitude purge byobu</div>
<div>The following packages will be REMOVED:  </div><div>  byobu{p} python-newt{u}</div><div>...</div><div><div>root@PANTHER:/home/georgiy# # NOW NOTICE HOW PASSING --purge TO purge HAS THE CORRECT BEHAVIOR OF PURGING AS WELL AS REMOVING python-newt</div>
<div>root@PANTHER:/home/georgiy# aptitude purge --purge byobu</div><div>The following packages will be REMOVED:  </div><div>  byobu{p} python-newt{pu} </div></div><div>...</div><div><br></div><div>Question: To be clear when if I tweak Aptitude::Purge-Unused to true it effects only "aptitude purge <package>" and not "aptitude <remove> package" correct?</div>
<div><br></div><div>Also while you say that the current behavior is a safeguard and I do agree partially the current behavior will also confuse new users. At some point in time much like me they're reading the documentation, they learn to use remove in case they wish to reinstall the package and keep current configuration, they learn to use purge if they want it gone period or if they want a fresh start for whatever reason.</div>
<div><br></div><div>Say they go "aptitude purge <package>" wanting to then install with a fresh start. The messed up conf file belonging to some dependency isn't removed. After purging they install again, it's not how they remembered it to be at first, confusion ensues...</div>
<div><br></div><div>The way the documentation is worded users will understand the consequences of purge. They think remove means keep configuration just in case and purge means clean it I want a fresh start. Yet aptitude behaves differently then described. Many simply may not figure out what's happening in such a situation.</div>
<div><br></div><div>With that said while I understand the safety rationale for the current behavior I still feel it causes more harm then good. Speaking of keeping aptitude safe for new users here is an interesting issue to look into that has caused many a n00b grief <a href="http://tanguy.ortolo.eu/blog/article8/">http://tanguy.ortolo.eu/blog/article8/</a></div>
<br><div class="gmail_quote">On Fri, Feb 24, 2012 at 9:15 PM, Daniel Hartwig <span dir="ltr"><<a href="mailto:mandyke@gmail.com">mandyke@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello<br>
<br>
On 25 February 2012 05:32, Georgiy Treyvus <<a href="mailto:georgiytreyvus@gmail.com">georgiytreyvus@gmail.com</a>> wrote:<br>
> package: aptitude<br>
> version: 0.6.3<br>
><br>
> The problem is exactly what the subject line suggests. There is a simple<br>
> workaround of passing --purge to aptitude purge but that looks and feels<br>
> ridiculous. Anyway let my terminal do the talking:<br>
><br>
<br>
TL;DR -- this "simple workaround" is actually a safety measure to<br>
prevent accidental data loss.<br>
<br>
<br>
Purging packages removes files that contain potentially useful<br>
data--logs, conffiles, etc..  Unless the user explicitly asks for a<br>
package to be purged then it will only be removed.  This is intended<br>
to protect user data from being accidentally destroyed.<br>
<br>
On the command-line "aptitude purge byobu" the only explicitly<br>
requested package is byobu, so that is the only one purged.<br>
<br>
Note that apt-get behaives similarly, where "apt-get remove foo" does<br>
not even remove unused packages and "apt-get autoremove" also requires<br>
"--purge".<br>
<br>
If you *always* desire unused packages to be purged:<br>
<br>
-- /etc/apt/apt.conf<br>
Aptitude::Purge-Unused "true";<br>
--<br>
<br>
and this will be the default.  *User beware*.<br>
<br>
<br>
In your example, perhaps I have customized the configuration of the<br>
auto-installed package python-newt and wish to continue using it in<br>
the future.  If Purge-Unused was the default then when byobu is<br>
purged so too is python-newt, and along with it the customizations<br>
performed to it's configuration (not too mention log data).<br>
<br>
A savy user will pick up on this and cancel the operation, mark<br>
python-newt as manually installed, and redo--however, aptitude must be<br>
relatively safe for non-savy users as well.<br>
</blockquote></div><br></div>