Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I wanna completely remove openvpn from my pc (linux ubuntu 12.04) but when i type

sudo apt-get remove  openvpn 

the /etc/openvpn/ folder remains... how can i delete this too?

I wanna delete openvpn so i can install it again cause i think i did something stupid in the first time :/

  • Do you know how to complete remove it?
  • Can you recommend me a good detailed tutorial about installing openvpn in ubuntu 12.10 and how to make certificates?

thanks for your time sorry for my grammar :)

share|improve this question

3 Answers 3

Config is not deleted by a simple apt-get remove.

You want apt-get purge <package>.

share|improve this answer
i try sudo apt-get purge openvpn still nothing. –  Systeem Faillure Oct 30 '12 at 13:57
You may have to just delete that folder manually as well. Some packages to do not have the purge argument correctly configured, or will still save their configs for certain reasons. –  reverendj1 Oct 30 '12 at 15:27
i cant delete it manually :/ –  Systeem Faillure Oct 30 '12 at 16:25
Don't forget sudo... –  davidbaumann Jan 29 at 1:31

ok problem solved just type

cd /etc/
sudo rm -rf openvpn
share|improve this answer

You can't purge it after you remove it that's why it didn't work

sudo apt-get install openvpn && sudo apt-get purge openvpn 

and yes you can remove it manually (as you seem to have already figured out), see these files as well





To see what files get installed with a package, you can usually run the whereis command to see what goes along with it.


whereis openvpn

example output:

openvpn: /usr/sbin/openvpn /etc/openvpn /usr/lib/openvpn /usr/include/openvpn     
/usr/share/openvpn /usr/share/man/man8/openvpn.8.gz
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.