Magit doesn't work on my system. I'd like to remove it and everything that came with it when I installed the package. How can I do this? What packages, beside Magit, were installed on my emacs when I installed Magit?
- How did you install Magit?xuchunyang– xuchunyang2017-04-03 04:13:13 +00:00Commented Apr 3, 2017 at 4:13
- @xuchunyang: Through emacs' package manager, via MELPA.Evan Aad– Evan Aad2017-04-03 04:14:34 +00:00Commented Apr 3, 2017 at 4:14
- @Dan: Nothing, so far, because I don't want to break dependencies. First I'd like to know what got installed on my system along with Magit,Evan Aad– Evan Aad2017-04-03 04:31:28 +00:00Commented Apr 3, 2017 at 4:31
- If you have not done so, I would highly recommend that you report the problem you are having with Magit, as it may well be solvable.phils– phils2017-04-03 05:26:57 +00:00Commented Apr 3, 2017 at 5:26
- 3You might want to give others more time than a single day to figure out what is wrong on you system.tarsius– tarsius2017-04-03 10:29:42 +00:00Commented Apr 3, 2017 at 10:29
1 Answer
Through emacs' package manager, via MELPA.
In which case a manual approach is:
M-x rgrep RET package-requires RET *.el RET ~/.emacs.d/elpa/ RET
That will show you the dependencies for all your packages.
C-s magit RET to check that one, and you can then look for sub-dependencies in turn.
If an earlier version of Magit had a dependency that was removed in subsequent versions, it's possible that it would now be an 'orphaned' package, as I suspect package.el doesn't attempt to detect such things. If you were really keen, and assuming you version-control your config, you could always check the dependencies over your repo history to see whether any such thing had occurred.
(Of course if you version-control your config, you almost certainly have a version-control record of what else you added when you installed or updated Magit.)
- 8See
package-autoremovefor "orphaned packages" (requires Emacs 25.1+)npostavs– npostavs2017-04-03 14:24:44 +00:00Commented Apr 3, 2017 at 14:24