How do I install an older version of Crystal Lang? - crystal-lang

The documentation explains how to install the newest version, but I need a specific (older) version. Could someone help me with the best way to accomplish that?

The official deb & rpm repositories don't provide the previous Crystal releases. We know we want to improve that at some point in time, but it's not happening yet.
If you're on macOS/using Homebrew, you can try installing a Homebrew formula's old version. There might be a similar procedure in Linuxbrew. And I'm not sure about Arch's situation.
Official Docker images go as far as 0.13, in case that helps.
And you can always install Crystal from a .tar.gz published on the repository's Releases page. Just pick the version you prefer instead of the latest.
Don't forget that, the older the Crystal version, the less supported it'll be.

Related

How update or uninstall GStreamer on macOS?

There are no instructions on the GStreamer site about how to update to the latest version or just uninstall it on macOS. Even googling comes up with basically nothing. How do I do it? Is it sufficient to simply delete the whole /Library/Frameworks/GStreamer.framework folder? And then reinstall the latest version? That would be just guesswork which a regular user should not be doing.
Thanks for reading and answering if you can--

VCPKG versions of packages

is there possibility how to install older version of packages by using vcpkg install?
I found that there is a file in versions/baseline.json, but even if I change the version of the package there, it always install the newest one.
Maybe https://github.com/microsoft/vcpkg/blob/master/docs/specifications/versioning.md is what you are looking for. Be aware you need to pass an additional flag to vcpkg to activate that feature. It also only works in manifest mode and not in classic mode.

How to upgrade Portable Python 2.X after installation / deployment

I had recently installed Portable Python 2.7.6.1 from Portable Python, and I understand that the latest Python version of the 2.X family is 2.7.9.
I am wondering if it is possible for me to upgrade my installation of Portable Python, after I had deployed it on my USB? If it is possible, please show me the way.
If this question had already been answered (although I had searched and researched quite a bit), please point me the question. I am more than happy to close this question and offer my apologies.
I may be wrong - but just to provide anyone who stumbled upon this - there is no way I can upgrade the python interpreter that comes with the portable python package.
Eventually I switched to WinPython instead. It seems like there is no easy way to upgrade itself either, but for a portable environment, it can be replaced by downloading the newer version from project homepage.
Edit:
I may be too early in my response, I think Anaconda distribution has an ability to update itself by:
conda update all

Specify which version to install with macports

I would like to install a specific version of gdb and gcc with macports on mac os x leopard, not the last one, but the 6.8 for gdb. Is it possible?
It is possible. It's just convoluted and tedious. It's listed in the documentation these days.
Steps
Go to macports trac and find the package you're looking for. This is the link for subversion, which is the package I'll be using in the example.
Click the PortFile
Click Revision Log (top right)
Pour through the revisions until you find the version you're looking for. Remember the revision number.
In this example I'm looking for version 1.7 of subversion.
With that revision number noted. You need to checkout the version of that subdirectory at that revision.
cd /tmp
svn co http://svn.macports.org/repository/macports/trunk/dports/devel/subversion --revision 106629
Then cd into the folder and run the install
cd subversion
sudo port install
Then it should become selected by default. You can check with
sudo port installed subversion
The following ports are currently installed:
subversion #1.7.10_0 (active)
subversion #1.8.8_0
subversion #1.8.10_0
As I just came across this question when trying to figure out how to download an older version of curl, I thought I'd share an update:
The currently accepted answer did not work for me any longer. This is with MacPorts 2.2.0. What I did was the following.
I started following the directions located here. I ended up using the SVN method, since the first method didn't work. What I didn't realize is that I was missing a critical step.
I found another post that suggested moving the downloaded directory to /private/tmp. After doing this, I cd into the new directory and after a sudo port install I was able to install the older version.
I am on a Mac running OS X 10.8, so your mileage may vary.
This post is old.. but specifying a version is possible. For example I want to install ZeroMQ version 3.2.2 so I use:
sudo port install zmq #3.2.2
And it always helps to goto the MacPorts website and search to see if they have what you are looking for.
As far as I know it is not possible at all to install other versions than the exact version, unless there is a specific port for a certain version.
The only thing you could do is fetch the portfile of the desired version from the Macports subversion repository.
In your case only gdb 7.2 is available on the current version, no variants and no other versions - sorry :)

How do I use a virtualenv-based deployment method without upgrading to each and every upstream version?

Last Friday, I've built an RPM spec for my Django project. The RPM creates a virtualenv, downloads dependencies via pip and puts everything into the packages. Today, I've found out that BeautifulSoup 3.2 has been released. Luckily, I've had my BeautifulSoup version pinned in the requirements.txt, so I found out because of the build failing.
Now a completely different matter is: how do I do avoid upgrading stuff in the future? BeautifulSoup has deleted all previous versions from PyPI, so I can't download a version I've actually tested against. pip's download cache doesn't help here either, since pip always tries to check PyPI first.
Can you recommend something to avoid this situation?
First, this is an unusual situation. I've never seen another package remove all old releases the way BeautifulSoup does. I consider that rather user-hostile behavior, except perhaps in cases of a serious security fix.
That said, if you want a reliable build process using pip, you really need to mirror all the packages you rely on locally. It's not hard to do; you can use pip's --download option (or your existing pip cache) to get all the package tarballs, then just dump them in an indexed, web-served directory and use --find-links in your requirements file to point pip there (plus --no-index to tell it not to use PyPI).
The files in question can still be found: just provide the direct url instead of the package name:
http://www.crummy.com/software/BeautifulSoup/download/3.x/3.0.8.tar.gz
for example.