You are not logged in.

#1 2004-09-14 13:30:35

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Pacman file size and download time figures

This is a gentle request, which I can easily do without, and originates from my Debian background.

Would it be possible for pacman to give a total MB figure and/or a total time remaining figure, when it's doing upgrades/installs? The individual figures per package are great, but I like the way apt gives me the total upfront, so I know how long the whole thing is going to take.

Offline

#2 2004-09-14 14:03:36

dp
Member
From: Aarau, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Pacman file size and download time figures

i can second this - would be a really great feature, yes!

(i never missed it, because i never had it as idea - in debian i never read the output of apt-get :oops: , but in archlinux, you do much more often -Suy the system and use more bandwidth than debian.stable)


The impossible missions are the only ones which succeed.

Offline

#3 2004-09-14 14:44:18

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,930
Website

Re: Pacman file size and download time figures

I'm confused does pacman not do that already  :?


Mr Green

Offline

#4 2004-09-14 15:23:25

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: Pacman file size and download time figures

No, not for the whole upgrade, only for the current package it's downloading.

It's trivial to implement if the pkgbuild knows how big the downloads are, but currently it knows that only via ftp when actually downloading.  It's possible to connect to all servers first and check out the sizes, and then download the seperate packages, but that would complicate Pacman and is some work to implement.

I'd like to know the package size before I start downloading (with pacman -Si), so I would implement it the first way.

Offline

#5 2004-09-14 16:29:24

apeiro
Daddy
From: Victoria, BC, Canada
Registered: 2002-08-12
Posts: 771
Website

Re: Pacman file size and download time figures

Okay, this feature is on the list.

Offline

#6 2004-09-14 16:36:31

dp
Member
From: Aarau, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Pacman file size and download time figures

great


The impossible missions are the only ones which succeed.

Offline

#7 2004-09-14 23:11:35

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: Pacman file size and download time figures

you do realize that features such as this are usually not that accurate?

that being said it would be nice.


AKA uknowme

I am not your friend

Offline

#8 2004-09-14 23:37:12

i3839
Member
Registered: 2004-02-04
Posts: 1,185

Re: Pacman file size and download time figures

The inaccuracy comes from the fact that the donwload speed isn't known beforehand, but adding an ETA with the current download rate can be still useful and be as accurate as it's name.

I don't know how Judd wants to implement it, with an extra database entry with size info, or the FTP trick, or something else, but if using FTP then there's the problem that not all FTP servers know the size of the file (most times it doesn't seem to, at least the mirror I use not).

It also me be a bit tricky to let it work nicely when using external downloaders like wget. If the output file is known, or when the program writes the file to stdout which Pacman redirected then it's doable to have live ETA, but otherwise you can only give the ETA between two downloads.

Offline

#9 2004-09-14 23:45:26

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Pacman file size and download time figures

I picture a total-file-size implementation looking something like this:
- modify gensync to store PACKAGESIZE in the db.
- modify pacman to read all the upgrading package's PACKAGESIZE and add it together.

The ETA calculation is easy as well using the internal downloader.  I can't see the XferCommand being used in that way.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#10 2004-09-15 09:28:50

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Pacman file size and download time figures

ok - observations - doesn't wget do the size of the package anyway? or just not in collaboration with Pacman?  it certainly does in makepkg, doesn't it?

second, who thinks that the current ETA bit on the end of a pacman progress line is useful?!  it just seems to jump about randomly and tends to read that it still needs 2 mins or so when it has finished!  lol

Offline

#11 2004-09-15 10:43:46

dp
Member
From: Aarau, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Pacman file size and download time figures

i don't need to know the ETA, but the size to be downloaded - everyone can say from experience, how long it takes with his/her connection to download e.g. 10mb from serverXY


The impossible missions are the only ones which succeed.

Offline

#12 2004-09-15 11:34:46

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Pacman file size and download time figures

i concur

Offline

#13 2004-09-18 15:54:59

hugelmopf
Member
Registered: 2004-08-06
Posts: 71

Re: Pacman file size and download time figures

I agree... this feature would be great (as well as another one I have asked about before: http://bbs.archlinux.org/viewtopic.php?t=6039 ).

ETA is not really necessary, just the total size.
And where it should be implemented: When Pacman shows "Targets" and asks you to "Proceed?", it could easily tell you the total size... So the poor dial uppers can decide whether to do it at their comp or somewhere else :-)

I personally would <b>not</b> need a "total progress" bar. Just the size in advance.

Looking forward to it, Frank

Offline

#14 2004-09-19 18:27:52

dp
Member
From: Aarau, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: Pacman file size and download time figures

Targets: apache-2.0.51-1 freeciv-1.14.2-1 nss-nspr-3.9-1 gaim-1.0.0-2
         hpijs-1.6.2-1 k3b-0.11.16-1 kdeartwork-3.3.0-2 libsigc++2.0-2.0.3-2
         shared-mime-info-0.15-1 strace-4.5.7-1 subversion-1.0.7-1 tetex-2.0.2-6
         whois-4.6.22-1 xine-lib-1rc6a-1 xorg-11R6.8.1-1

Total Package Size:   119.8 MB

Proceed with upgrade? [Y/n] 

wonderfull!!!! -- thanx the people with ideas, the people who realized it and the users to find it usefull


The impossible missions are the only ones which succeed.

Offline

#15 2009-08-12 03:49:02

AdrianTM
Member
Registered: 2008-04-01
Posts: 18

Re: Pacman file size and download time figures

ETA is very nice to have, sure, it's not 100% accurate, but there's one thing if you have 50 min to download or 1 min. it gives you a ballpark idea.

Correct me if I'm wrong, but if you get ETA per package and you actually download more than one package the ETA per package is very close to useless (why do you need to know when a package finishes to download?), what's relevant is the ETA for all packages. Debian got this right, Arch hasn't yet.

Offline

#16 2009-08-12 03:52:13

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: Pacman file size and download time figures

Edit:  this post is many years old.  Thing have changed since then.  Please read: http://wiki.archlinux.org/index.php/For … Bumping.27


I deleted my answer so you learn to search yourself...

Offline

Board footer

Powered by FluxBB