[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to install an old package version?

From: Alex Kost
Subject: Re: How to install an old package version?
Date: Fri, 12 Aug 2016 12:18:56 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

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:
>  $ apt-cache madison nginx
>      nginx | 1.9.10-1~bpo8+3 |
> jessie-backports/ma
>      nginx | 1.6.2-5+deb8u2 | 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

(define-public python-2.7.10
    (inherit python)
    (version "2.7.10")
    (source (origin
              (inherit (package-source python-2.7))
              (uri (string-append "";
                                  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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]