assumes yes

main
mirkobrombin 2 years ago
parent 3e2b97c488
commit 71f8fea2eb

@ -6,7 +6,7 @@ class Apt:
@staticmethod @staticmethod
def install(packages: list): def install(packages: list):
subprocess.run( subprocess.run(
['sudo', 'apt', 'install'] + packages, ['sudo', 'apt', 'install'] + packages + ['-y'],
env={'DEBIAN_FRONTEND': 'noninteractive'}, env={'DEBIAN_FRONTEND': 'noninteractive'},
check=True check=True
) )
@ -14,7 +14,7 @@ class Apt:
@staticmethod @staticmethod
def remove(packages: list): def remove(packages: list):
subprocess.run( subprocess.run(
['sudo', 'apt', 'remove'] + packages, ['sudo', 'apt', 'remove'] + packages + ['-y'],
env={'DEBIAN_FRONTEND': 'noninteractive'}, env={'DEBIAN_FRONTEND': 'noninteractive'},
check=True check=True
) )
@ -22,7 +22,7 @@ class Apt:
@staticmethod @staticmethod
def purge(packages: list): def purge(packages: list):
subprocess.run( subprocess.run(
['sudo', 'apt', 'purge'] + packages, ['sudo', 'apt', 'purge'] + packages + ['-y'],
env={'DEBIAN_FRONTEND': 'noninteractive'}, env={'DEBIAN_FRONTEND': 'noninteractive'},
check=True check=True
) )
@ -38,7 +38,7 @@ class Apt:
@staticmethod @staticmethod
def upgrade(): def upgrade():
subprocess.run( subprocess.run(
['sudo', 'apt', 'upgrade'], ['sudo', 'apt', 'upgrade', '-y'],
env={'DEBIAN_FRONTEND': 'noninteractive'}, env={'DEBIAN_FRONTEND': 'noninteractive'},
check=True check=True
) )

Loading…
Cancel
Save