Automation of a local dev environment to learn, self-document, save time and avoid to reinvent the wheel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
debian-unattended/custom/install_base_packages.sh

24 lines
408 B

4 years ago
#!/bin/sh
if [ "$(id -u)" -ne 0 ]; then
4 years ago
echo "This script should be run as root. Aborting..." > /dev/stderr
exit 1
fi
echo "Updating apt package index..."
apt-get update > /dev/null
4 years ago
apt -q -y upgrade
4 years ago
apt-get autoremove --purge
echo "Installing base packages..."
apt-get -q -y -o Dpkg::Use-Pty=0 install \
nano \
htop \
nload \
nethogs
echo "Cleaning apt cache..."
apt-get clean