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 iPuWJv/n9l67eAAA0tVLHw (envelope-from ) for ; Sat, 27 Jun 2020 06:32:31 +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 GCRRIv/n9l4LRgAAbx9fmQ (envelope-from ) for ; Sat, 27 Jun 2020 06:32:31 +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 D77A29403CB for ; Sat, 27 Jun 2020 06:32:30 +0000 (UTC) Received: from localhost ([::1]:35580 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jp4O4-0003pS-K1 for larch@yhetil.org; Sat, 27 Jun 2020 02:32:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jp4Nx-0003pH-0f for help-guix@gnu.org; Sat, 27 Jun 2020 02:32:21 -0400 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]:35928) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jp4Nv-00085t-3b for help-guix@gnu.org; Sat, 27 Jun 2020 02:32:20 -0400 Received: by mail-lj1-x241.google.com with SMTP id i3so12548891ljg.3 for ; Fri, 26 Jun 2020 23:32:18 -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=tCGWrQ0CjWq7z6SgrK6Q96MyLWT3KFWXr+uIZTb8lx0=; b=O17uuVLbOXduxz1TsZDksvvPMGPFyztDP9SrHd4xK7wL92xduwN4kM2t784Hz7d6qG 7+UkqKMdwQt8laIyNh7ggp5G2Kz/shRb+Dbts7TZ1AwOIYaNL8mh7KUwgaf3Y/eZd8ok YfMIUb/iYp74D3OQuYsgQuQdc0y8On8wsSfMrLmCN2NcZm7ugTbOB8rDmNLUUea4vAWG fc75+d5gTnbAT/lM8aTHvaOJc5+Ex5eCNgLunSh2TRCxDoQkjO+pkxzHUdlrmHpEH3AN w1ZNA8O0ylki5PMTpbsi2dGqO57+Vbesc2O5AGeeF8n3e54qYlNLZz5o8kZCaUJ9bRKu 8NgA== 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=tCGWrQ0CjWq7z6SgrK6Q96MyLWT3KFWXr+uIZTb8lx0=; b=Gd05ImiWW+oIcuLnJQ+kTr0uhtbkZCouNm+goesb+wwiV0epAXmOmQfRqRypyQKEkp Srv8ccGYDfZ4UDsWMVNWki/cKtYx6gZUWgt5t26CVbD9lujVNl26eUq223BV3nd5Yho1 4KGuZH4wKKK6HCUVeQx9AU/KcAjjIwo5UiXUo/wSMRXEVshTAbM3AIBzGvDlDQh5mAMD t4Q9IJnYCiGw1yB/pjIu/Q3t+bHOFuoN/vjEgwH8QelT4bHswRJ2ISERc5ujeHKoDEEk zC+WMTqb+wUSDqk+W4iywm4XIWVDzYImHS1YYCE5v5hEKn0rAO2NK10MwjgkuxXMpsRm TWKw== X-Gm-Message-State: AOAM531LmM/qFy3EEqqdjybgwekyZz2bjnFQ78aeAfPSLxTV8roHoOE0 MjB7J0iuW3ZbJk1u/wfQ2HK5peWdIt9yfR5FGqk= X-Google-Smtp-Source: ABdhPJzS2ZKP5urXCz3Bpce9duGHauL/3ETRgamHf1Xn9BCnGCa/1/RmW5jepJC9KccBOXXah2XHo8OYzwUSEYJENPs= X-Received: by 2002:a2e:9810:: with SMTP id a16mr2928529ljj.157.1593239537232; Fri, 26 Jun 2020 23:32:17 -0700 (PDT) MIME-Version: 1.0 References: <89632FC3-1266-430D-822B-392DB700B323@lepiller.eu> In-Reply-To: From: Lo Peter Date: Sat, 27 Jun 2020 14:33:02 +0800 Message-ID: Subject: Re: Install older version of a package with the "@version" specifier To: zimoun Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::241; envelope-from=peterloleungyau@gmail.com; helo=mail-lj1-x241.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 Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=O17uuVLb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 0.09 X-TUID: gy0UiFNlHXz/ Thanks a lot for the clarifications. On Sat, Jun 27, 2020 at 2:04 AM zimoun wrote: > > 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 lookin= g for. This can be done using an "inferior". The package will more likely b= uild (and even have substitutes), but it uses the old version of all its de= pendencies, which are not necessarily patched for vulnerabilities and may r= equire 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/89909327d017198969436237acc7c93823ff81= 47/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/l= ib/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