Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Show all APT repositories in use.
echo "APT Repositories In Use"
echo "Please wait while I update apt command.."
sudo apt update > /dev/null 2>&1 && \
echo "Current repositores:" && \
sudo apt-cache policy | grep http | awk '{print $2 $3}' | sort -u

This comment has been minimized.

Copy link
Owner Author

@bmatthewshea bmatthewshea commented Jun 23, 2019

Expanded version of apt-cache command sequence given here:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.