emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining the version of an installed package


From: Bozhidar Batsov
Subject: Re: Obtaining the version of an installed package
Date: Mon, 09 Aug 2021 17:03:21 +0300
User-agent: Cyrus-JMAP/3.5.0-alpha0-552-g2afffd2709-fm-20210805.001-g2afffd27

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]