How would I remove the config files of any package, or do apt-get purge
and re-install it without removing any of its dependencies?
Thanks!
You can use dpkg :
sudo dpkg -P --force-all (name of package)
Try using sudo apt-get remove pkg
.
Replace pkg with the package name you want to remove and it will leave the dependencies alone. Then use sudo apt-get install pkg
to re-install the packages.