How To Install Rtcwake In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Install rtcwake
-
Debian
apt-get install util-linuxClick to copy -
Ubuntu
apt-get install util-linuxClick to copy -
Alpine OS
apk add util-linuxClick to copy -
Arch Linux
pacman -S util-linuxClick to copy -
Kali Linux
apt-get install util-linuxClick to copy -
CentOS
yum install util-linuxClick to copy -
Fedora
dnf install util-linuxClick to copy -
Raspbian
apt-get install util-linuxClick to copy -
macOS
brew install util-linuxClick to copy
Enter a system sleep state until specified wakeup time relative to your bios clock.
How to use rtcwake?
Below are few example commands for rtcwake that you can use in the terminal.
Show whether an alarm is set or not:sudo rtcwake -m show -vClick to copySuspend to ram and wakeup after 10 seconds:sudo rtcwake -m mem -s 10Click to copySuspend to disk (higher power saving) and wakeup 15 minutes later:sudo rtcwake -m disk --date +15minClick to copyFreeze the system (more efficient than suspend-to-ram but linux > 3.9 required) and wakeup at a given date and time:sudo rtcwake -m freeze --date YYYYMMDDhhmmClick to copyDisable a previously set alarm:sudo rtc -m disableClick to copyPerform a dry run to wakup the computer at a given time. (Press Ctrl + C to abort):sudo rtcwake -m on --date hh:ssClick to copy
Install the latest version of rtcwake in Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian and macOS from terminal. To install the rtcwake just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of rtcwake from the respository and install it in your computer/server.




