Re: [Bug 1956094] Re: deborphan guess-work removes too many files
On 31/12/2021 21:53, Andreas Tille wrote:
[...]
Sorry, but I do not understand the problem. What config files are you
talking about? What is "upgrade-system"? I'm using the command
`deborphan` itself just to learn what package might be a potential
candidate for removal. From time to time I'm using
apt purge `deborphan`
but well, that's users responsibility. To learn what is really a "bug"
we need more information that this quoted mail.
Hi, Andreas.
The Debian/Ubuntu "upgrade-system" package automates updating the APT
package list, installing updated packages and removing 'orphaned'
packages. It is very convenient for unattended upgrades of multiple
computers because it can either be run interactively, or without a
controlling terminal.
The "upgrade-system" config file is:
/etc/upgrade-system.conf
By default, "upgrade-system" allows "deborphan to 'guess' which packages
to remove:
ORPHANOPTS="--guess-all --libdevel"
This removes too many packages that are installed by "med-bio-dev' in
particular, so I edited the config file to stop "deborphan" guessing:
ORPHANOPTS="--no-guess-all --libdevel"
It appears that a recent upgrade unconditionally overwrote my edited
"upgrade-system.conf", which resulted in most of the packages installed
by "med-bio-dev" being removed from five of my bioinformatics servers.
Yes, it is a user's responsibility to check but I was caught out by it
recently so I posted a bug report because I thought other people might
also have the same problem when using "upgrade-system" with defaults.
The "upgrade-system" package is very convenient, but the default
settings allow "deborphan" to guess what to remove. In my experience,
that often results in "deborphan" removing packages that are needed.
Happy New Year :-)
Tony.
--
Minke Informatics Limited, Registered in Scotland - Company No. SC419028
Registered Office: 3 Donview, Bridge of Alford, AB33 8QJ, Scotland (UK)
tel. +44(0)19755 63548 http://minke-informatics.co.uk
mob. +44(0)7985 078324 mailto:tony.travis@minke-informatics.co.uk
Reply to: