I am taking Apache Ant as the example.
Instruction on other packages are similar. By default, Mac OS X 10.7.3 ships with Apache Ant 1.8.2. I will show how to upgrade this to version 1.8.3 (which is the latest @ the time of writing).
First,
Take a note of last part of the result. i.e. ant -> java/ant-1.8.2
Which in-terns tell us folder 'ant' is a symlink to java/ant-1.8.2 folder. If you navigate to '/usr/share/java' folder, you will see all Java related installation that ships with Mac OS X. Now,
- Download & extract Apache Ant 1.8.3.
- Unzip it to '/usr/share/java'
Update the symbolic link to point to new Ant version.
Now it should look like,
Check the Ant version now. 1.8.3 should be shown as the version now.
Change the symbolic link to older version & check the version again.
Instruction on other packages are similar. By default, Mac OS X 10.7.3 ships with Apache Ant 1.8.2. I will show how to upgrade this to version 1.8.3 (which is the latest @ the time of writing).
First,
cd /usr/share ls -al ant
lrwxr-xr-x 1 root wheel 14 Mar 9 16:08 ant -> java/ant-1.8.2
Take a note of last part of the result. i.e. ant -> java/ant-1.8.2
Which in-terns tell us folder 'ant' is a symlink to java/ant-1.8.2 folder. If you navigate to '/usr/share/java' folder, you will see all Java related installation that ships with Mac OS X. Now,
- Download & extract Apache Ant 1.8.3.
- Unzip it to '/usr/share/java'
unzip ~sumedha/tools/apache-ant-1.8.3-bin.zip -d /usr/share/java
Update the symbolic link to point to new Ant version.
on -s -n -f /usr/share/java/ant-1.8.2/ /usr/share/ant
Now it should look like,
lrwxr-xr-x 1 root wheel 32 Mar 10 23:15 ant -> /usr/share/java/apache-ant-1.8.3
Check the Ant version now. 1.8.3 should be shown as the version now.
ant -version Apache Ant(TM) version 1.8.2 compiled on June 3 2011
Change the symbolic link to older version & check the version again.
ln -s -n -f /usr/share/java/apache-ant-1.8.3/ /usr/share/ant ant -version Apache Ant(TM) version 1.8.3 compiled on February 26 2012Similar procedure has to be followed when upgrading other distributions under '/usr/share/java' folder.




