Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install older version of Jenkins?

I'm installing Jenkins 1.532-1.1 on Ubuntu 12.04, and I need to install it using apt-get repo. I ran following three commands which installs latest Jenkins just fine:

  • wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | apt-key add -
  • echo "deb http://pkg.jenkins-ci.org/debian binary/" >> /etc/apt/sources.list
  • apt-get update

But I need to install this specific version 1.532-1.1 (for a reason that is beyond my control). I tried apt-get install jenkins=1.532-1.1, this gives version not found error.

I've had a look at this link http://pkg.jenkins-ci.org/debian/ but installing *.deb is not option for me.

Any idea how I can install jenkins 1.532-1.1 using apt-get?

like image 478
Sushan Ghimire Avatar asked Aug 04 '14 16:08

Sushan Ghimire


1 Answers

Install jenkins specific version without using this command apt-get install jenkins.

Solution: Run the following commands (e.g. 1.652 is the jenkins version that you need to install)

$ wget "http://pkg.jenkins-ci.org/debian/binary/jenkins_1.652_all.deb"  
$ dpkg -i jenkins_1.652_all.deb

During the installation dpkg fails with the following error:

dpkg: error processing package jenkins (--install):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead (0.100.0-16) ...
Errors were encountered while processing:
 jenkins

Soultion: This will install the dependencies

$ apt-get -y install -f 

Package download location : http://pkg.jenkins-ci.org/debian/

like image 140
Shankar Avatar answered Sep 30 '22 20:09

Shankar