* On 2015-01-21 at 08:00 GMT, Jonathan Lane via smartos-discuss wrote: > On Wed, Jan 21, 2015 at 02:30:37AM -0500, Tim Boudreau via smartos-discuss > wrote: > > > I'm installing a bunch of packages on a machine in Fenquiyun's Beijing > > SmartOS cloud, which downloads from Joyent's package servers. > > > > The result is that large packages frequently fail to download - the great > > firewall of China in action. > > > > Is there any way to convince pkgin to download ala > > wget --tries=100 --continue > > to keep trying until the download is complete? Or a set of manual steps to > > do the equivalent? > > This is a bit of an X/Y problem - I wouldn't trust anything downloaded over > that connection in the first place. You're basically giving the PRC root > access to your VMs if they can modify data in transit.
While not outside the realms of possibility, this would be difficult with our packages, as there are various checksums and size checks in both the package itself and the pkgin database that would mean a MITM would need to modify the data in a multitude of places and with consistency across multiple downloads. The missing piece in the puzzle is signed packages, and this is something I want to implement quite soon - stay tuned for that. As for the original question, there's no way I know of to retry downloads, however you can simply use wget/curl to download the packages individually then use pkg_add(1) to install them from the local file system. The only difficulty here is that you need to handle dependencies yourself. If you had the disk space, the best solution would be to simply mirror the pkgsrc servers somewhere in China. We offer public rsync on them to make this easy, and other SmartOS users in China would I'm sure be very grateful to you ;) -- Jonathan Perkin - Joyent, Inc. - www.joyent.com ------------------------------------------- smartos-discuss Archives: https://www.listbox.com/member/archive/184463/=now RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00 Modify Your Subscription: https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb Powered by Listbox: http://www.listbox.com
