How to effectively Uninstall OpenVPN on Linux Debian Box
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to effectively Uninstall OpenVPN on Linux Debian Box
Hello Fellow Linux Users,
First of all thanks for viewing my thread. My situation is I have installed and configured OpenVpn in routing mode. Now, I have been trying to uninstall this package and start over on a clean OpenVpn free box. I have tried many ways to purge my system of openvpn:
dpkg -r openvpn
dpkg -i openvpn
I have tried force removes and etc. Most of the openvpn is now in trash.
However, I still have all my configuration files, I have scripts, and I have various other openvpn data still in their original locations. I feel that my system is not yet ready to reinstall openvpn so it will be in routing mode. Any ideas, thoughts or comments? My only other option now is to just reinstall the entire Debian OS which I would rather not do. Thanks a lot.
How to effectively Uninstall OpenVPN on Linux Debian Box
Hey Guttorm,
Thanks for the help. I tried:
dpkg--purge remove openvpn
apt-get --purge remove openvpn
and a few other commands. It saids:
Purging configuration files on openvpn ...
dpkg -warning: while removing openvpn, directory /usr/share/doc/openvpn...' not empty so not removed.
I may have edited a couple of those files in that directory structure. Anyhow, my best bet would be to manually go in and rm those files, correct? Im guessing that if you edit/add files to a directory structure that openvpn installs into then you cannot use dpkg to remove that file space.
Anyhow, thanks for your help. This is a good learning experience.
The package system will only delete configuration files that has been installed with the package. Even if you change them, they should be deleted when you use the --purge option. But if you add more files, it will not remove them. So I guess there is something inside that directory that gives the warning. Just take a look and delete manually. It could just be some backup files ending with ~ or something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.