Opam could install latest package and told 'Already up-to-date'? - ocaml

I wanna use opam to install dune package whose version is 1.11.0 or higher. But it told me Already up-to-date while dune is still 1.2.1.
pasting my operations:
$ opam update
=-=- Updating package repositories =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[default] synchronized from https://opam.ocaml.org/1.2.2
And then:
$ opam upgrade dune
Already up-to-date.
But dune didn't be upgraded.. It's still 1.2.1.. How can I install higher version I wanted?
opam --version is 1.2.2
dune --version is 1.2.1

The culprit is this phrase
[default] synchronized from https://opam.ocaml.org/1.2.2
^^^^^^
The 1.2.2 version of opam is long ago deprecated and is never updated, so you can't get anything new. You shall install opam 2.0 to get access to the newest packages.

Related

OPAM doesn't recognize the create subcommand

In following these instructions: https://ocaml.org/docs/install.html#Ubuntu-Ubuntu-19-04
when I ran
eval opam env
it responds with the message
opam: unknown command `env`.
when I run opam switch create 4.08.0 it responds
opam: Invalid switch subcommand "create"
I've just done a fresh install of the latest version of Linux Mint, installed OPAM with apt and also used it to install OCaml.
I used this:
http://opam.ocaml.org/doc/Install.html#Binary-distribution
to reinstall opam, that fixed opam. but utop is still broken.

Can't get newest why3 version from opam

I am using Linux Slackware 14.2, opam version 1.2.2, ocaml 4.03.0 and wanted to install why3 module. As far as I can see in the Internet, the last version of why3 package is 1.2.0.
But even after I ran
opam update
It still suggests my to install why3 1.0.0.
What should I do to update the packages list?
How can I install why3 module system wide as root? Is it safe enough?
Your opam and ocaml installations are both seriously out of date. The latest version of OCaml is 4.07.1, and the latest version of opam is 2.0.4. Linux distro repositories are unfortunately often not very up to date, and as I understand it, packages published for opam v2 aren't backwards-compatible with opam v1.x.
Try installing the latest opam by following the installation guide. Then, using opam, install a more recent version of OCaml and you should be able to get the latest version of why3.
It's recommended to manage your OCaml installations and associated packages with opam instead of installing them globally, since that can potentially cause an unruly mess of broken dependencies over time.

Not able to Install python package libportaudio-dev via pip on Windows 10

Python Version : 2.7.13
Pip Version: 9.0.1
Error: Could not find a version that satisfies the requirement libportaudio-dev(from version:)
No matching distribution found for libportaudio-dev
pip installs packages from PyPI and there is no libportaudio-dev at PyPI. It's not a Python package. It is a package in Ubuntu.
To install it on w32 you have to download the source code and compile it. See the instructions.
There are old precompiled binaries at https://github.com/adfernandes/precompiled-portaudio-windows
https://github.com/spatialaudio/portaudio-binaries — these ones look more fresh.

Python conda - How to upgrade package not available on anaconda

If I am looking at the Anaconda Packages (http://docs.continuum.io/anaconda/pkg-docs), there is a package named "nbconvert" in version 4.0.0.
On the github site of nbconvert (https://github.com/jupyter/nbconvert/releases) there is a newer version (i need this one) 4.1.0. Now how to install this version on my machine? If i try to
conda install nbconvert
It will install version 4.0.0. but I need this new one
If I try to search for this package with
anaconda search -t conda nbconvert
It only finds the 4.0.0 version
The easiest way is to temporarily replace conda's nbconvert with the latest version of pip.
Here's how you can do that:
conda remove nbconvert
pip install nbconvert
After that you can check the version of nbconvert by typing jupyter nbconvert --version. If everything worked out, you will see 4.1.0.
Note that this is just meant to be a temporary workaround until continuum analytics' developers update the package. Don't forget to pip uninstall and conda install when switching back to conda's version.

Does zypper support wildcards for versions?

Using zypper, is there some way to install a version using the a wildcard or something similar?
# zypper install A=0.13.*
Loading repository data...
Reading installed packages...
'A=0.13.*' not found in package names. Trying capabilities.
No provider of 'A=0.13.*' found.
Resolving package dependencies...
Nothing to do.
Or is there a way to search on the version and have it piped into a zypper install (without writing a shell script)?
# zypper se A=0.13
Loading repository data...
Reading installed packages...
No packages found.
# zypper se 'A=0.13*'
Loading repository data...
Reading installed packages...
No packages found.
Yum supports "yum install A=0.13.*". It seems that zypper should be able to too.
(SUSE Linux Enterprise Server 12, zypper 1.11.14)
Search for YaST packages (quote the string to prevent the shell
from expanding the wildcard):
$ zypper se 'yast*'
you just have to use quotes =)