Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link
Owner Author

commented Jun 23, 2019

Expanded version of apt-cache command sequence given here: https://askubuntu.com/a/924587/169878

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.