Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ocaml stays in system after apt remove and apt purge

Tags:

ubuntu

ocaml

I have an Ubuntu 20.04 which i installed in a distant past. For some reason i have OCaml installed on it even though im pretty sure i never used it. Im trying to uninstall OCaml via

 sudo apt-get remove ocaml
 sudo apt-get purge ocaml

But all i get is

Package 'ocaml' is not installed, so not removed

But the OCaml icon still shows in the "Show Applications" option and if i type

ocaml

Im directed to an ocaml session. How can i completely remove it from my system, including the icon? If it helps: the response to

which ocaml

is

/usr/bin/ocaml
like image 900
Marco Montevechi Filho Avatar asked Oct 29 '25 13:10

Marco Montevechi Filho


1 Answers

You can check which package owns /usr/bin/ocaml with

dpkg -S /usr/bin/ocaml

If no packages own /usr/bin/ocaml, it is safe to delete it by hand.

like image 106
octachron Avatar answered Oct 31 '25 11:10

octachron



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!