Command "guix show PACKAGE" should also show installed version

  • Open
  • quality assurance status badge
Details
One participant
  • Adam Porter
Owner
unassigned
Submitted by
Adam Porter
Severity
normal
A
A
Adam Porter wrote on 2 Apr 22:23 +0200
(address . bug-guix@gnu.org)
e30c1c3c-ce5b-4d50-9fdd-94ec21cef022@alphapapa.net
Hi,

It would be very helpful if the command "guix show PACKAGE" (aka "guix
package --show=PACKAGE") showed the version of the package that is
currently installed, if any.

For example, the version of "emacs" in Guix is currently 29.3, and the
version I have installed is 29.1. When I run "guix show emacs" I get:

name: emacs
version: 29.3
outputs: ...

If I didn't know better, I might think that I had version 29.3
installed. Instead, to check what version is actually installed, I have
to run "guix package --list-installed=emacs" to see:

emacs 29.1 out
/gnu/store/9i6p8jsvgrsradmbqa7iixk61gd00k2g-emacs-29.1

This makes the common operation of comparing the currently installed
version of a package with the currently available version require two
commands instead of one.

In contrast, e.g. in Debian, one can run "apt-cache policy PACKAGE" to
see output like:

PACKAGE:
Installed: X.Y-1~deb11u1
Candidate: X.Y-1~deb11u1

Which makes it easy to compare them.

Thanks for your work on Guix.

--Adam
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 70153@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 70153
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch