From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: installing a mirror for offline installation Date: Fri, 26 May 2017 20:36:50 +0200 Message-ID: <87wp93ea7x.fsf@elephly.net> References: <20170525181902.2b70de9b@riseup.net> <87fufrg8zf.fsf@elephly.net> <20170526131240.3fc7eeae@riseup.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dEK6j-00019w-Ui for help-guix@gnu.org; Fri, 26 May 2017 14:37:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dEK6g-0004HP-18 for help-guix@gnu.org; Fri, 26 May 2017 14:37:05 -0400 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21115) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dEK6f-0004Gs-Ou for help-guix@gnu.org; Fri, 26 May 2017 14:37:01 -0400 In-reply-to: <20170526131240.3fc7eeae@riseup.net> 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: Quiliro Cc: help-guix@gnu.org Quiliro writes: > El Fri, 26 May 2017 13:20:36 +0200 > Ricardo Wurmus escribió: > >> >> Quiliro writes: >> >> > I finally could install bare-bones.scm GuixSD working machine. Now i >> > am interested in installing a mirror [of hydra] for offline >> > installation. There is no telecommunications where I live. So I could >> > bring the server to download substitutes and then take it back to my >> > network for local download. I was told that an nginx mirror of hydra >> > would cache only substitutes after they have been requested through >> > it. >> >> This is a little complicated. We build software continuously with >> Hydra, so what you want would only really work for one particular >> version of Guix. >> >> Hydra provides binaries not only for a single version of Guix, so you >> cannot just copy everything. What you *can* do, however, is this: >> >> * provision a portable computer with lots of disk space > > Will 100GB be enough? 1TB? Do you need *all* packages? Note that it would only be for *one* version of Guix, so you’d have to do this again if you want to update the machines at some point. >> * check out the version of Guix you plan to install elsewhere >> >> * build *every* package that you know you will need at the remote site. >> (This could be done by building a system configuration, for example.) > > I have no idea how to do this. I know how to install a group of > packages to make a desktop for example. But is there a group where all > packages are installed? Could there be a conflict where one package is > not downloaded because it will conflict with another? (I know this is > usually not the case in GuixSD but all cases have been considered?) There will not be any conflicts. You don’t install these packages into a profile, you just add them to the store where every item has its own directory. Only when installing packages into a single profile there can be file name conflicts. Not all packages can actually be built. There’s a small percentage of packages that fails to build from source and you would probably waste a lot of time trying to build them locally. I don’t know if there’s an easy way to exclude those packages and refuse to build anything locally (maybe with a smart offloading setup). It might be easier to just build a single complete system configuration, export it (e.g. with “guix archive” or “guix copy”) and import it on the other machine. I don’t think it’s a good idea to repeatedly build and copy store items over. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net