From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: How to install an old package version? Date: Fri, 12 Aug 2016 12:18:56 +0300 Message-ID: <878tw2gxa7.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYDzU-0006RE-72 for help-guix@gnu.org; Fri, 12 Aug 2016 11:03:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYDzQ-0001tf-0H for help-guix@gnu.org; Fri, 12 Aug 2016 11:03:19 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:36621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYDzP-0001tF-P2 for help-guix@gnu.org; Fri, 12 Aug 2016 11:03:15 -0400 Received: by mail-wm0-x233.google.com with SMTP id q128so33259485wma.1 for ; Fri, 12 Aug 2016 08:03:14 -0700 (PDT) In-Reply-To: (Hartmut Goebel's message of "Thu, 11 Aug 2016 21:16:44 +0200") 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: Hartmut Goebel Cc: help-guix@gnu.org Hartmut Goebel (2016-08-11 22:16 +0300) wrote: > Hi, > > I'm curious about how to install an old package version with guix. > > Example for what I mean: > > In e.g Debian, the list of available packages is separate from > apt-get (et al.). So I can query all available versions of a package > and install the version I need: > > =C2=A0$ apt-cache madison nginx > =C2=A0=C2=A0=C2=A0=C2=A0 nginx | 1.9.10-1~bpo8+3 | http://debian.mirror.l= rz.de/debian/ > jessie-backports/ma > =C2=A0=C2=A0=C2=A0=C2=A0 nginx | 1.6.2-5+deb8u2 | http://security.debian.= org/ jessie/ > updates/main amd64 Pa > > > Now in guix, the list of available packages is build into guix, there > is no external cache. So how can I e.g. install python-2.7.10 after I > installed guix 0.11.0, which only defines python-2.7.11? You have to make your own package for this version, that would look like this: (define-public python-2.7.10 (package (inherit python) (version "2.7.10") (source (origin (inherit (package-source python-2.7)) (uri (string-append "https://www.python.org/ftp/python/" version "/Python-" version ".tar.xz")) (sha256 (base32 "some-letters-and-numbers")))))) and to put it to a file from GUIX_PACKAGE_PATH. See (info "(guix) Package Modules") for details. Alternatively, you can use a guix git checkout on a specific commit that still has python-2.7.10, but it's probably not what you want. --=20 Alex