From nobody Wed Jul 13 04:34:03 2022 X-Original-To: freebsd-questions@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id AAF0517FF712; Wed, 13 Jul 2022 04:34:05 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LjPs86xzCz45mF; Wed, 13 Jul 2022 04:34:04 +0000 (UTC) (envelope-from grarpamp@gmail.com) Received: by mail-pj1-x1029.google.com with SMTP id b8so8952739pjo.5; Tue, 12 Jul 2022 21:34:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=JfPygn0hVLqCkBJ5dC22OLchX/3KOi2dfLAO2RRJdHM=; b=jzEepp1NwfTOI3RGogZZYvdBHHOMgPcBxp2yKVpOX0Bmt3aZCifoC2JnMTFEuco127 wfu/8nh2SuIZM7jKzCBxraIuox7fsD9fCvPgJQJ1r9Estu0pwQLsCsmXLZNK2bC/3I9e 547OQwUS9ZumH6aJ9H6nV40xtTF6wWueUf8ifaiOLJbkjTHtY/9NTSuo3GnuZxeTcTS7 lXZ7lRgQcDRS/yI4kYx1GrzipU4vRTIrDRmFYIRHaOfPDu+9Iu2akT9+DC2VoBJYlyc1 dFVVubRzmmwIOemxXAER1tv5awgH7L/N5BQ/qrtukxd4AWCGGf3PP22GMGYvTb3F4dFW hDTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=JfPygn0hVLqCkBJ5dC22OLchX/3KOi2dfLAO2RRJdHM=; b=frwyCDouRswp8bJQesGAo4bVoclwx4U/R9BLTrrlMCYCW8dVmmyA5509nfzHL3pGzl ynz/e1KxH1Ys1z9aKpnDfAIJhDOYcgOKJhtcfnjdyCAOC+tIYJuykHnaZz9YDGAI+Kx4 3Y2Oxw7Sc0B42SQOc9JNt46gvPuQ7TxAkfd1fMO4Q9rUMmvxtHJf10H1GG+3PPkiWNXk yoKBGshKMk2CgjVm7VnA3MSYgRi/bC/l/d+RDGSDAGoAf/7Zm1ME0/Q0MbXjxEJxAEyI Er8I00awciy1tTHD/QQCmZVX0iz36imo85zb4DJj5VYlnG3HH8ynpZM8byrl11qui2pE sp8A== X-Gm-Message-State: AJIora/LblSdGceRLzMkMXfCx5RJiLRLB4ZcGqXkOSyw16GioVjShMa/ alwun5OUFWATDWMxlmEotLUpPxyqYjVC930Jxl/cMUrnJbQkfrcZ X-Google-Smtp-Source: AGRyM1tU+Sq+I2XXGi6CqLGBk0I+1Y0z03VLLBQAozTQoL3xRJSB9yHbnQd7asTYd1ZM4yt4kqkc3NT8OBhvHsXh4Og= X-Received: by 2002:a17:902:b598:b0:168:f664:f1cb with SMTP id a24-20020a170902b59800b00168f664f1cbmr1454717pls.26.1657686843687; Tue, 12 Jul 2022 21:34:03 -0700 (PDT) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Received: by 2002:a17:903:1cc:b0:16c:4f00:65b3 with HTTP; Tue, 12 Jul 2022 21:34:03 -0700 (PDT) In-Reply-To: <20220712200606.GE13596@2solnu.net> References: <20220712200606.GE13596@2solnu.net> From: grarpamp Date: Wed, 13 Jul 2022 00:34:03 -0400 Message-ID: Subject: Re: offline install of perl To: freebsd-questions@freebsd.org Cc: freebsd-pkg@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 4LjPs86xzCz45mF X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=jzEepp1N; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of grarpamp@gmail.com designates 2607:f8b0:4864:20::1029 as permitted sender) smtp.mailfrom=grarpamp@gmail.com X-Spamd-Result: default: False [-4.00 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; MLMMJ_DEST(0.00)[freebsd-questions,freebsd-pkg]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1029:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; FREEMAIL_FROM(0.00)[gmail.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N On 7/12/22, Ryan Richter wrote: > I have a machine with a fresh install of freebsd 13.1 which will never > be conected to the internet. I need to install perl on it (nothing > else), but I can only transfer files by usb drive from linux machines. > > This seems like a simple thing, but I've been looking at documentation > for a long time now and I can't find anything. pkg looks relevant, but > it is not actually installed, and anyway I can't find the url of any > perl 5 package for 13.1 (the pkg servers seems to have directory > listings disabled). There could be a ticket to re-enable them, or to enable rsync there, otherwise there's no easy way to know the filename, to fetch, to untar, because... In general, pkg-static cannot strap work offline because it has no option to import a local (usb) copy of packagesite.pkg (or the raw json), upon which the pkg system depends to find metainfo about the pkg files, to dump into its sqlite version, and for other ops. You can make a ticket for that problem too. It's prohibitive amount work to try to setup a usb hier, to get the BSD box to serve that up as a pkg-static remote on localhost, to then point the pkg-static client at localhost, just to add a few apps... when a few patches to pkg can give better functionality for everyone needing the offline scenario. Once pkg-static built the sql from the fetched and imported packagesite.pkg yaml json download, simple pkg-static adds can be done from fetched pkg tarballs named within that file.