linuxmint / mintupgrade

41 stars 16 forks source link

Do not use --purge on orphaned packages #53

Closed kfeoktistoff closed 8 months ago

kfeoktistoff commented 1 year ago

Hi all,

Last time I upgraded from Mint 20.3 to 21 the upgrading script found several orphaned packages. Most of them were considered orphaned because they were installed from 3rd party repository which did not have packages for Jammy at the upgrade time. Here is an incomplete list of the packages: pgadmin3, postgresql-12, dolphin-emu, julia, android-tools-adb and other.

After the upgrade I updated the repositories in /etc/apt/sources.list.d/ and reinstalled the packages but because they were removed with --purge option, I had to reconfigure them again.

Thus, will it be feasible to drop --purge argument here? If necessary, a user can purge the removed packages manually later using, e.g. this solution.

Jeremy7701 commented 1 year ago

I detected some unwanted configuration files in LMDE5 by running dpkg --get-selections | awk '$2 == "deinstall" {print $1}' which produced a short list of non-existent packages (which I then removed with apt purge ...).

clefebvre commented 8 months ago

This is no longer relevant to mintupgrade. We only remove only newly orphaned pkgs now.