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?