Sophos Linux Sensor のアップデート
概要
この文章では、 Sophos Linux Sensor (SLS) とデフォルトのコンテンツをアップデートする方法について説明します。SLS とデフォルトコンテンツは、次の方法でアップデートできます。
- SLS パッケージリポジトリとパッケージマネージャを使用する
- Sophos Central からパッケージをダウンロードする
前提条件
SLS とデフォルトコンテンツをアップデートする前に、次の作業を行う必要があります。
- SLS がインストールされ、実行されている必要があります。詳細は、Sophos Linux Sensor のインストールを参照してください。
- パッケージマネージャを使用している場合は、SLS パッケージリポジトリにアクセスするようにシステムを設定する必要があります。詳細は、ソフォス パッケージリポジトリから Sophos Linux Sensor をインストールする方法を参照してください。
SLS パッケージリポジトリからのアップデート
SLS を最新バージョンにアップデートするには、次の手順に従います。
ヒント
SLS のデフォルトコンテンツのアップデートは、センサーのアップデートと同じです。デフォルトの内容をアップデートするには、次のコマンドの sophoslinuxsensor-systemd
を sophoslinuxcontent
に置換します。
-
次のコマンドを使用して、Linux システムで実行している SLS パッケージを検索して表示します。
sudo apt list --installed | grep sophos
出力のサンプル:
sophoslinuxsensor-systemd/now 5.0.0.28 amd64 [installed,local]
-
センサーの最新バージョンにアップデートするには、次のコマンドを実行します。
apt install sophoslinuxsensor-systemd
これにより、SLS が最新バージョンにアップデートされます。アップデートするバージョンを指定するだけで、SLS の任意のバージョンにアップデートできます。
出力のサンプル:
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) ---------------------------
-
アップデートが正常に行われたことを確認します。
apt list ?installed | grep -i sophos
出力のサンプル:
sophoslinuxsensor-systemd/now 5.0.0.28 amd64 [installed,local]
サンプル出力から、SLS が最新バージョンに正常にアップデートされたことがわかります。
-
次のコマンドを使用して、Linux システムで実行している SLS パッケージを検索して表示します。
yum list installed | grep -i sophos
出力のサンプル:
sophoslinuxsensor-systemd.x86_64 5.0.0.68-1
-
次のコマンドを実行して、SLSを最新バージョンにアップデートします。
yum install sophoslinuxsensor-systemd
これにより、SLS が最新バージョンにアップデートされます。アップデートするバージョンを指定するだけで、SLS の任意のバージョンにアップデートできます。
出力のサンプル:
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 サイズ =================================================================== 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!
-
アップデートが正常に行われたことを確認します。
yum list installed | grep -i sophos
出力のサンプル:
sophoslinuxsensor-systemd.x86_64 5.0.0.68-1
サンプル出力から、SLS が最新バージョンに正常にアップデートされたことがわかります。