-
Notifications
You must be signed in to change notification settings - Fork 41
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
'pkgin rm *' behaves unexpectedly #125
Comments
When I ran it, it did indeed delete 77 packages. |
After the |
Wow. |
Firstly, what's happening here is that pkgin operates on package matches, not globs. If you ask to install or remove I think that fundamentally we can't support globs like this, due to the way pkgsrc pattern matching works. Consider patterns like Finally, trying to perform a hypothetical I'll leave this open though until the docs are clearer, and if there are a lot of strong opinions that |
Thanks for the explanation. That makes it a bit clearer what happens, though I'm still baffled by the amount of packages deleted each time - if it chooses the 'best match' as you say, why doesn't it always just delete one? Just to give some bigger view: My use case was reinstalling all packages after an OS upgrade, using a pre-existing package list (that can be used to Now that the pkgdb is inside PREFIX, the best method I have for this is to move the old PREFIX aside and install in a new one, but then I have to copy the configuration files manually. If you have a better suggestion, please let me know. Thanks. |
It only chooses one, but the list of packages will also include any packages that are reverse dependencies of that package, and will also be removed to ensure consistency. I'm hoping to make this clearer in future releases by separating out packages and dependencies.
|
I wanted to uninstall all packages, so I tried
pkgin rm \*
, backslash to avoid expansion from the shell, and got:but there are many more packages installed:
The text was updated successfully, but these errors were encountered: