Date: Thu, 8 Sep 2016 10:17:33 +0100 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: copying /var/cache/pkg between machines Message-ID: <3ca9afc1-a867-51aa-92df-96e6c7f80d24@FreeBSD.org> In-Reply-To: <57D12678.7000903@vlymskerp.net> References: <57D12678.7000903@vlymskerp.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --RiqET2UUFrpO2NaQ1TPkq8sWfKUguKDqV Content-Type: multipart/mixed; boundary="HPMa701wvmPSP007dgqKMnvqFpQxSoB2A"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Message-ID: <3ca9afc1-a867-51aa-92df-96e6c7f80d24@FreeBSD.org> Subject: Re: copying /var/cache/pkg between machines References: <57D12678.7000903@vlymskerp.net> In-Reply-To: <57D12678.7000903@vlymskerp.net> --HPMa701wvmPSP007dgqKMnvqFpQxSoB2A Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2016/09/08 09:51, Coert wrote: > I have a few FreeBSD machines running with KDE installed. > When I copy /var/cache/pkg to another machine, it downloads all package= s > again anyway. > I tried rsync, tar, made sure the symlinks with checksums are preserved= , > but to no avail. >=20 > What is the recommended way to sync /var/cache/pkg between machines? Sync'ing /var/cache/pkg like that isn't something that has been considered as 'normal' usage of pkg(8), so there's no guarantee that it will work. However, what you can do is create a local package repo from /var/cache/pkg by: pkg repo /var/cache/pkg This can be served to your other machine by HTTP or even copied over to the other machine by rsync. eg. rsync -avx /var/cache/pkg/ othermachine:/var/myrepo/ and then on othermachine add in /usr/local/etc/pkg/repos/myrepo.conf: myrepo: { url: file:///var/myrepo priority: 10 } othermachine will still be able to use the default FreeBSD pkg repositories, but it will prefer 'myrepo' as far as possible. Cheers, Matthew --HPMa701wvmPSP007dgqKMnvqFpQxSoB2A-- --RiqET2UUFrpO2NaQ1TPkq8sWfKUguKDqV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJX0SyzXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnXgkP/3Ol5nwKDT0wdIAdKmbMcxyq dYQNDj9w7H3xt402WOPp4R0vnkL7UvaRE2iIQRhbI5RSVTzg/QRyPq0WwJWsmNgy gb51QI6NBckv5W1Eq8InC/NbjVN06yCDNDGar6oJtGRVSnabp+QSYloCxGrp4YqR d5LuYoCIt7PZpOnK9NJaAL5EFjFwHGUeBArOhpg0A9RVdBP0FgOa5rhqi/izNdiD kW/ouScWrNwqg0biFCw50idaURxCqwCU5lTdkdK4ELXM2sDC7OzeUwkVx1c+wy6e +4E2yKu0PvTFu8Wjlzf8b7dBjV2TwOmYV0bVu2rJL1XUpZyVt3Q2be3FQRsWXeIl 3f2gcIFfce3FpVzYIMYuoNaDF2OOBl6ClJ/PBmvDClB0s1hY56SwOlEWzcZLS++a TUrvpIiq8HODJt8bwOnQc4/jhHpEXfE2key1Rgiwbifd+XULeM1Y3u8rDAH8DJkH uaiotjGt6zBMcksFm1xk/UlMwk/JanJ9hed35yJQGTje8dY10wjnNe1Gp1yBB/AG RqTS/idCw8QYi/NubBpWbmETowilPeqhAN2R7puogSBatUIscqG+D0DJHrO4AwsX pjdIruKokbt+L6sVkQyc5racXNGPIFnsfv16snqNHSH+nk5LLbSJ7yiEeJ3wOBBT 5G5DD4/WFNvM5sSW5Pky =xnwZ -----END PGP SIGNATURE----- --RiqET2UUFrpO2NaQ1TPkq8sWfKUguKDqV--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3ca9afc1-a867-51aa-92df-96e6c7f80d24>