From mboxrd@z Thu Jan 1 00:00:00 1970 From: iyzsong@member.fsf.org (=?utf-8?B?5a6L5paH5q2m?=) Subject: Re: How to install an old package version? Date: Fri, 12 Aug 2016 21:20:55 +0800 Message-ID: <8737makts8.fsf@member.fsf.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYDby-0002eq-Eu for help-guix@gnu.org; Fri, 12 Aug 2016 10:39:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bYDbu-0000Gp-21 for help-guix@gnu.org; Fri, 12 Aug 2016 10:39:02 -0400 Received: from mail.openmailbox.org ([62.4.1.34]:40882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bYDbt-0000Fn-RA for help-guix@gnu.org; Fri, 12 Aug 2016 10:38:57 -0400 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 writes: > 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? All definitions (like debian's dsc) of packages are in the guix git reposiroy. You can clone it, checkout to any commit, build it, and then run `pre-inst-env guix package -i ...' there to install packages at that commit. Note that guix hydra only has binary caches for latest builds, so the old packages will be built from sources. You can also 'guix pull --url=...' to update (or downgrade) the package definitions from a tarball, which can be generated from the git repository by `git archive'.