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

[SLES] zypper-locks.sh not working #309

Closed
berendt opened this issue Jan 14, 2015 · 0 comments
Closed

[SLES] zypper-locks.sh not working #309

berendt opened this issue Jan 14, 2015 · 0 comments

Comments

@berendt
Copy link
Contributor

berendt commented Jan 14, 2015

zypper-locks.sh is not working like expected. It does not remove any locks.

# zypper --non-interactive rl  \*
No lock has been removed.
# zypper locks | grep package | wc -l
1500

According to the manual page removelock does not support globs.

       removelock (rl) [options] <lock-number|package-name> ...
              Remove specified package lock. Specify the lock to remove by its number obtained with zypper locks or by the package
              name.

This should work:

zypper ll | grep package | awk -F\| '{ print $2 }' | xargs -n 20 zypper rl
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