To upgrade Administration Server from version 16 or later to the latest version, you can install a new version over an earlier one by using the Kaspersky Security Center Linux installation file.
To upgrade Kaspersky Security Center Linux from version 16 or later to the latest version by using the installation file:
ksc64-<version number>.x86_64.rpmksc64_<version number>_amd64.debsudo yum install ./ksc64-<version number>.x86_64.rpm
sudo apt-get install ./ksc64_<version number>_amd64.deb
After the command has been successfully executed, the /opt/kaspersky/ksc64/lib/bin/setup/postinstall.pl script is created. The message about that is displayed in the terminal.
/opt/kaspersky/ksc64/lib/bin/setup/postinstall.pl script to configure the upgraded Administration Server:sudo /opt/kaspersky/ksc64/lib/bin/setup/postinstall.pl
Y to confirm that you have fully read, understood, and accept the terms and conditions of the EULA. Y again to confirm that you have fully read, understood, and accept the Privacy Policy that describes the handling of data.Installation of the application on your device will continue after you have entered Y twice.
1 to select the standard Administration Server installation mode.The picture below shows the last two steps.

Accepting the terms of the EULA and the Privacy Policy, and selecting the standard Administration Server installation mode in the command-line terminal
Next, the script configures and finishes upgrading the Administration Server. During the upgrade, you cannot change the Administration Server settings adjusted before the upgrade.
We recommend that you upgrade the Network Agent for Linux to the same version as Kaspersky Security Center Linux.
After completion of the remote installation task, the Network Agent version is upgraded.
Run the following commands on Linux-based assets to remove dependencies that are no longer needed:
sudo apt-get -y autoremove
sudo apt -y autoremove
sudo dnf autoremove
sudo yum autoremove