Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to downgrade packages installed with ELPA?

Tags:

emacs

elpa

I updated today my packages in emacs with ELPA and after the update I'm stuck with the

Variable binding depth exceeds max-specpdl-size

error. Since it is not easy to debug, is it possible to downgrade the packages that were updated? Where can I find an ELPA log where I can get the previous version of these packages?

like image 973
drkg4b Avatar asked Feb 05 '14 23:02

drkg4b


People also ask

How to upgrade packages installed by ELPA in Emacs?

But, how to upgrade packages installed by ELPA in Emacs? and it will automatically refresh the archive contents. Then, press U to mark all upgradable packages to be upgraded. Last, press x to perform the new updates. Emacs will then download and install all upgradable packages.

How to downgrade a package in Ubuntu?

Using Snap Store in Ubuntu, you can also downgrade any package. For that first, you need to install the Snap Store in your Linux system. You can install the Snap Store either from the Linux software store, or you can use the following terminal commands to install.

How to downgrade a package on Arch Linux?

To downgrade a package on Arch-based distros using downgrade, issue the following command: The output will list all the package versions available to install. Choose from the options and enter the number corresponding to the package version to continue the installation of the older package.

How do I know if APT has successfully downgraded a package?

You can verify if APT successfully downgraded the package using the --version flag: If the output displays a version number older than the latest release, the package was successfully downgraded and you can continue using it as usual. On Arch Linux, you can switch to an older version of a package installed earlier using the saved Pacman cache.


1 Answers

I second @lawlist's recommendation to (setq debug-on-error t) early in your ~/.emacs file. You can also use emacs --debug-init to get a similar result. This said, sometimes the kind of error you get here can also prevent the debugger from showing up. I recommend you M-x report-emacs-bug and describe the problem, along with any additional info you find, including the solution you found, if any.

As for downgrading a package, it's technically possible, but there is no UI support for it. And there's no log of package installs either. Please do mention this in the bug-report as well, since it's indeed a good idea to try and keep track of those things.

Sorry.

like image 142
Stefan Avatar answered Sep 28 '22 05:09

Stefan