User Tools

Updates

Drop this as /etc/cron.weekly/auto_update.sh:

auto_update.sh
#!/bin/bash

echo "Update started on $(date)" >> /var/log/autoupdate.log
emerge --sync >> /var/log/autoupdate.log
emerge -uv --deep --with-bdeps=y @world >> /var/log/autoupdate.log
date >> /var/log/autoupdate.log
echo "Update terminated on $(date)" >> /var/log/autoupdate.log

and make it executable:

chmod +x /etc/cron.weekly/auto_update.sh

Periodically you will want to run also:

emerge -cp

and check your news:

eselect news list
eselect news read XXX

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information