4

Is there any way to see what dependencies has a package installed? In other words what other packages were installed with the first one?

1
  • AFAIK it's one of the features that Stefan Monnier wants to have implemented in package.el. See here.
    – rasmus
    Nov 22, 2014 at 20:58

2 Answers 2

5

You can see what dependencies a package has by opening the *Packages* menu with M-x list-packages. Then navigate to your package of interest and hit RET.
This will display a buffer describing the package, which includes a list of dependencies.

There's no way of knowing which of these packages were actually installed as dependencies, and which were manually installed by you. Though there's been talk of implementing that in the dev list.

2
  • Where can I found the Packages menu?
    – Adam
    Nov 21, 2014 at 0:30
  • @Adam edited in
    – Malabarba
    Nov 21, 2014 at 0:32
-1
(let ((desc (assoc '{YOUR_PAcKAGE} package-archive-contents)))
  (if desc
      (-map (lambda (elem) (car elem))
            (aref (cadr desc) 4))))
3
  • 4
    Your answer would benefit from a bit of additional commentary.
    – itsjeyd
    Nov 22, 2014 at 11:49
  • 2
    Not the least of it being that it depends on dash.
    – Malabarba
    Nov 22, 2014 at 14:56
  • 1
    Thank you for your answer but as I am a newbie I don't really understand it.
    – Adam
    Nov 22, 2014 at 19:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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