[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upgrading from Lenny to Squeeze



On Sat, 26 Nov 2011 21:20:59 -0500 (EST), Marc Shapiro wrote:
> 
> I'm not certain, but I THINK that these lines are all referring to 
> packages that were removed by the update, but whose config files were 
> not purged.  There are 47 such files according to 'dpkg -l | grep ^rc' 
> and I recall apt-get saying that there were 43 packages to be removed at 
> one point (several others were removed separately) so that sounds about 
> right.  Is there a way to purge those config files without messing up 
> anything else and without having to do each one individually?

Another poster has suggested how to clean this up, but if you want to keep
such things from happening in the first place, edit (or create)
/etc/apt/apt.conf and put the following line in it:

   Aptitude::Purge-Unused "true";

>From then on, whenever a package is removed because it was
automatically installed and is no longer needed as a prerequisite for
something else, it will also be purged.  That works for commands like
"aptitude full-upgrade" and "aptitude safe-upgrade".  I'm not sure
if it will have any affect with apt-get or synaptic.

-- 
  .''`.     Stephen Powell    
 : :'  :
 `. `'`
   `-


Reply to: