Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am a bit confused on exactly how the emacs package management works. I currently run emacs 24.3 on Ubuntu 12.04 LTS. I just ran the command package-menu-mark-upgrades which marks all the packages that have available upgrades. Then I executed to install these upgrades.

However, upon visiting the .emacs.d/elpa directory I noticed that the older versions of my installed packages still existed. For example I have two ess packages with a bunch of numbers at the end which give the date of their latest build.

Is this typical behavior? Or do I need to run another command to delete these obsolete packages?

Thanks for all the help!

share|improve this question
I think that is the correct behavior you are seeing -- package manager is not going to delete things on your computer. This is a good thing, because I frequently modify the sources to custom tailor them to my needs. Of course, folders have creation / modification dates . . . – lawlist Aug 31 '13 at 14:56

That is not the expected behavior. The following is the function documention for package-menu-mark-upgrade on GNU Emacs 24.3.1:

Mark all upgradable packages in the Package Menu. For each installed package with a newer version available, place an (I)nstall flag on the available version and a (D)elete flag on the installed version. A subsequent M-x package-menu-execute call will upgrade the package.

I can confirm that update a package will delete (or at least attempt to delete) the old version of the package.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.