Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've installed nodejs this way:

sudo apt-get install python-software-properties python g++ make
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs

The thing is it installs node v 0.10.24. Is there there a way I can install nodejs 0.10.23 only just temporarily so I can do an easy apt-get update later so it can be once again the latest version?

Is it possible to do with with apt-get and not use other tools (like nvm or building from source)?

share|improve this question
add comment

1 Answer

The specific version you require is not available in the PPA to be used with apt, but it has been built and is available for download as separate files on the repository's builds list.

Just download the version+release+arch desired file and install it with dpkg -i nodejs.deb.

Don't forget that if after installing the desired version of nodejs an apt-get upgrade will update the current version to the latest version, so you will need to pin the package so that it is not updated.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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