Skip to content

Instantly share code, notes, and snippets.

@kitusmark
Created December 15, 2016 15:01
Show Gist options
  • Save kitusmark/23215cb74f8df57ec119c8610c089831 to your computer and use it in GitHub Desktop.
Save kitusmark/23215cb74f8df57ec119c8610c089831 to your computer and use it in GitHub Desktop.
Little Script that deletes the packages contained in a file called packagesToRemove.list
#!/bin/bash
# Little Script that deletes the packages contained in a file called packagesToRemove.list
packageFile="./packagesToRemove.list"
while IFS= read -r package
do
sudo apt-get -y -q autoremove $package
done < "$packageFile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment