Advertisement
hujuice

Gentoo cron updates

Nov 24th, 2016
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.71 KB | None | 0 0
  1. #!/bin/bash
  2. # ==============================================
  3. # Gentoo system update
  4. # Sergio <hujuice@inservibile.org>
  5. # ==============================================
  6.  
  7. FILELOG=/tmp/emerge.log
  8.  
  9. UNATTENDED_OPTS="--ask n"
  10.  
  11. exec &>$FILELOG
  12.  
  13. date
  14.  
  15. echo "========================================"
  16. echo
  17.  
  18. echo "Portage update"
  19. /usr/bin/emerge $UNATTENDED_OPTS --sync
  20. /usr/bin/eix-update
  21. echo
  22.  
  23. echo "Start..."
  24. /usr/bin/emerge $UNATTENDED_OPTS -uND world
  25. echo "...done."
  26. echo
  27.  
  28. echo "Cleaning oldies..."
  29. /usr/bin/eclean-dist
  30. /usr/bin/eclean-pkg
  31. echo "...done"
  32. echo
  33.  
  34. echo "Portage health"
  35. /usr/bin/eix-test-obsolete
  36. echo
  37.  
  38. echo "Gentoo Linux Security Advisories check"
  39. /usr/bin/glsa-check -l
  40. echo
  41.  
  42. echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement