Skip to content

Instantly share code, notes, and snippets.

@edumco
Last active April 16, 2024 23:21
Show Gist options
  • Save edumco/d3dcc5ef8339eb27c37ff715fe0c0b01 to your computer and use it in GitHub Desktop.
Save edumco/d3dcc5ef8339eb27c37ff715fe0c0b01 to your computer and use it in GitHub Desktop.
Ubuntu
#!/bin/sh
# Update list of apps
sudo apt update
# Upgrade your installed apps but Skip update on CI environments
if [ -z ${CI+x} ]; then sudo apt --assume-yes upgrade; else echo "Skipping upgrade"; fi
# Install some basic utilities
sudo apt install --assume-yes --no-install-recommends ubuntu-restricted-extras \
net-tools \
p7zip-full \
p7zip-rar \
git \
curl
# Clean installation files
# Removes unused depencies
sudo apt autoremove --purge --assume-yes
# Removes old installation files
sudo apt autoclean
# Removes all used installion files
sudo apt clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment