0

I've been trying to set up a tor relay, but I ended up deleting the /etc/tor/torrc configuration file after messing it up too much and figuring that tor would create a new unmodified config file after failing to locate it. This didn't turn out to be the case, and reinstalling the tor package didn't restore the config file either.

So in general, what can be done to reset a software package, restoring its configuration state back to when it was first installed? This problem has plagued me before but I haven't come across the solution yet.

Thanks!

Edit: I'm running Ubuntu 18.04

1 Answers1

0

When you need to remove a package you have 2 options :

dpkg -r PACKAGE

will remove the package but keep all configurations files

dpkg -P PACKAGE

will remove the package and all configurations files . if the package is already removed will remove configurations files .

more informations ( man dpkg )