From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uIG8Ds449l7tZAAA0tVLHw (envelope-from ) for ; Fri, 26 Jun 2020 18:05:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2AKOCs449l7JTAAAbx9fmQ (envelope-from ) for ; Fri, 26 Jun 2020 18:05:02 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 99A6D9401D0 for ; Fri, 26 Jun 2020 18:05:01 +0000 (UTC) Received: from localhost ([::1]:36272 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1josih-00057j-AQ for larch@yhetil.org; Fri, 26 Jun 2020 14:04:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1josiZ-00057N-JG for help-guix@gnu.org; Fri, 26 Jun 2020 14:04:51 -0400 Received: from mail-qk1-x744.google.com ([2607:f8b0:4864:20::744]:37676) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1josiX-0006tA-Cf for help-guix@gnu.org; Fri, 26 Jun 2020 14:04:51 -0400 Received: by mail-qk1-x744.google.com with SMTP id k18so9587603qke.4 for ; Fri, 26 Jun 2020 11:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=M3aAq7H0F4Z3BPjT8bznLPxudqFjlUa7Ea0KCIhOK00=; b=nm91pCOhpEBQHi/8fBtqmiERX9REfYjCTMFGT+VfBP4jiNyXCWzv66MFJT/cVCvUW0 2q3Chx0T+cyVv64AL/tJ7fMRlCBtn7icy1HamW3z9a5pUs1dMAVi5OqDRJmfqI/ChypI 1E6Q7SQtncr9F5zp9xJEoZu8DQbzM+hRrcNJjpucMqom8dBKtM/t9sxVyLcWV0GQ9Efj o5Qlw0SnuxWpIxKd3QHTGgzNemXVSPJPqEKkWCQEYQ8M8m5/GBuEhOAl78Spdtuzowtm Lm4Tt/w8MQpEu4XHpsindlGoQRnXDhbR7y55D0w9NMsrvk5q7tUUK4vq1Fq+aD/t39Hk 5uUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=M3aAq7H0F4Z3BPjT8bznLPxudqFjlUa7Ea0KCIhOK00=; b=ZQmGddVG+CkFiGczsxgRgesE+4h7hhX88uiy0ikRubIi6ZMuwZ4OSbSujZIi3V3Vk/ 2kGS0U6UBq96QI69Hz+RDhVKsG1cdtJMfizyrk2ONyWKuSFdRfBPlVtn8A+65XiTbO2b NPHJavn3y3qXJnnSdvYfgWfA29jV1dk+5xnM5xIccRZ03RvRpxsRtXVv5lFfEwkFtzWe t9yySdnbELtO1cwwq95vwuqJ9iilNKWucLIYUgf0WDEyNHJiDBXC7fsJZPw4o0I/R+M9 8ruzcEiSAuTW9i01B8dQGIo25zM15eEQDXVr1CB4RGGc/UVmgAHRVHW9ZZCdFXjmujqm wQCQ== X-Gm-Message-State: AOAM5310D4fnzuQEQq1wZrEFK/sjTTro7OwcC/4r4nb5AdARWutpfDb+ IPYRUR7UldCOPGOUSuYmAiaYd5ctbF/dOQbwtPYN5XqIDuc= X-Google-Smtp-Source: ABdhPJyym0M2X8TRWwQRrhwGt0a5yU8GTg+GoQvehr9X3noldt1I4ZasnL4iJi5tl0QwZEmzGAhdxWc9moAj3PiGM/k= X-Received: by 2002:ae9:e20c:: with SMTP id c12mr3774945qkc.187.1593194688405; Fri, 26 Jun 2020 11:04:48 -0700 (PDT) MIME-Version: 1.0 References: <89632FC3-1266-430D-822B-392DB700B323@lepiller.eu> In-Reply-To: <89632FC3-1266-430D-822B-392DB700B323@lepiller.eu> From: zimoun Date: Fri, 26 Jun 2020 20:04:37 +0200 Message-ID: Subject: Re: Install older version of a package with the "@version" specifier To: Julien Lepiller Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::744; envelope-from=zimon.toutoune@gmail.com; helo=mail-qk1-x744.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix , Lo Peter Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=nm91pCOh; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: 1BdRHexmjzuu Dear, On Fri, 26 Jun 2020 at 19:15, Julien Lepiller wrote: > - use r from an old revision of guix that had the version you're looking = for. This can be done using an "inferior". The package will more likely bui= ld (and even have substitutes), but it uses the old version of all its depe= ndencies, which are not necessarily patched for vulnerabilities and may req= uire more space to be stored, as they are not shared with other packages. It is not easy to find the old revision (commit) which owns the version you are looking for. In such cases, the Guix Data Service could help. For example, this URL lists all the R versions in Guix over the time: https://data.guix.gnu.org/repository/1/branch/master/package/r As you can see, it is rare that 2 versions of R exist at the same time in Guix. I let you click and you will find that the last commit containing the R version 3.6.3 is the commit 899093. https://data.guix.gnu.org/revision/89909327d017198969436237acc7c93823ff8147= /package/r/3.6.3 Then the way for creating an inferior is "guix time-machine". It goes back but without polluting your current setup; you can have different versions from different time/commit. The following command creates temporarily an old Guix version and use it for spawning an environment containing R. --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=3D899093 \ -- environment --ad-hoc r-minimal \ -- R R version 3.6.3 (2020-02-29) -- "Holding the Windsock" [...] > sessionInfo() R version 3.6.3 (2020-02-29) Platform: x86_64-unknown-linux-gnu (64-bit) Running under: Debian GNU/Linux 10 (buster) Matrix products: default BLAS/LAPACK: /gnu/store/vax1vsg3ivf0r7j7n2xkbi1z3r0504l9-openblas-0.3.7/lib= /libopenblasp-r0.3.7.so locale: [1] C attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] compiler_3.6.3 > --8<---------------cut here---------------end--------------->8--- Instead of 'environment', you can use 'install -p /path/to/profile/with/old/R'. However, it is important to be clear with which version of R you are using and which version is used to "compile" the R packages you will install, and use a manifest.scm file is really a good practise when traveling in time. :-) Hope that helps, simon