Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29276 Discussions

Uninstall older versions of ifort on Mac OS X

Joseph_Kelly
Beginner
1,099 Views
I have the following ifort directories in usr/bin:

ifort-9.1-base
ifort-9.1.035-base
ifort-10.0-base
ifort-10.0.016-base
ifort-11.0-base
ifort-11.0.056-base
ifort-11.0.064-base

I want to uninstall all except the most recent. Only the v. 11.0 directories have an uninstall shell script. What do I do with the others?

Thanks!
0 Kudos
2 Replies
Ron_Green
Moderator
1,099 Views
Quoting - Joseph Kelly
I have the following ifort directories in usr/bin:

ifort-9.1-base
ifort-9.1.035-base
ifort-10.0-base
ifort-10.0.016-base
ifort-11.0-base
ifort-11.0.056-base
ifort-11.0.064-base

I want to uninstall all except the most recent. Only the v. 11.0 directories have an uninstall shell script. What do I do with the others?

Thanks!

If you do an ls -ld /usr/bin/ifort* you'll see these are symbolic links:

$ ls -ld ifort*
lrwxr-xr-x 1 root wheel 19 Apr 16 12:15 ifort -> /usr/bin/ifort-11.1
lrwxr-xr-x 1 root wheel 42 Apr 10 08:27 ifort-11.0 -> /usr/bin/ifort-11.0-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Apr 10 08:27 ifort-11.0-base -> /usr/bin/ifort-11.0.064-base
lrwxr-xr-x 1 root wheel 46 Dec 19 13:20 ifort-11.0.056 -> /usr/bin/ifort-11.0.056-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Dec 19 13:20 ifort-11.0.056-base -> /opt/intel/Compiler/11.0/056
lrwxr-xr-x 1 root wheel 46 Apr 10 08:27 ifort-11.0.064 -> /usr/bin/ifort-11.0.064-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Apr 10 08:27 ifort-11.0.064-base -> /opt/intel/Compiler/11.0/064
lrwxr-xr-x 1 root wheel 42 Apr 16 12:15 ifort-11.1 -> /usr/bin/ifort-11.1-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Apr 16 12:15 ifort-11.1-base -> /usr/bin/ifort-11.1.022-base
lrwxr-xr-x 1 root wheel 46 Jan 28 14:07 ifort-11.1.015 -> /usr/bin/ifort-11.1.015-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Jan 28 14:07 ifort-11.1.015-base -> /opt/intel/Compiler/11.1/015
lrwxr-xr-x 1 root wheel 46 Apr 16 12:15 ifort-11.1.022 -> /usr/bin/ifort-11.1.022-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Apr 16 12:15 ifort-11.1.022-base -> /opt/intel/Compiler/11.1/022


So simply remove these links in /usr/bin. Then simply rm -Rf /opt/intel/fc(e)/ directories in /opt/intel. Now if you want to check on licenses, these are stored in ls /Users/Shared/Library/Application Support/Intel/Licenses. These are simple text files, so you can see if there are any old ones you want to remove. Typically you'll want to leave those around - they are small and mostly harmless.

The fact that the uninstall is not removing these links in /usr/bin is a bug - I'll write up a bug report on it. (in my case, I only have 1 11.1 compiler and 1 11.0 compiler installed). UPDATE - this is fixed in the latest 11.1 beta compiler.


0 Kudos
Joseph_Kelly
Beginner
1,099 Views
Thanks Ronald. I haven't run the uninstall scripts yet so there may not be a bug. I forgot that the installation was in /opt/intel rather than in usr/bin. Thanks again for your help.

Joe

If you do an ls -ld /usr/bin/ifort* you'll see these are symbolic links:

$ ls -ld ifort*
lrwxr-xr-x 1 root wheel 19 Apr 16 12:15 ifort -> /usr/bin/ifort-11.1
lrwxr-xr-x 1 root wheel 42 Apr 10 08:27 ifort-11.0 -> /usr/bin/ifort-11.0-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Apr 10 08:27 ifort-11.0-base -> /usr/bin/ifort-11.0.064-base
lrwxr-xr-x 1 root wheel 46 Dec 19 13:20 ifort-11.0.056 -> /usr/bin/ifort-11.0.056-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Dec 19 13:20 ifort-11.0.056-base -> /opt/intel/Compiler/11.0/056
lrwxr-xr-x 1 root wheel 46 Apr 10 08:27 ifort-11.0.064 -> /usr/bin/ifort-11.0.064-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Apr 10 08:27 ifort-11.0.064-base -> /opt/intel/Compiler/11.0/064
lrwxr-xr-x 1 root wheel 42 Apr 16 12:15 ifort-11.1 -> /usr/bin/ifort-11.1-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Apr 16 12:15 ifort-11.1-base -> /usr/bin/ifort-11.1.022-base
lrwxr-xr-x 1 root wheel 46 Jan 28 14:07 ifort-11.1.015 -> /usr/bin/ifort-11.1.015-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Jan 28 14:07 ifort-11.1.015-base -> /opt/intel/Compiler/11.1/015
lrwxr-xr-x 1 root wheel 46 Apr 16 12:15 ifort-11.1.022 -> /usr/bin/ifort-11.1.022-base/bin/intel64/ifort
lrwxr-xr-x 1 root wheel 28 Apr 16 12:15 ifort-11.1.022-base -> /opt/intel/Compiler/11.1/022


So simply remove these links in /usr/bin. Then simply rm -Rf /opt/intel/fc(e)/ directories in /opt/intel. Now if you want to check on licenses, these are stored in ls /Users/Shared/Library/Application Support/Intel/Licenses. These are simple text files, so you can see if there are any old ones you want to remove. Typically you'll want to leave those around - they are small and mostly harmless.

The fact that the uninstall is not removing these links in /usr/bin is a bug - I'll write up a bug report on it. (in my case, I only have 1 11.1 compiler and 1 11.0 compiler installed).


0 Kudos
Reply