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

Re: Upgrade combined server (wheezy -> jessie)

On Tue, Mar 10, 2015 at 02:29:45PM +0100, Holger Levsen wrote:
> > > > Cleaning up.
> > > > ------------
> > > > for i in $(dpkg -l|grep ^rc|cut -d' ' -f3);do dpkg -P $i;done
> > > 
> > > Not sure this should be there and if, it should be prepended by a warning
> > > that this will remove configuration files of removed packages and should
> > > only be used with care, eg by first looking at what it would remove...
> > 
> > This issue is caused by cf/cf.apt using apt-get autoremove
> > instead of apt-get --purge autoremove, bug filed.
> Is this invoked automatically on upgrades or does one have to invoke it 
> manually?

The packages marked 'rc' are left behind after manually running 
'cfengine-debian-edu -D installation'. IMHO the left-over configuration 
is due to package removal by cfengine (using apt-get purge) and 
afterwards running 'apt-get autoremove' to remove packages that were 
automatically installed by those previously purged packages. Adding 
the '--purge' to autoremove would get rid of them completely.

The real problem would be if the cfengine run removes packages that 
shouldn't be removed at all. Up til now I haven't found packages missing,
but who knows...


Attachment: signature.asc
Description: Digital signature

Reply to: