I tried to use
M-x package-autoremove
but my .emacs.d
directory is still a mess: it's full with several versions of the same package. As side info I use the no-littering
package, but when I update packages the old versions are kept in the elpa
directory.
I also tried to manually delete old packages. For example if I run
M-x package-list
I get the package list, and at some point in the list I have
no-littering 20190409.1154 installed help keeping ~/.emacs.d clean
at the end of the list I have
no-littering 1.0.0 obsolete help keeping ~/.emacs.d clean
no-littering 20190129.2355 obsolete help keeping ~/.emacs.d clean
and these 3 versions have 3 corresponding folders in the ELPA directory. Therefore I presume that the last 2 entries are old versions, and I mark both of them for deletion (d) and than I execute the deletion with (x). The mini-buffer tells me to run
M-x package-autoremove
which I do, and in fact the corresponding 2 folders in ELPA directory disappeared. But after that when I reload emacs I get an initialization error do to no-littering.
What am I missing?
M-x auto-package-update-now
– PinkCollins May 21 '19 at 15:40auto-package-update-delete-old-versions
set tot
? Though I don't use auto-package-update. – muffinmad May 21 '19 at 19:23auto-package-update-now
function defined then? – muffinmad May 22 '19 at 05:57(require 'auto-package-update) (setq auto-package-update-delete-old-versions t)
to myinit.el
file. I reloaded emacs and ranM-x auto-package-update-now
. It updated new versions, old versions are still there. – PinkCollins May 22 '19 at 07:37M-x package-delete
. It will check dependencies and removeNAME-VERSION.signed
andNAME-readme.txt
files if any. – muffinmad May 22 '19 at 09:24