Let's assume that we are using Ubuntu 18.04 LTS (Bionic Beaver).
I know GUI ways to enable or disable the following repositories:
- Important security updates (
bionic-security
) - Recommended updates (
bionic-updates
) - Pre-released updates (
bionic-proposed
) - Unsupported updates (
bionic-backports
)
In KDE user may want to open Software & Updates (or software-properties-kde
) and navigate to Updates tab.
In GNOME, MATE, Xfce user should open Software & Updates (or software-properties-gtk
) and navigate to Updates tab for -security
, -updates
and -backports
and Developer options tab for -proposed
.
But how to enable or disable -updates
, -security
, -backports
, -proposed
repositories from commandline?
Note: I need a solution without direct editing of /etc/apt/sources.list
.
Update: I created discussion and poll named "Does Ubuntu need console alternative for software-properties-gtk / software-properties-kde?" on community.ubuntu.com.
software-properties-kde
hasNoDisplay=true
and so won't be seen normally. Now one has to openDiscover
then click onSettings
and then on ☰ in order to access the GUI ofsoftware-properties-kde
. The other option (which I've taken) is to copysoftware-properties-kde.desktop
to~/.local/share/applications
and comment outNoDisplay=true
. – DK Bose Nov 16 '18 at 12:07apt-config
. I don't think apt-config permits you to drop sources after they have been loaded. – user535733 Nov 16 '18 at 14:42add-apt-repository
/add-apt-repository -r
does for PPAs. Theapt-config
idea sounds interesting. – N0rbert Nov 16 '18 at 19:33sources.list
or do you just not want to touch that file at all? I'm pretty sure enabling/disabling those items in the software GUI just removes / adds those items, not sure how you would do it any other way. A script to add/remove each of those items is fairly trivial. – AlwaysTalkingAboutMyDog Nov 27 '18 at 23:34/etc/apt/sources.list
file – Sergiy Kolodyazhnyy Nov 30 '18 at 00:48