[arch-general] pacman doesn't show download progress

Eli Schwartz eschwartz at archlinux.org
Thu Aug 17 18:43:33 UTC 2017


On 08/17/2017 02:23 PM, SET wrote:
> Le jeudi 17 août 2017 06:46:37 CEST Darshit Shah via arch-general a écrit :
> 
>> No, right next to the packages, in the package cache
>> (/var/cache/pacman/pkg by default)
> 
> Though the problem is resolved by choosing another mirror, here is a sample 
> log file : oxygen-icons-1:5.37.0-1-any.pkg.tar.xz.part.log 
> 
>   HTTP/1.1 200 OK
>   Server: nginx/1.6.2
>   Date: Thu, 17 Aug 2017 18:14:56 GMT
>   Content-Type: application/octet-stream
>   X-Varnish: 537330300
>   Age: 0
>   Via: 1.1 varnish-v4
>   Transfer-Encoding: chunked
>   Accept-Ranges: bytes
>   X-IPLB-Instance: 5865
> 
> I don't know how to understand it.

Well, look at this:

```
[eschwartz at arch ~]$ pacman -Sp linux
http://archlinux.mirrors.ovh.net/archlinux/testing/os/i686/linux-4.12.7-1-i686.pkg.tar.xz
[eschwartz at arch ~]$ wget -P /tmp/
http://archlinux.mirrors.ovh.net/archlinux/testing/os/i686/linux-4.12.7-1-i686.pkg.tar.xz
--2017-08-17 14:31:17--
http://archlinux.mirrors.ovh.net/archlinux/testing/os/i686/linux-4.12.7-1-i686.pkg.tar.xz
Resolving archlinux.mirrors.ovh.net... 213.32.5.7,
2001:41d0:202:100:213:32:5:7
Connecting to archlinux.mirrors.ovh.net|213.32.5.7|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/octet-stream]
Saving to: ‘/tmp/linux-4.12.7-1-i686.pkg.tar.xz’

linux-4.12.7-1-i686.pkg.tar.xz              [       <=>
                                                  ]   1.37M   912KB/s

```

Length is unspecified, and wget does its <=> slidy-back-and-forth thing.
And it seems pacman just gives up on showing progress information and
instead shows nothing (which isn't unreasonable).

As for your log, that's just the HTTP headers, something you can also
see with curl -I http://...

Notice how the Content-Length: header is missing.

-- 
Eli Schwartz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20170817/e39eedb5/attachment-0001.asc>


More information about the arch-general mailing list