zypper adds a repository and enables refresh in one line… here is a solution to the problem.
zypper adds a repository and enables refresh in one line
When I add a repository using zypper:
zypper ar <url> name
Then I’m going to do it
zypper lr
Check the number of repositories and enable auto-refresh:
zypper mr -r 2
Can’t I do all of this in one line?
Solution
After searching the internet for a while, I found the -f option:
zypper ar -f <url> name
This automatically enables automatic refresh. I wonder why auto-refresh is turned off by default!