First, I need to make sure that everybody knows the difference between apt-get remove and apt-get purge. apt-get remove <package> — will remove the binaries but will keep the files associated with the package. Also, the dependencies remain untouched. apt-get…