all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: Hartmut Goebel <h.goebel@goebel-consult.de>
Cc: help-guix@gnu.org
Subject: Re: How to install an old package version?
Date: Fri, 12 Aug 2016 12:18:56 +0300	[thread overview]
Message-ID: <878tw2gxa7.fsf@gmail.com> (raw)
In-Reply-To: <f1ae32ab-0662-ba6a-c329-21f4423704fc@goebel-consult.de> (Hartmut Goebel's message of "Thu, 11 Aug 2016 21:16:44 +0200")

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 | http://debian.mirror.lrz.de/debian/
> jessie-backports/ma
>      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.

-- 
Alex

  reply	other threads:[~2016-08-12 15:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-11 19:16 How to install an old package version? Hartmut Goebel
2016-08-12  9:18 ` Alex Kost [this message]
2016-08-12 13:20 ` 宋文武
  -- strict thread matches above, loose matches on Subject: below --
2018-12-27 19:34 cdelia
2018-12-28 15:03 ` Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878tw2gxa7.fsf@gmail.com \
    --to=alezost@gmail.com \
    --cc=h.goebel@goebel-consult.de \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.