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

  • Article ID: 14179
  • Rating:
  • 220 customers rated this article 2.5 out of 6
  • Updated: 14 Nov 2014

This article is only intended for Mac administrators who need to remove the program from a lot of Macs.  If you need to remove the program from one or two computers see article 120838 for steps using the graphical (and much easier) removal program.

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.2+

Installation via the Terminal - v9.2+ installation managed by Enterprise Console

On the Mac endpoint computer:

  1. Copy the 'Sophos Installer.app' installer file and the 'Sophos Installer Components' directory to 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 "./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.

Installation via the Terminal - v9.2+ standalone installation

  1. Copy the installer file to a preferred location (e.g., the Desktop).  In some cases a 'Sophos Installer Components' directory will exist alongside the 'Sophos Installer.app'.  If this directory exists it should be copied alongside the installer.
  2. Open Terminal and change the directory to the one containing the installer.  Example:
    cd /Users/<yourUsername>/Desktop/
  3. Run the following command:
    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.2+ installation managed by Enterprise Console

  1. Open Terminal and run the following command:
    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.2+ 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 9.0 and 9.1

Installation via the Terminal - v9.0 and v9.1 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.0 and v9.1 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.0 and v9.1 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