Suppose I want to reset a port to its initial state, including its configuration files. This can be achieved by:
sudo port uninstall portname
sudo port install portname
(Deactivating and then reactivating the port does not reset the configuration files.)
Is there any way to do this without uninstalling and reinstalling the port, avoiding the overhead of having to rebuild the package?
Edit: Thanks for the replies, Alexander and Nerdling. Archive mode worked for me.