unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Chris Marusich <cmmarusich@gmail.com>
To: Alex Kost <alezost@gmail.com>
Cc: myglc2 <myglc2@gmail.com>, help-guix@gnu.org
Subject: Re: Is there a way to see 'Globally-Installed Packages' from the CLI?
Date: Fri, 22 Jul 2016 03:10:01 -0700	[thread overview]
Message-ID: <87r3am3rwm.fsf@gmail.com> (raw)
In-Reply-To: <874m7irrwy.fsf@gmail.com> (Alex Kost's message of "Fri, 22 Jul 2016 11:35:57 +0300")

[-- Attachment #1: Type: text/plain, Size: 4183 bytes --]

Alex Kost <alezost@gmail.com> writes:

> myglc2 (2016-07-22 00:42 +0300) wrote:
>
>> See subject. In other words can I produce the list shown by 'M-x
>> installed-system-packages' in the CLI?
>
> guix package --list-installed --profile=/run/current-system/profile

When I run this, it works.  However, when I point it at a profile in
/var/guix/profiles, it doesn't.  Do you know why that is?

--8<---------------cut here---------------start------------->8---
[0] marusich@garuda:~
$ ls -l /var/guix/profiles/system
lrwxrwxrwx 1 root root 33 Jul 14 06:31 /var/guix/profiles/system -> /var/guix/profiles/system-22-link
[0] marusich@garuda:~
$ ls -l /run/current-system/profile
lrwxrwxrwx 2 root guixbuild 51 Dec 31  1969 /run/current-system/profile -> /gnu/store/n7jiq9bsr0k8bjv6ygch0pywk6kgwgnj-profile
[0] marusich@garuda:~
$ ls -l /var/guix/profiles/system* | grep wgnj
[1] marusich@garuda:~
$ ls -l /var/guix/profiles/system* 
lrwxrwxrwx 1 root root 33 Jul 14 06:31 /var/guix/profiles/system -> /var/guix/profiles/system-22-link
lrwxrwxrwx 1 root root 50 Apr  4 22:28 /var/guix/profiles/system-10-link -> /gnu/store/61zpas4054vlba1fdgkf8gxwyj8jx00c-system
lrwxrwxrwx 1 root root 50 Apr  4 22:53 /var/guix/profiles/system-11-link -> /gnu/store/rq90ps8zzjnvk9xzz92lrq68m8vzjwiv-system
lrwxrwxrwx 1 root root 50 Apr  5 21:00 /var/guix/profiles/system-12-link -> /gnu/store/rq90ps8zzjnvk9xzz92lrq68m8vzjwiv-system
lrwxrwxrwx 1 root root 50 Apr  5 21:32 /var/guix/profiles/system-13-link -> /gnu/store/2hr9rnmwv0s14ra1laj0x74mv0960jd8-system
lrwxrwxrwx 1 root root 50 Apr  5 21:56 /var/guix/profiles/system-14-link -> /gnu/store/aqqkcj22kqwpqd02g9i358h5wwkamls5-system
lrwxrwxrwx 1 root root 50 Apr  5 22:19 /var/guix/profiles/system-15-link -> /gnu/store/2hr9rnmwv0s14ra1laj0x74mv0960jd8-system
lrwxrwxrwx 1 root root 50 Apr 10 17:51 /var/guix/profiles/system-16-link -> /gnu/store/d39y46xsi6323l7kalpivcb2w9v8w1qs-system
lrwxrwxrwx 1 root root 50 Apr 17 02:10 /var/guix/profiles/system-17-link -> /gnu/store/wb66g20gdbk33jj5j473h6id82kw03j9-system
lrwxrwxrwx 1 root root 50 May 13 22:40 /var/guix/profiles/system-18-link -> /gnu/store/0sy1bg7vwllk683jpcb0kwb500cdqikm-system
lrwxrwxrwx 1 root root 50 May 14 20:03 /var/guix/profiles/system-19-link -> /gnu/store/9qrbcq9rs0plyyqv1q4p3lzwl3zfkf50-system
lrwxrwxrwx 1 root root 50 Mar 27 00:37 /var/guix/profiles/system-1-link -> /gnu/store/fmjq0r5rbham4j8xfip33q1b697w8722-system
lrwxrwxrwx 1 root root 50 May 20 00:25 /var/guix/profiles/system-20-link -> /gnu/store/p901gblxkhk90aix2l9c6dj079zp1prd-system
lrwxrwxrwx 1 root root 50 Jun  5 13:52 /var/guix/profiles/system-21-link -> /gnu/store/hd8g61azl10ix2ck3pwyrv45kkqrjvr6-system
lrwxrwxrwx 1 root root 50 Jul 14 06:31 /var/guix/profiles/system-22-link -> /gnu/store/9i59d3rj1mpbzrr1fi0c3ba176ib00p2-system
lrwxrwxrwx 1 root root 50 Mar 29 00:40 /var/guix/profiles/system-2-link -> /gnu/store/f0xd9sw965fg21hfli2lx4bdxbg6xnvz-system
lrwxrwxrwx 1 root root 50 Mar 29 00:49 /var/guix/profiles/system-3-link -> /gnu/store/jglf06541sma9xp9210ms0vglixw1ydj-system
lrwxrwxrwx 1 root root 50 Mar 29 19:59 /var/guix/profiles/system-4-link -> /gnu/store/8hbigaxmhvrzn5i56363cv0hczyb15mb-system
lrwxrwxrwx 1 root root 50 Mar 29 22:55 /var/guix/profiles/system-5-link -> /gnu/store/aadf1163icgi8ki2h94chjim19s2x1x2-system
lrwxrwxrwx 1 root root 50 Mar 29 23:11 /var/guix/profiles/system-6-link -> /gnu/store/jglf06541sma9xp9210ms0vglixw1ydj-system
lrwxrwxrwx 1 root root 50 Apr  3 22:39 /var/guix/profiles/system-7-link -> /gnu/store/1qkdd4glvqjqf7azqniis7abkf7v1lng-system
lrwxrwxrwx 1 root root 50 Apr  4 21:07 /var/guix/profiles/system-8-link -> /gnu/store/rq90ps8zzjnvk9xzz92lrq68m8vzjwiv-system
lrwxrwxrwx 1 root root 50 Apr  4 21:53 /var/guix/profiles/system-9-link -> /gnu/store/rq90ps8zzjnvk9xzz92lrq68m8vzjwiv-system
[0] marusich@garuda:~
$ guix package --list-installed --profile=/var/guix/profiles/system
[0] marusich@garuda:~
$ 
--8<---------------cut here---------------end--------------->8---

I expected "guix package --list-installed
--profile=/var/guix/profiles/system" to work just as well, but it
didn't.

-- 
Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]

  reply	other threads:[~2016-07-22 10:10 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-21 21:42 Is there a way to see 'Globally-Installed Packages' from the CLI? myglc2
2016-07-22  8:35 ` Alex Kost
2016-07-22 10:10   ` Chris Marusich [this message]
2016-07-22 14:34     ` Ludovic Courtès
2016-07-22 20:42       ` myglc2

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=87r3am3rwm.fsf@gmail.com \
    --to=cmmarusich@gmail.com \
    --cc=alezost@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=myglc2@gmail.com \
    /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.
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).