From ebf0284c327ec3a4a974e610f4c58ceef2dc2463 Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 22 Aug 2023 17:35:22 -0700 Subject: [PATCH] apt update and autoremove --- Ubuntu-22.04-Desktop.sh | 5 ++++- Ubuntu-22.04-Server.sh | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Ubuntu-22.04-Desktop.sh b/Ubuntu-22.04-Desktop.sh index b22091c..97050f5 100644 --- a/Ubuntu-22.04-Desktop.sh +++ b/Ubuntu-22.04-Desktop.sh @@ -21,8 +21,11 @@ sudo sed -ie '/^UMASK\s\+/ s/022/077/' /etc/login.defs sudo sed -i 's/USERGROUPS_ENAB yes/USERGROUPS_ENAB no/g' /etc/login.defs echo "umask 077" | sudo tee --append /etc/profile -# Make sure the system has curl (minimal installs do not include it) +# Update and install packages +sudo apt update -y +sudo apt full-upgrade -y sudo apt install -y curl +sudo apt autoremove -y # Setup NTS sudo systemctl disable systemd-timesyncd diff --git a/Ubuntu-22.04-Server.sh b/Ubuntu-22.04-Server.sh index 95007d4..e88862e 100644 --- a/Ubuntu-22.04-Server.sh +++ b/Ubuntu-22.04-Server.sh @@ -15,6 +15,7 @@ sudo apt purge -y aide* sudo apt update -y sudo apt full-upgrade -y sudo apt install -y curl fwupd libpam-pwquality tuned unbound +sudo apt autoremove -y # Setup NTS sudo systemctl disable systemd-timesyncd