Repository navigation
Remove-all/reset/pristine command? #51
Description
Activity
Running
rm -rf /opt/pkg /var/db/pkginshould give you a clean slate ready for a fresh install. Depending on what packages you installed there may be some additional leftovers under/varbut that shouldn't matter too much.It would be interesting to know what the errors were, in case it's something we can fix.
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
rmcommand! (o_O) That took a little sorting out…- added a commit that references this issue
on Feb 28, 2018 - added a commit that references this issue
on Mar 14, 2018 - added a commit that references this issue
on May 15, 2018 - added a commit that references this issue
on Sep 20, 2018 - added 2 commits that reference this issue
on Sep 2, 2019 133 remaining items
- added 8 commits that reference this issue
on May 14, 2026 - added a commit that references this issue
on Jun 8, 2026 - added a commit that references this issue
on Aug 30, 2026
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 resetor the like.Is there such a command or would blitzing the /opt/pkg directory and reinstalling pkgsrc be the best way forward?
Regards,
iain