Remove/Purge program with all residuals

In my quest to fix a conflict with AirVPN client and AA 17.10, I have decided to uninstall Air and remove all residual files, threads, ect.

DNS conflicts & no connect wifi VPN

Investigating the uninstall, I have come across this code

dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge

which runs after the command

apt-get --purge airvpn 

These, when run together are as thorough as possible for removing all related files.

Is this safe code for the uninstall project at hand?

I will re-install Air once the residuals are removed as to not create conflicts.

Thanks for your comments and suggestions.


My friend, please use this:

sudo apt-get --purge airvpn 

It is sufficient to remove all that you need to. This code dpkg -l | grep '^rc' | awk '{print $2}' | xargs dpkg --purge is going to get rid of a lot that isn't related to airvpn. I don't know where you got that code from but if you want to see what it removes run it this way:

dpkg -l | grep '^rc' | awk '{print $2}'

I don't think you want to run that command.