How to Install and Uninstall opam Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: November 06,2024

1. Install "opam" package

In this section, we are going to explain the necessary steps to install opam on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install opam

2. Uninstall "opam" package

This is a short guide on how to uninstall opam on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove opam $ sudo apt autoclean && sudo apt autoremove

3. Information about the opam package on Ubuntu 20.04 LTS (Focal Fossa)

Package: opam
Architecture: amd64
Version: 2.0.5-1ubuntu1
Priority: optional
Section: universe/ocaml
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian OCaml Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 9003
Depends: libbz2-1.0, libc6 (>= 2.29), libgcc-s1 (>= 3.0), libglpk40 (>= 4.59), libstdc++6 (>= 5.2), zlib1g (>= 1:1.1.4), opam-installer (= 2.0.5-1ubuntu1), opam-doc (= 2.0.5-1ubuntu1), build-essential, bubblewrap, unzip, wget | curl
Recommends: ocaml, git, darcs, mercurial, m4, rsync
Filename: pool/universe/o/opam/opam_2.0.5-1ubuntu1_amd64.deb
Size: 2006680
MD5sum: f8ab61f2ea5db3b87d1f734ff3732bca
SHA1: a176dd4ff504dc76957004bd562dac89760e6133
SHA256: 8071fd5cd7ca67335e6e2786e21f64e47b4b03c33fbfe1405dae729c550ddf78
Homepage: https://opam.ocaml.org
Description: package manager for OCaml
Description-md5: b7e2edf25a84d3f9167f3c7e2c06f192