Skip to content

Instantly share code, notes, and snippets.

Created Mar 14, 2015
What would you like to do?
Capistrano task to upgrade all servers
namespace :util do
desc "apt software update"
task :apt_upgrade do
run "#{sudo} apt-get update -q"
run %Q\#{sudo} sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade -q -y\
Copy link

subimage commented Mar 14, 2015

Will update / upgrade your server packages. Answers "yes" to everything, except keeps old config files that new packages might want to overwrite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment