Ask to remove older package after installing a new one

If you have an older version of a package and you install the snap version and you wish to keep just the new version, you will have to remove the older package later manually.

Why not automate this asking the user if he/she wants to remove the older package?

Something like this:

libreoffice version 2.0 installed
Remove the libreoffice version 1.0 that you have installed? (Y/N)

And pressing Enter or Y, it triggers the command:

sudo apt remove libreoffice

It’s time saving and improves the user experience.

Thanks for raising this and it is a good idea. We are actively looking in
to what it would take to do this tastefully.

1 Like