Skip to content

Updating Sophos Linux Sensor

Overview

This article addresses how to update Sophos Linux Sensor (SLS) and the default content. You can update SLS and the default content in the following ways:

  • Using the SLS package repository and a package manager
  • Downloading the packages from Sophos Central.

Prerequisites

Before you can update SLS and the default content, you need to do the following:

Updating from the SLS package repository

Follow the below steps to update SLS to the latest version:

Tip

Updating SLS default content is the same as updating the sensor. Replace sophoslinuxsensor-systemd with sophoslinuxcontent in the commands below to update the default content.

  1. Search to see the SLS package running on your Linux system using the following command:

    sudo apt list --installed | grep sophos
    

    Sample Output:  

    sophoslinuxsensor-systemd/now 5.0.0.28 amd64 [installed,local]
    
  2. To update to the latest sensor version, run the following command:

    $ apt install sophoslinuxsensor-systemd
    

    This will update SLS to the most recent version. You can update to any version of SLS by specifying the version to which you want to update.

    Sample output:

    Reading package lists... Done 
    Building dependency tree        
    Reading state information... Done 
    E: Unable to locate package sophoslinuxsensor 
    root@17072-ar:/etc/apt/sources.list.d# apt install sophoslinuxsensor-systemd 
    Reading package lists... Done 
    Building dependency tree        
    Reading state information... Done 
    The following NEW packages will be installed: 
      sophoslinuxsensor-systemd 
    0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded. 
    Need to get 30.3 MB of archives. 
    After this operation, 78.4 MB of additional disk space will be used. 
    Get:1 https://qa.packages.sophos.com/sophos-linux-sensor/test stable/main amd64 sophoslinuxsensor-systemd amd64 5.0.0.68 [30.3 MB] 
    Fetched 30.3 MB in 2s (13.9 MB/s)                     
    Selecting previously unselected package sophoslinuxsensor-systemd. 
    (Reading database ... 111121 files and directories currently installed.) 
    Preparing to unpack .../sophoslinuxsensor-systemd_5.0.0.68_amd64.deb ... 
    Unpacking sophoslinuxsensor-systemd (5.0.0.68) ... 
    Setting up sophoslinuxsensor-systemd (5.0.0.68) ... 
    2022-06-23T17:46:10.033Z    INFO    config ".." has been read 
    Sophos Linux Runtime Detections Agent version 5.0.0.68 (Build: 2032) 
    2022-06-23T17:46:10.034Z    INFO    Successfully set capabilities. 
    --------------------------- 
    Sophos 
    * https://sophos.com/ 
    
    User & group created: 
    * sophos-spl-user 
    * sophos-spl-group 
    
    Services installed: 
    * Sensor (sophoslinuxsensor) 
    --------------------------- 
    
  3. Confirm the update was successful.

    apt list –installed | grep -i sophos
    

    Sample Output:

    sophoslinuxsensor-systemd/now 5.0.0.28 amd64 [installed,local]
    

    You can see from the sample output that SLS has successfully updated to the latest version.

  1. Search to see the SLS package running on your Linux system using the following command:

    yum list installed | grep -i sophos
    

    Sample output:

    sophoslinuxsensor-systemd.x86_64        5.0.0.68-1
    
  2. Run the command below to update SLS to the latest version:

    yum install sophoslinuxsensor-systemd 
    

    This will update SLS to the most recent version. You can update to any version of SLS by specifying the version to which you want to update.

    Sample output:

    Loaded plugins: fastestmirror, langpacks 
    Loading mirror speeds from cached hostfile 
    Resolving Dependencies 
    --> Running transaction check 
    ---> Package sophoslinuxsensor-systemd.x86_64 0:5.0.0.68-1 will be installed 
    --> Finished Dependency Resolution 
    
    Dependencies Resolved 
    
    =================================================================== 
    Package                      Arch      Version       Repository 
                                                                Size 
    =================================================================== 
    Installing: 
    sophoslinuxsensor-systemd    x86_64    5.0.0.68-1    E2E     29 M 
    
    Transaction Summary 
    =================================================================== 
    Install  1 Package 
    
    Total size: 29 M 
    Installed size: 75 M 
    Is this ok [y/d/N]: y 
    Downloading packages: 
    warning: /var/cache/yum/x86_64/7.7.1908/E2E/packages/sophoslinuxsensor-systemd-5.0.0.68-1.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID e503a54e: NOKEY 
    Retrieving key from file:///tmp/key.gpg 
    Importing GPG key 0xE503A54E: 
    Userid     : "linux_release_2022 <sophosca@sophos.com>" 
    Fingerprint: f41d 7750 b5eb af51 8ea3 c5b6 6ff2 1324 e503 a54e 
    From       : /tmp/key.gpg 
    Is this ok [y/N]: y 
    Running transaction check 
    Running transaction test 
    Transaction test succeeded 
    Running transaction 
    Installing : sophoslinuxsensor-systemd-5.0.0.68-1.x86_64     1/1  
    2022-06-24T18:42:17.803Z    INFO    config ".." has been read 
    Sophos Linux Runtime Detections Agent version 5.0.0.68 (Build: 2032) 
    2022-06-24T18:42:17.803Z    INFO    Successfully set capabilities. 
    --------------------------- 
    Sophos 
    * https://sophos.com/ 
    
    User & group created: 
    * sophos-spl-user 
    * sophos-spl-group 
    
    Services installed: 
    * Sensor (sophoslinuxsensor) 
    --------------------------- 
    Verifying  : sophoslinuxsensor-systemd-5.0.0.68-1.x86_64     1/1  
    
    Installed: 
    sophoslinuxsensor-systemd.x86_64 0:5.0.0.68-1                     
    
    Complete! 
    
  3. Confirm the update was successful.

    yum list installed | grep -i sophos
    

    Sample output:

    sophoslinuxsensor-systemd.x86_64        5.0.0.68-1
    

    You can see from the sample output that SLS has successfully updated to the latest version.

Updating from Sophos Central

To update SLS from Sophos Central, do the following:

  1. Download and verify the latest SLS sensor and content packages. See How to download the deb and rpm packages for Sophos Linux Sensor.

  2. Install the packages manually. See Installing Sophos Linux Sensor from Sophos Central.

Back to top