How do I disable an existing repository from command line on openSUSE/SUSE?
You can get the names of the repositories on your system using '
sudo zypper repos -n' or '
sudo zypper repos --name'.
To disable '
openSUSE-Leap-42.1-0' repository, type the following command.
sudo zypper modifyrepo --disable openSUSE-Leap-42.1-0
'
openSUSE-Leap-42.1-0' repository should now be disabled.
To verify, type the following command.
sudo zypper repos -n
How do I enable an existing repository from command line on openSUSE/SUSE?
To enable repository, type '
sudo zypper modifyrepo --enable' followed by the name of the repository.
For example, if you want to enable '
openSUSE-Leap-42.1-0' repository using zypper, type the following command.
sudo zypper modifyrepo --enable openSUSE-Leap-42.1-0
'
openSUSE-Leap-42.1-0' repository should now be enabled.
To verify, type the following command
sudo zypper repos -n