Using the Terminal to install or remove Sophos Anti-Virus for Mac OS X

  • Article ID: 14179
  • Rating:
  • 205 customers rated this article 2.5 out of 6
  • Updated: 12 Aug 2014

Home User? The instructions for uninstalling the free edition are posted on our forum.


This article is intended for administrators who are need to use Terminal (e.g., the command line) to install or remove Sophos Anti-Virus for Mac OS X (SAV for Mac), which is either managed by Enterprise Console or is an unmanaged standalone installation.

Important:

  • The steps provided in this article are only recommended for computer administrators running the non-free version of the software who look after multiple Mac computers and who potentially need to automate the procedure.  If you do not need to remove SAV for Mac on multiple computers we recommend you refer to article 119182.
  • Removing SAV for Mac with a Terminal command is no more powerful than uninstalling via the desktop (graphical) uninstaller.  If you are considering using the Terminal because you cannot find the normal uninstaller see article 121206 to download a copy of the uninstaller.

Applies to the following Sophos product(s) and version(s)

Sophos Anti-Virus for Mac OS X

What To Do

All the instructions below are entered in Terminal.  To open Terminal search for it in Spotlight.  Example:

 

Select the instructions based on the version of Sophos Anti-Virus for Mac OS X you have installed (article 112457 explains how to check the version):

Sophos Anti-Virus for Mac OS X version 9

Installation via the Terminal - v9 installation managed by Enterprise Console

On the Mac endpoint computer:

  1. Copy the 'Sophos Anti-Virus.mpkg' installer file a preferred location (e.g., the Desktop).
  2. Open Terminal and change the directory to the one containing the installer.  Example:
    cd /Users/<yourUsername>/Desktop/
  3. Run the following command:
    sudo installer -pkg 'Sophos Anti-Virus.mpkg' -target /

    Note: You will be prompted for a password. This is normally the password of your account used to log on to the computer if your user account has administrative rights.  The password will not appear on screen - press enter when you have entered it.

Installation via the Terminal - v9 standalone installation

  1. Copy the installer file a preferred location (e.g., the Desktop).
  2. Open Terminal and change the directory to the one containing the installer.  Example:
    cd /Users/<yourUsername>/Desktop/
  3. Run the following command:
    • For 9.0.x: sudo "./Sophos Installer.app/Contents/MacOS/InstallationDeployer" --install​
    • For 9.1.x: sudo "./Sophos Installer.app/Contents/MacOS/tools/InstallationDeployer" --install

    Note: You will be prompted for a password. This is normally the password of your account used to log on to the computer if your user account has administrative rights.  The password will not appear on screen - press enter when you have entered it.

Removal via the Terminal - v9 installation managed by Enterprise Console

  1. Open Terminal and run the following command:
    • For 9.0.x: cd /Library/Application\ Support/Sophos/opm/Installer.app/Contents/MacOS/
    • For 9.1.x: cd /Library/Application\ Support/Sophos/opm/Installer.app/Contents/MacOS/tools/
  2. Run the following command:
    sudo ./InstallationDeployer --remove

    Note: You will be prompted for a password. This is normally the password of your account used to log on to the computer if your user account has administrative rights.  The password will not appear on screen - press enter when you have entered it.

Removal via the Terminal - v9 standalone installation

  1. Open Terminal and run the following command:
    cd /Library/Application\ Support/Sophos/opm-sa/Installer.app/Contents/MacOS
  2. Run the following command:
    sudo ./InstallationDeployer --remove

    Note: You will be prompted for a password. This is normally the password of your account used to log on to the computer if your user account has administrative rights.  The password will not appear on screen - press enter when you have entered it.

Sophos Anti-Virus for Mac OS X version 8

Installation via the Terminal - v8 managed or standalone

  1. Copy the 'Sophos Anti-Virus.mpkg' installer file a preferred location (e.g., the Desktop).
  2. Open Terminal and change the directory to the one containing the installer.  Example:
    cd /Users/<yourUsername>/Desktop/
  3. Run the following command:
    sudo installer -pkg 'Sophos Anti-Virus.mpkg' -target /

    Note: You will be prompted for a password. This is normally the password of your account used to log on to the computer if your user account has administrative rights.  The password will not appear on screen - press enter when you have entered it.

 

Removal via the Terminal - v8 managed or standalone

  1. Copy the 'Sophos Anti-Virus.mpkg' installer file a preferred location (e.g., the Desktop).
  2. Open Terminal and change the directory to the one containing the installer.  Example:
    cd /Users/<yourUsername>/Desktop/
  3. Run the following command:
    sudo installer -pkg 'Remove Sophos Anti-Virus.pkg' -target /

    Note: You will be prompted for a password. This is normally the password of your account used to log on to the computer if your user account has administrative rights.  The password will not appear on screen - press enter when you have entered it.

 
If you need more information or guidance, then please contact technical support.

Rate this article

Very poor Excellent

Comments