➜ ~ opam list
# Installed packages for system:
base-bigarray base Bigarray library distributed with the OCaml compiler
base-bytes base Bytes library distributed with the OCaml compiler
base-threads base Threads library distributed with the OCaml compiler
base-unix base Unix library distributed with the OCaml compiler
conf-m4 1 Virtual package relying on m4
conf-which 1 Virtual package relying on which
jbuilder 1.0+beta20 Fast, portable and opinionated build system
ocamlfind 1.7.3-1 A library manager for OCaml
➜ ~ opam --version
➜ ~ pacman -Q opam
My package manager, with which I build opam, shows me the new version. Opam itself is still on 1.2.2. The homepage here writes something about adjusting the path, without one single word about which path. https://opam.ocaml.org/blog/opam-2-0-0-rc/
Curious, how did you install opam the first time? Wouldn’t removing it work?
I also used a build script for my package manager. I simply edited that in order to use the rc.
pkgdesc='OCaml package manager'
depends=('aspcud' 'ocaml' 'patch' 'unzip')
optdepends=('darcs: For downloading packages with darcs'
'git: For downloading packages with git'
'mercurial: For downloading packages with mercurial')
make -j1 lib-ext all
make -C "opam-$pkgver-$_pkgver" DESTDIR="$pkgdir-$_pkgver" install
Hmm I thought usually package managers also handle env variables. Unfortunately I’m not really familiar with pacman. This is a dumb question, but would starting a new terminal session help?
Also, any reason why you don’t use the given install script? It will download a prebuilt binary, and you don’t need the aspcud and ocaml dependency anymore (aspcud is not necessary since opam2 has builtin solver). The script will also backup the old
opam binary so you could just
mv it to revert the change.
It turns out, the installed version 1.2.2 is that one from Linuxbrew, it seems like I forgot about that one.
I already did that, so I consider it not as a dumb question
Yeah, because of this obscure path message and since everyone is telling you its insecure to install by such scripts.
Oh, I see now what it means with adjusting the path, it simply asks you where you want to install it once launched. Could not hurt to mention that so. Especially since I have not even anything to adjust.
The naming here confused me a bit. ^^
This script at least suggested me to install into the linuxbrew directory, which gave me the hint
It seems like I messed up the pacman script somehow since it showed zero kb of size on uninstallation.
I guess it installed in the wrong location somehow or so.
Anyway, the script worked so this is solved, thank you.