From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: Re: Guix on a foreign distro (Mint) - List of packages is outdated and not updatable Date: Sun, 05 May 2019 19:57:13 -0700 Message-ID: <87a7g0z3w6.fsf@gmail.com> References: <87v9z4msju.fsf@muto.ca> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hNTof-0001Dz-GK for help-guix@gnu.org; Sun, 05 May 2019 22:57:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hNToe-0006jC-Ha for help-guix@gnu.org; Sun, 05 May 2019 22:57:21 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:34152) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hNToe-0006h5-8d for help-guix@gnu.org; Sun, 05 May 2019 22:57:20 -0400 Received: by mail-pl1-x633.google.com with SMTP id ck18so5624214plb.1 for ; Sun, 05 May 2019 19:57:19 -0700 (PDT) In-Reply-To: <87v9z4msju.fsf@muto.ca> (melon's message of "Tue, 23 Apr 2019 13:26:45 -0600") List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: melon Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable melon writes: > 'echo $PATH' > Gave me a very messy output. Apparently things like '.guix-profile/bin', > '.guix-profile/sbin' and '/usr/bin' were all shown multiple times. I > changed it to the following (by editing ~/.bashrc): > > export > PATH=3D"$HOME/.guix-profile/bin:$HOME/.guix-profile/sbin:$HOME/.config/gu= ix/current/bin:$HOME/.bin/bin:/usr/bin:/bin" > > After restarting BASH and running 'guix pull', all my packages are > once again up to date. Thank you again! I'm glad to hear this solved your problem. I just wanted to add some information you might find useful. When using Guix, you do not need to set the PATH explicitly like this, but there is no harm in doing so if you want to. You can also write something like this instead: GUIX_PROFILE=3D"$HOME/.guix-profile" . "$GUIX_PROFILE/etc/profile" Whenever Guix generates a profile, by default a "profile hook" will run that generates this etc/profile file. This file contains shell commands which set up all the environment variables you need in order to "activate" the profile. This includes PATH. The nice thing about this is that if you source this file in a place like ~/.bash_profile (or similar), then whenever you log in, you'll always get the right environment variables for your profile, regardless of what software you've installed. On a Guix System, both your $HOME/.guix-profile and $HOME/.config/guix/current profiles will be "activated" automatically in this manner (see: /etc/profile), but on a foreign distro, you have to do this yourself by adding the appropriate lines to a shell start-up file. I hope that perhaps this information helps simplify your configuration! =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEy/WXVcvn5+/vGD+x3UCaFdgiRp0FAlzPookACgkQ3UCaFdgi Rp1fDxAAjFTk8dkCaU88IWp2XDpfNsNEOaWWu1zyPkaS+oQYalL/E34UXEJWOkdX NEuiKKK03+Qrv52ua3CaQnGAYIjVKbUY7ClrmOFXOagXEhaY2RhLFeBQouIxx0gw Nso1rsk/CcDkz+eIY0HqS+156z2l5uiiePd5EcTyE7zXN+kU687If//tJaVXFybO lhIa4Viu1IlN3hhNd3myfS7sYSZV5lVBpmox14slWFi/wk0Aqaj9idp/Z7rljYO/ d+qu6ITb+UeFLHkyCPgty2RlqDSs88Ld8zlbAfAR+5V/A+zdBwWbPAP6drqJIBTO 7N0jCh/5qXI3ZlYBbB35huKxjpHCAYntSozs+83abGhmql5KNTKWBdTjJxlYF5T+ loiFoNBTR0AouRiPdyvUVQgDz3GF4SXFxUmTvYn3ITr93BKTYUyF51GxeBgs3xpv ZMFXMKHOxpzjiZzr0Nj7IVICTdBqOCrpzLU/eKqgpC6VadV0ne57xxkbX9DzUV0f Y38UaPT1ru8LjjT7MxgfcZohtIaVnQuAbQdNnL45XDFri2urKsNmwu14mlNjTrVW flcr50qIEx7dYOB06w4Tml9VIYv32JeTIQd156qFPP5cDztPbKJ5gMPSJTrn4SQe hEmkPkU43achxlZS8JPh4IkKcIZxbpA9XyVLn/EpHLP/0n+3We8= =w/Ak -----END PGP SIGNATURE----- --=-=-=--