I need to install the latest release of libssh2 listed in this repository onto an Ubuntu 16.04 VM on Microsoft's Azure Cloud. Unfortunately, the latest released version I can install from apt-get is 1.5.0.

I need an easily reproducible method of installing this specific release onto the VM. I currently have a script that download's the tarball from github, unpacks, and builds from source via autotools.

I was wondering if there was a way to setup a pre build mirror or something that I could use to install the binaries from apt-get?


I think the simplest option here is to install the necessary packages from 17.10 or 18.04; you’ll need

I would install those using dpkg -i, but if you really want to use apt, you could either add the 17.10 repositories with suitable pinning, or create your own repository with those three packages using apt-ftparchive or reprepro.

  • dpkg -i is fine, in my script I would need to first download the deb files from launchpad from something like wget correct? And then simply run dpkg -i whatever_library.deb? Mar 5 '18 at 13:36
  • That’s it, yes — download the files using wget and then install them using dpkg -i, all three in the same command. Mar 5 '18 at 13:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.