Overview
This article addresses how you can upgrade the Capsule8 sensor application. We will walk users through the step by step instructions for upgrading the Capsule8 sensor packages on your Linux system using the systemd package manager as an example.
Please note that this document assumes that you already have Capsule8 sensor installed and running. If you haven't done that before please visit this page.
Please follow the steps below to upgrade the Capule8 sensor on Debian Ubuntu and Centos/Redhat.
1. Upgrading Capsule8 Sensor on Debian/Ubuntu
Follow the below steps to upgrade the Capsule8 sensor running on your Linux system:
Search to see the Capsule8 Sensor package running on your Linux system using the command below:
apt list --installed | grep capsule8
Sample Output
capsule8-sensor-systemd/focal,now 4.9.0 amd64 [installed,upgradable to: 4.10.1] #This shows the recent version of the capsule8 sensor
Upgrade the Capsule8 Sensor
Run the command below to upgrade to a specific sensor version.
$ apt-get install capsule8-sensor-systemd=4.10.3 #This will upgrade the sensor using systemd as package manager
Sample Output
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be upgraded:
capsule8-sensor-systemd
1 upgraded, 0 newly installed, 0 to remove and 138 not upgraded.
Need to get 31.2 MB of archives.
After this operation, 1153 kB of additional disk space will be used.
Get:1 https://packagecloud.io/capsule8/capsule8/ubuntu focal/main amd64 capsule8-sensor-systemd amd64 4.10.1 [31.2 MB]
Fetched 31.2 MB in 2s (12.5 MB/s)
(Reading database ... 63226 files and directories currently installed.)
Preparing to unpack .../capsule8-sensor-systemd_4.10.1_amd64.deb ...
Unpacking capsule8-sensor-systemd (4.10.1) over (4.9.0) ...
Setting up capsule8-sensor-systemd (4.10.1) ...
Capsule8 Security & Analytics Agent version 4.10.1-03590ed64b (Build: 44f28b07-1f0b-42ab-99bf-d8b4190984e7)
2022-03-03T17:05:09.778Z INFO Successfully set capabilities.
Check to confirm the upgrade was successful
apt list --installed | grep capsule8
Sample Output
capsule8-sensor-systemd/focal,now 4.10.1 amd64 [installed]
Users can see from the above output that Capsule8 sensor has been successfully upgraded to 4.10.1.
Note: Please note that you can upgrade to any version of the Capsule8 sensor just by specifying the version you want to upgrade to.
Alternative Capsule8 Sensor Upgrade
Users can also upgrade to the latest sensor by installing the desired Capsule8 Sensor package with your package manager. The package is installed with the name Capsule8 Sensor and with the service manager as a hyphenated suffix, such as:
- sysV
- systemd
- upstart
- runit
Please see example below:
$ sudo apt-get install capsule8-sensor-systemd #This automatically installs the latest version
2. Upgrading Capsule8 Sensor on RHEL/Centos
Follow the below steps to upgrade the Capsule8 sensor running on your Linux system:
Upgrading the Capsule Sensor
Search to see the Capsule8-sensor package running on your Linux system using the command below:
yum list installed | grep capsule8
rpm -qa | grep capsule8
Sample Output
capsule8-sensor-systemd.x86_64 4.9.0-1 @capsule8_capsule8# This is showing the sensor version running on this host.
Upgrade the Capsule8-Sensor (e.g version 4.10.1)
Run the command below to upgrade to a specific sensor version.
$ sudo yum install capsule8-sensor-systemd=4.10.3 #This will upgrade the sensor using systemd as package manager
Sample Output
Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 14 kB 00:00:00 * base: mirrors.greenmountainaccess.net * epel: epel.mirror.constant.com * extras: mirrors.mit.edu * updates: mirror.vcu.edu base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package capsule8-sensor-systemd.x86_64 0:4.9.0-1 will be updated ---> Package capsule8-sensor-systemd.x86_64 0:4.10.1-1 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================================================================== Updating: capsule8-sensor-systemd x86_64 4.10.1-1 capsule8_capsule8 30 M Transaction Summary ================================================================================================================================================================================== Upgrade 1 Package Total download size: 30 M Is this ok [y/d/N]: y Downloading packages: capsule8-sensor-systemd-4.10.1-1.x86_64.rpm | 30 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : capsule8-sensor-systemd-4.10.1-1.x86_64 1/2 Capsule8 Security & Analytics Agent version 4.10.1-03590ed64b (Build: 44f28b07-1f0b-42ab-99bf-d8b4190984e7) 2022-03-03T17:27:03.919Z INFO Successfully set capabilities. Cleanup : capsule8-sensor-systemd-4.9.0-1.x86_64 2/2 Verifying : capsule8-sensor-systemd-4.10.1-1.x86_64 1/2 Verifying : capsule8-sensor-systemd-4.9.0-1.x86_64 2/2 Updated: capsule8-sensor-systemd.x86_64 0:4.10.1-1 Complete!
$ sudo yum install capsule8-sensor-systemd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 14 kB 00:00:00 * base: mirrors.greenmountainaccess.net * epel: epel.mirror.constant.com * extras: mirrors.mit.edu * updates: mirror.vcu.edu base | 3.6 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 Resolving Dependencies --> Running transaction check ---> Package capsule8-sensor-systemd.x86_64 0:4.9.0-1 will be updated ---> Package capsule8-sensor-systemd.x86_64 0:4.10.1-1 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================== Package Arch Version Repository Size ================================================================================================================================================================================== Updating: capsule8-sensor-systemd x86_64 4.10.1-1 capsule8_capsule8 30 M Transaction Summary ================================================================================================================================================================================== Upgrade 1 Package Total download size: 30 M Is this ok [y/d/N]: y Downloading packages: capsule8-sensor-systemd-4.10.1-1.x86_64.rpm | 30 MB 00:00:01 Running transaction check Running transaction test Transaction test succeeded Running transaction Updating : capsule8-sensor-systemd-4.10.1-1.x86_64 1/2 Capsule8 Security & Analytics Agent version 4.10.1-03590ed64b (Build: 44f28b07-1f0b-42ab-99bf-d8b4190984e7) 2022-03-03T17:27:03.919Z INFO Successfully set capabilities. Cleanup : capsule8-sensor-systemd-4.9.0-1.x86_64 2/2 Verifying : capsule8-sensor-systemd-4.10.1-1.x86_64 1/2 Verifying : capsule8-sensor-systemd-4.9.0-1.x86_64 2/2 Updated: capsule8-sensor-systemd.x86_64 0:4.10.3-1 Complete!
Check to confirm the upgrade was successful
yum list installed | grep capsule8
rpm -qa | grep capsule8
Sample Output
capsule8-sensor-systemd-4.10.1-1.x86_64
Users can see from the above output that Capsule8 sensor has been successfully upgraded to 4.10.1.
Note: Please note that you can upgrade to any version of the Capsule8 sensor just by specifying the version you want to upgrade to.
Alternative Capsule8 Sensor Upgrade
Users can upgrade the sensor by installing the desired Capsule8 Sensor package with your package manager. The package is installed with the name Capsule8 Sensor and with the service manager as a hyphenated suffix, such as:
- sysV
- systemd
- upstart
- runit
Please see example below:
$ sudo yum install capsule8-sensor-systemd
Comments
0 comments
Please sign in to leave a comment.