-
Notifications
You must be signed in to change notification settings - Fork 0
Updating packages managed by straight.el
Stephen Herbein edited this page Mar 4, 2024
·
5 revisions
- Backup the straight lockfile:
mv ~/.emacs.d/straight.lockfile.el ~/.emacs.d/straight.lockfile.el.$(date +%Y-%m-%d).bak
- Pull the latest version of the package repos:
straight-pull-all
- Delete package caches:
rm -rf ~/.emacs.d/eln-cache
find ~/.emacs.d/ -name "*.elc" -type f -delete
- Restart emacs, let it build everything, fix issues
- Potentially need to recompile vterm with
vterm-module-compile
- Freeze the new versions
straight-freeze-versions
If something goes wrong and you need to revert to a previous version:
- Restore the lockfile:
mv ~/.emacs.d/straight.lockfile.el.<DATE>.bak ~/.emacs.d/straight.lockfile.el
- Rebuild and install those versions:
straight-thaw-versions