Skip to content

Instantly share code, notes, and snippets.

@mpfaff
Last active March 5, 2019 01:10
Show Gist options
  • Save mpfaff/3d0db473d30910ce4db8bf512f6fd103 to your computer and use it in GitHub Desktop.
Save mpfaff/3d0db473d30910ce4db8bf512f6fd103 to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
echo "Updating local cache"
sudo apt update
echo "Done updating local cache"
echo "Updating all packages"
sudo apt-get -y dist-upgrade
echo "Done updating all packages"
echo "Removing all unused packages (mostly libraries) and data"
sudo apt-get -y autoremove
sudo apt-get -y autoclean
echo "Done removing all unused packages (mostly libraries) and data"
#!/usr/bin/env sh
sudo apt update
sudo apt-get -y install apt-transport-https
sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
sudo apt update
sudo apt-get -y install dart
pub global activate webdev
pub global activate stagehand
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment