Date: Tue, 22 Mar 2022 17:54:10 -0700 From: Mark Millard <marklmi@yahoo.com> To: Eugene Grosbein <eugen@grosbein.net> Cc: "bapt@freebsd.org" <bapt@FreeBSD.org>, freebsd-ports@freebsd.org, FreeBSD Toolchain <freebsd-toolchain@freebsd.org> Subject: Re: An idea for a pkg option Message-ID: <3D451B21-9C38-4D90-850A-E40FEA28FC82@yahoo.com> In-Reply-To: <C8968D05-4117-481B-8F7A-A695AD170A8D@yahoo.com> References: <84C8C319-4060-47C2-B3DB-0026478BF1A9.ref@yahoo.com> <84C8C319-4060-47C2-B3DB-0026478BF1A9@yahoo.com> <446ab042-e146-60c3-d766-a26742cb1d40@grosbein.net> <AFBAB216-7B9E-4E4C-9914-CD25AD77709E@yahoo.com> <b7e2cb9e-0190-db6f-7a9f-8c6d6bf04e41@grosbein.net> <C8968D05-4117-481B-8F7A-A695AD170A8D@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 2022-Mar-22, at 17:49, Mark Millard <marklmi@yahoo.com> wrote: > On 2022-Mar-22, at 04:44, Eugene Grosbein <eugen@grosbein.net> wrote: >>=20 >> 22.03.2022 16:56, Mark Millard wrote: >>=20 >>> For my explicit list of what to try to install >>> (in the file) your command does not work for >>> my purpose/goal: >>>=20 >>> # pkg install -yU `cat ~/origins/amd64-pkgs.txt` >>> pkg: No packages available to install matching 'rpi4-edk2' have been = found in the repositories >>> pkg: No packages available to install matching 'rpi4-edk2' have been = found in the repositories >>=20 >> Does it work if you do that in the "clean room", f.e. in a chrooted = directory >> that never had any remote repository data cached? It works for me in = such case. >=20 > FYI: >=20 > /usr/local/etc/pkg/repos/FreeBSD.conf has: "enabled: no" (so the rest = does not matter) >=20 > /usr/local/etc/pkg/repos/custom.conf has: >=20 > custom: { > url: = "file:///usr/local/poudriere/data/packages/13_0R-amd64-default", > enabled: yes, > } >=20 > So: not a truly "remote repository" context. These are examples > but the other pairs of *.conf files are similar for the various > contexts. >=20 > I've not tried a special, separate chroot area for experimenting > with this. >=20 >> Maybe point it to non-existent or clean directory instead: >>=20 >> env PKG_DBDIR=3D/nonexistent pkg install -yU ... >>=20 >=20 > Trying this sort of thing in my normal context . . . >=20 > # env PKG_DBDIR=3D/nonexistent pkg install `cat = ~/origins/amd64-pkgs.txt` > Updating custom repository catalogue... > Fetching meta.conf: 100% 163 B 0.2kB/s 00:01 =20 > Fetching packagesite.pkg: 100% 146 KiB 149.0kB/s 00:01 =20 > Processing entries: 100% > custom repository update completed. 552 packages processed. > All repositories are up to date. > pkg: No packages available to install matching 'rpi3-edk2' have been = found in the repositories > pkg: No packages available to install matching 'rpi4-edk2' have been = found in the repositories >=20 > (And that was it.) >=20 > But with the 2 lines removed: >=20 > # env PKG_DBDIR=3D/nonexistent pkg install `cat = ~/origins/amd64-pkgs.txt` > Updating custom repository catalogue... > custom repository is up to date. > All repositories are up to date. > Checking integrity... done (0 conflicting) > The following 324 package(s) will be affected (of 0 checked): >=20 > New packages to be INSTALLED: > Imath: 3.1.4 > aarch64-binutils: 2.37_2,1 > aarch64-gcc6: 6.5.0_3 > aarch64-gcc9: 9.3.0_1 > acpica-tools: 20210930 > alsa-lib: 1.2.2_1 > amd64-binutils: 2.37_2,1 > amd64-gcc6: 6.5.0_3 > . . . > llvm14: 14.0.0.r4 > . . . > xxhash: 0.8.1 > zip: 3.0_1 > zpool-iostat-viz: 3_1 > zstd: 1.5.2 > ztop: 0.2.0 >=20 > Number of packages to be installed: 324 >=20 > The process will require 13 GiB more space. >=20 > Proceed with this action? [y/N]:=20 I probably should have noted: # wc ~/origins/amd64-pkgs.txt 61 61 1097 /usr/home/root/origins/amd64-pkgs.txt so the vast majority of the above is via dependencies, not the 61 things I explicitly listed in: ~/origins/amd64-pkgs.txt > But the only thing needing installation (that was available) > was devel/llvm14 . The rest was already installed and up to > date. >=20 > So this is not a match to what I made a feature request/suggestion > for. =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D451B21-9C38-4D90-850A-E40FEA28FC82>