Updated: 11 October 2026 · Applies to: Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9
tuptime records every boot and shutdown, so it can report the total uptime, downtime and the number of restarts since installation, which the normal uptime command cannot. The current version is 5.x.
Install
dnf install epel-release && dnf install tuptime # AlmaLinux / Rocky apt install tuptime # Ubuntu / Debian
The package sets up the service that registers each start and stop; data collection begins at installation.
Use it
tuptime # summary: startups, uptime and downtime percentage, averages tuptime -t # table of every boot with uptime and downtime tuptime -l # the same as a list tuptime -k # also show the kernel of each boot
Shutdowns are marked as good or bad; a bad shutdown means the system stopped without a clean power-off (crash or power loss).
Tip: For your VPS, the uptime history helps show whether restarts were planned (clean shutdowns) or unexpected.
Reset the history
tuptime keeps its data in /var/lib/tuptime/tuptime.db. To start counting again (for example after cloning a server), stop the service, remove that file and start it again.