Либо:
Также RTFM:
# man apt-repo | sed -n '16,18p; 64,70p'
DESCRIPTION
The apt-repo script allows to show, add, and remove APT repositories specified by a source in sources.list(5) format, an URL with optional
component, a branch name, or a task number.
SOURCE FORMAT
APT Source
Source can be specified in sources.list(5) format:
apt-repo add "rpm http://git.altlinux.org/repo/39115/ i586 task"
# apt-repo --help | grep string
<source> may be branch or task name, sources.list(5) string, URL or local path.
Можно без кавычек, соблюдая формат,
# grep yandex /etc/apt/sources.list.d/yandex.list | grep http
#rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/i586 classic
#rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/noarch classic
добавить источник
# apt-repo | grep -v datacenter
#
# apt-repo add rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/i586 classic
# apt-repo add rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/noarch classic
# apt-repo | grep -v datacenter
rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/i586 classic
rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/noarch classic
# grep yandex /etc/apt/sources.list.d/yandex.list | grep http
rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/i586 classic
rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/noarch classic
или соблюдая формат (см. help и man) удалить источник
# apt-repo rm rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/i586 classic
# apt-repo rm rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/noarch classic
# apt-repo | grep -v datacenter
#
# grep yandex /etc/apt/sources.list.d/yandex.list | grep http
#rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/i586 classic
#rpm [p8] http://mirror.yandex.ru/altlinux p8/branch/noarch classic