#!/bin/sh # for when you want to update from a specific apt source: # # agu-grep pattern # # or when you want to exclude a specific apt source: # # agu-grep -v pattern grep ${1+"$@"} /etc/apt/sources.list \ | apt-get -o 'APT::Get::List-Cleanup=no' -o 'Dir::Etc::SourceList=/dev/fd/0' update