removed pkg_clean

This commit is contained in:
Zsolt Ero
2023-12-21 13:25:25 +01:00
parent c4b7e402ef
commit 62292851f6
2 changed files with 2 additions and 26 deletions

View File

@@ -1,9 +1,6 @@
from ssh_lib.utils import (
apt_get_autoremove,
apt_get_install,
apt_get_purge,
apt_get_update,
sudo_cmd,
)
@@ -34,26 +31,6 @@ def pkg_base(c):
apt_get_install(c, ' '.join(pkg_list))
def pkg_clean(c):
pkg_list = [
# firewalls
'ufw',
'nftables',
'firewalld',
'iptables-persistent',
# bloat
'ntfs-3g',
'popularity-contest',
'landscape*',
'ubuntu-advantage-tools',
]
apt_get_purge(c, ' '.join(pkg_list))
apt_get_autoremove(c)
sudo_cmd(c, 'dpkg --list | grep "^rc" | cut -d " " -f 3 | xargs -r dpkg --purge')
c.sudo('iptables -L', warn=True)
def pkg_upgrade(c):
apt_get_update(c)
c.sudo(