I am running Ubuntu on WSL, and a package I have installed fails when I am trying to run
sudo apt purge --autoremove elasticsearch
The particular package itself is not interesting here, but instead i wonder:
Can you -somewhat conveniently - use some cli tool to step through the purge script one command at a time and then skip the failing steps?