unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Adam Porter <adam@alphapapa.net>
To: 70153@debbugs.gnu.org
Subject: bug#70153: Command "guix show PACKAGE" should also show installed version
Date: Tue, 2 Apr 2024 15:23:50 -0500	[thread overview]
Message-ID: <e30c1c3c-ce5b-4d50-9fdd-94ec21cef022@alphapapa.net> (raw)

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




                 reply	other threads:[~2024-04-02 20:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e30c1c3c-ce5b-4d50-9fdd-94ec21cef022@alphapapa.net \
    --to=adam@alphapapa.net \
    --cc=70153@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).