Skip to content

Instantly share code, notes, and snippets.

@mbunge
Created September 8, 2017 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbunge/89b174bbdfaffdad3f28b666f46b5860 to your computer and use it in GitHub Desktop.
Save mbunge/89b174bbdfaffdad3f28b666f46b5860 to your computer and use it in GitHub Desktop.
Remove duplicates in source.list
#
#
#
cat /etc/apt/sources.list | perl -ne '$H{$_}++ or print' > /tmp/sources.list && sudo mv /tmp/sources.list /etc/apt/sources.list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment