Skip to content

Remove-all/reset/pristine command? #51

Description

@yb66

Hi,

I've done an OS upgrade (to High Sierra, yikes!) and since I had a package fail on me (ffmpeg) and reinstallation didn't fix it, I thought it a good time to clear the decks and reinstall all my packages, but I can't find a command to do that e.g. pkgin reset or the like.

Is there such a command or would blitzing the /opt/pkg directory and reinstalling pkgsrc be the best way forward?

Regards,
iain

Activity

  1. self-assigned this
    on Dec 8, 2017
  2. jperkin commented on Dec 8, 2017

    @jperkin
    Collaborator

    Running rm -rf /opt/pkg /var/db/pkgin should give you a clean slate ready for a fresh install. Depending on what packages you installed there may be some additional leftovers under /var but that shouldn't matter too much.

    It would be interesting to know what the errors were, in case it's something we can fix.

  3. yb66 commented on Dec 10, 2017

    @yb66
    Author

    Thanks very much for that, the removal and reinstall means ffmpeg is now working. The problem with ffmpeg was similar to the ones people are having in this SO question "image not found" error, but they're having the same problem while using Homebrew to install it so at least it's (probably:) not a pkgsrc problem. I'm guessing a linked library changed during the upgrade or something like that but I've no real idea. Let me know if there's something I should check for.

    Note!

    A note for anyone else reading this advice is to remember to make sure your shell is not set to the one you installed with pkgsrc when you run the rm command! (o_O) That took a little sorting out…

  4. added a commit that references this issue on Feb 28, 2018
    d99e7a2
  5. added a commit that references this issue on Mar 14, 2018
  6. added a commit that references this issue on May 15, 2018
    92d7eb5
  7. added a commit that references this issue on Jul 8, 2018
  8. added a commit that references this issue on Sep 20, 2018
  9. added a commit that references this issue on Jun 10, 2019
  10. added a commit that references this issue on Aug 26, 2019
  11. added a commit that references this issue on Oct 10, 2019
  12. added a commit that references this issue on Oct 20, 2019
  13. 133 remaining items

  14. added a commit that references this issue on Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions