To upgrade to Analytics 2.5.8 from 2.5.7, please use the SWI upgrade. If you are running the Analytics version earlier than 2.5.7, please refer to the instructions in Upgrading On-Premises Analytics section in the below deployment guides to first upgrade to 2.5.7.
For HyperV - Analytics Deployment Guide - HyperV
For ESXi - Analytics Deployment Guide - ESXi
For Azure - Analytics Deployment Guide - Azure