I guess that could work, although from what I gathered it operates only on the current package. I was hoping to find something like an API like `(package-get-version 'package-name)`. On Mon, Aug 9, 2021, at 3:58 PM, Stefan Monnier wrote: > > I'm wondering if there's an API for obtaining metadata about installed > > packages, in particular the version information. > > For years I was using this function from pkg-info > > https://github.com/emacsorphanage/pkg-info/blob/master/pkg-info.el#L65, but > > I'm wondering if it'd be easy to strip one dependency from my packages. > > Are you looking for `package-get-version`? > > > Stefan > > >