emerge-later - Intelligent scheduling for Gentoo's emerge.
emerge-later is a tool that allows you to emerge a package when system is inactive, eg. when you are away from the machine. emerge-later registeres scheduling requests with chronicd, an intelligent scheduling daemon that measures system activity, among other things.
If chronicd isn't running, emerge-later will print a warning. Just start chronicd, and the task will be picked up correctly.
emerge-later accepts the following command line options:
email specifies an email address of the person who should be notified when the emerge is completed. eg. email=admin@example.net
By default, set to Inactivity, 1200, which implies the task should be scheduled after 20 minutes (1200 seconds) of Inactivity. To learn more about Chronic constraints, please see chronicd(1).
emerge-later sys-devel/binutils emerge-later -email=mail@vipul.net sys-devel/binutils
As an example, emerge-later sys-devel/binutils will add the line constraint = Inactivity, 1200; only_once = 1; command = emerge sys-devel/binutils to /etc/chrontab and send a SIGHUP to chronicd(1) to force reload of /etc/chrontab. emerge will be run when the system has been idle for more than 20 minutes (1200 seconds).
Vipul Ved Prakash, <mail@vipul.net>
To install Schedule::Chronic::Constraint::NAME, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Schedule::Chronic::Constraint::NAME
CPAN shell
perl -MCPAN -e shell install Schedule::Chronic::Constraint::NAME
For more information on module installation, please visit the detailed CPAN module installation guide.