3

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?

7
  • How did you install Magit? Commented Apr 3, 2017 at 4:13
  • @xuchunyang: Through emacs' package manager, via MELPA. Commented 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, Commented 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. Commented Apr 3, 2017 at 5:26
  • 3
    You might want to give others more time than a single day to figure out what is wrong on you system. Commented Apr 3, 2017 at 10:29

1 Answer 1

3

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.)

1
  • 8
    See package-autoremove for "orphaned packages" (requires Emacs 25.1+) Commented Apr 3, 2017 at 14:24

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.