Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option --minus-repo #576

Open
stoecker opened this issue Nov 7, 2024 · 3 comments
Open

Add option --minus-repo #576

stoecker opened this issue Nov 7, 2024 · 3 comments

Comments

@stoecker
Copy link

stoecker commented Nov 7, 2024

When doing a "yum update" there is an option --disablerepo, which can be used to disable certain repos which you don't want to update (i.e. when you want to check these manually).

Yast has an option "--plus-repo", but no "--minus-repo".

Please add an similar option to yum to disable certain repos for the time of the current operation.

Rationale: When you add a software specific repo (e.g. google chrome, jitsi, ...) they usually only contain newest version. It would be good to have an easy way to disable these for an update call and only install fresh security updates.

@arozyev
Copy link
Collaborator

arozyev commented Nov 26, 2024

If I understand your request properly, what you need is to add software specific repos that you'd like avoid checking automatically, with --disable-repo option or disable it later with modify-repo. Once you ready for an update (e.g. for security updates) enable them temporarily. In addition you can, for example, use zypper update -r <some-software-repo>

@stoecker
Copy link
Author

I don't think so.

zypper --disable-repositories up

does disable ALL repositories. I'm searching for

zypper --disable-repositories=repo1,repo2 up

which still activates all the others, only not the two given ones.

Currently I do this with a temporary rename of the repo file in /etc/zypp/repos.d, but that's a crude workaround.

@stoecker
Copy link
Author

Your solution with disabling repositories is another workaround, but compared to the yum solutions it is still only a workaround. I also tried that and it has other issues, because the repo is usually disabled. Essentially I normally want the repos enabled, only for certain commands I want them disabled, so I'm sure that nothing bad happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants