LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Install an older version of a package using apt-get (https://www.linuxquestions.org/questions/linux-newbie-8/install-an-older-version-of-a-package-using-apt-get-798370/)

asookazian 03-28-2010 12:36 AM

Install an older version of a package using apt-get
 
I am getting this when I build a project in JBoss Seam:

Code:

asookazian@asookazian-desktop:/opt/jboss-seam-2.2.1.CR1/examples/booking:10:30 PM:$ant clean explode
Buildfile: build.xml

clean:

initcopy:

initpoms:
    [echo] Setting up dependencies

BUILD FAILED
/opt/jboss-seam-2.2.1.CR1/build/common.build.xml:95: The following error occurred while executing this line:
/opt/jboss-seam-2.2.1.CR1/build/utilities.build.xml:18: Directory /opt/jboss-seam-2.2.1.CR1/classes/poms creation was not successful for an unknown reason

Total time: 0 seconds

How can I install Ant 1.7.0 (i.e. an older version of an existing package)?

Code:

asookazian@asookazian-desktop:/opt/jboss-seam-2.2.1.CR1/examples/booking:10:31 PM:$sudo apt-get install ant=1.7.0
Reading package lists... Done
Building dependency tree     
Reading state information... Done
E: Version '1.7.0' for 'ant' was not found

I downloaded the zip file for 1.7.0 but I need to redo all the symbolic link stuff, no?

Code:

asookazian@asookazian-desktop:/usr/bin:10:34 PM:$ls -la ant | less
Code:

lrwxrwxrwx 1 root root 20 2010-03-23 06:15 ant -> ../share/ant/bin/ant
I'd like to keep both versions of the ant package in my Ubuntu 9.10 system if possible...

knudfl 03-28-2010 04:25 AM

I guess, you can just remove the current one :
sudo apt-get remove ant

.. And install the 1.7.0 from Ubuntu 8.04 Hardy
http://packages.ubuntu.com/hardy/ant
http://packages.ubuntu.com/hardy/all/ant/download

A genuine sun java is required :
1) sudo apt-get install sun-java6-jdk
2) sudo update-alternatives --config java
.. please choose the Sun version.
( If it isnt't already installed, and set as default.)
.....


All times are GMT -5. The time now is 12:55 AM.