mirror of
https://github.com/wickedyoda/public-setupfiles.git
synced 2026-11-16 13:31:56 -06:00
Added updates.py as python file
This commit is contained in:
1 parent
ec95b319e9
commit
c2ed7d98bb
1 file changed
+19
+19
@@ -0,0 +1,19 @@
|
||||
import subprocess
|
||||
|
||||
# Run 'sudo apt update'
|
||||
subprocess.run(['sudo', 'apt', 'update'])
|
||||
|
||||
# Run 'sudo apt full-upgrade -y'
|
||||
subprocess.run(['sudo', 'apt', 'full-upgrade', '-y'])
|
||||
|
||||
# Run 'sudo apt dist-upgrade -y'
|
||||
subprocess.run(['sudo', 'apt', 'dist-upgrade', '-y'])
|
||||
|
||||
# Run 'sudo apt autoremove -y'
|
||||
subprocess.run(['sudo', 'apt', 'autoremove', '-y'])
|
||||
|
||||
# Run 'sudo apt clean -y'
|
||||
subprocess.run(['sudo', 'apt', 'clean', '-y'])
|
||||
|
||||
# Run 'sudo apt purge -y'
|
||||
subprocess.run(['sudo', 'apt', 'purge', '-y'])
|
||||
Reference in new issue
Block a user