Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to completely uninstall OCaml so that I can Jane Street's Open Bundle. Using sudo apt-get remove ocaml seemed successful but OCaml is still present on my system (I can run the toploop, etc.) How can I remove it completely?

apt-file show ../../../usr/bin/ocaml doesn't return anything.

Solved: I used find . -rexexp '.*ocaml[^/]*/? -exec rm -rf {} \; in the usr directory to remove all ocaml-related files.

share|improve this question


sudo apt-get purge ocaml

You also may have to reboot after.

share|improve this answer
apt-get says that the package doesn't exist, but the ocaml command is still there. – Matthew Piziak May 3 '12 at 19:57

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.