ansible-playbooks/ubuntu/roles/apt-maintenance/files/apt-maintenance.sh

9 lines
241 B
Bash
Raw Normal View History

2019-07-08 00:00:42 +00:00
#!/usr/bin/env bash
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
2019-07-08 00:00:42 +00:00
# Update repositories
apt-get update
# Update packages
apt-get -y upgrade
# Autoremove packages
apt-get -y autoremove