16 lines
439 B
Python
16 lines
439 B
Python
import subprocess
|
|
|
|
from AbstractModule import AbstractModule
|
|
|
|
|
|
class Systemupdate(AbstractModule):
|
|
|
|
def run(self):
|
|
print("Running update")
|
|
subprocess.run("apt update")
|
|
subprocess.run("apt upgrade")
|
|
subprocess.run("apt dist-upgrade")
|
|
subprocess.run("apt autoremove")
|
|
subprocess.run("apt autoclean")
|
|
print("All update processes finished, please check output for further details.")
|