Skip to content
Snippets Groups Projects

apt upgrade script to put in cron.weekly

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by David Dorchies
    Edited
    sh 261 B
    #!/bin/sh
    
    apt-get update
    
    DEBIAN_FRONTEND=noninteractive \
      apt-get \
      -o Dpkg::Options::=--force-confold \
      -o Dpkg::Options::=--force-confdef \
      -y --allow-downgrades --allow-remove-essential --allow-change-held-packages \
      dist-upgrade
    
    apt autoremove
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment