You are not logged in.

#1 2005-03-27 23:28:22

yowwww
Member
Registered: 2003-09-04
Posts: 112

Number the packages to be upgraded

I did a quick search and didn't see this brought up anywhere so either it doesn't exist or I missed it.

Anyway, I think it would be useful to show numbers of packages being installed as they go by. I do IT for a school and I will go in and do a massive upgrade once in a while but once I start one, I have no idea how much longer and how many more packages are left to be downloaded/upgraded.

Apt and other package managers have this feature and I think it would be a nice enhancement for pacman.

Something like....


Getting package 1 of 1....

or whatever would be preferred. Even better would be to add how many more mb's and time is left for the upgrade also wink

Offline

#2 2005-03-27 23:53:25

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

Re: Number the packages to be upgraded

yowwww wrote:

Even better would be to add how many more mb's and time is left for the upgrade also wink

So, something like this?

pacman wrote:

Targets: atk-1.9.1-1 wxgtk-2.4.2-3 wxpython-2.4.2.4-4 bittornado-0.3.10-1
         bzip2-1.0.3-1 cdrtools-2.01-3 curl-7.13.0-2 db-4.3.27-2
         e2fsprogs-1.37-1 file-4.13-1 findutils-4.2.20-1 fontconfig-2.3.0-3
         gcc-3.4.3-2 gettext-0.14.3-1 glib-perl-1.080-1 glib2-2.6.3-1
         gtk2-2.6.4-1 gtk2-perl-1.080-1 hotplug-2004_09_23-4 lshwd-1.1.3-1
         hwd-4.5-1 initscripts-0.7-9 lftp-3.1.0-1 libglade-2.5.1-1
         libidl2-0.8.5-1 libpng-1.2.8-1 links-2.1pre16-2 man-1.5p-2
         mozilla-firefox-1.0.1-1 ncurses-5.4-2 nmap-3.81-1 openssh-4.0p1-1
         openssl-0.9.7f-1 pam-0.78-4 pango-1.8.1-1 perl-5.8.6-2 psmisc-21.6-1
         python-2.4-3 syslog-ng-1.6.6-1 udev-054-1 usbutils-0.70-2
         xorg-11R6.8.2-2

Total Package Size:   143.1 MB

Proceed with upgrade? [Y/n]

MBs only, but if you have a clue about your available bandwidth, the MB figure is all you need - right?

Offline

#3 2005-03-28 00:29:14

yowwww
Member
Registered: 2003-09-04
Posts: 112

Re: Number the packages to be upgraded

well, obviously I know it shows the total amount of packages, but I was thinking more of calculating the actual individual package size and amount left, ideally, something like this...



pacman -Syu

1 - python-2.4-3
2 - syslog-ng-1.6.6-1
3 - udev-054-1
4 - usbutils-0.70-2
5 - xorg-11R6.8.2-2

Total Package Size: 43.1 MB

Proceed with upgrade? [Y/n]

pkg 1 of 5 python-2.4-3 (4mb) @ 600kb/s -----------> 30 seconds left -- Overall time remaining - 3:24
pkg 2 of 5 syslog-ng-1.6.6-1 (600kb) @ 600kb/s -----------> 14 seconds left --  Overall time remaining - 3:00

etc etc

and repeat that for each package. I'm sure it could be reworded so it is more concise.

Offline

#4 2005-03-29 05:49:39

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

Re: Number the packages to be upgraded

I'm with yowwww on this one.  It would be nice to have.  I got a big pipe plugged into the net, but even then, I've sat there wondering "how much longer for this 56 MB chunk to finish?".  And that's at ~300KB/s, but it will fluctuate and time out at times so the MB isn't a good 'measuring stick'.

This feature would be nice to query for a GUI frontend status bar as well.

Offline

#5 2005-03-29 05:52:29

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: Number the packages to be upgraded

as a bonus, with the pacman.conf ILoveCandy attribute, maybe we can get more chomping!


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2005-03-29 07:15:35

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Number the packages to be upgraded

wget shows the remaining time to download.  You can just use the XferCommand option in pacman.conf

Offline

#7 2005-03-29 15:10:42

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

Re: Number the packages to be upgraded

cactus wrote:

as a bonus, with the pacman.conf ILoveCandy attribute, maybe we can get more chomping!

Done.  That's feature #129 in my pacman GUI.  Feature #128 is a pacman icon next to the 'sync' button.  When you press it, Blinky, Pinky, Inkey, and Clyde chase you around the screen.  Package names are 'powerups'.  For faster downloads, you need to eat one of the ghosts while they're still blue.  If one of the ghosts catches you when they're not blue, pacman exits and opens a browser window redirecting you to RedHat.

Each dot represents how many packages you requested to sync.  If you 'sys update' once every 3 months like I do, you'll have plenty of dots to keep you entertained while you update.  Oh yeah, occasionally some fruit and bonus items will appear.  If you chomp the 'key', a randomly selected Arch user's computer will be unlocked so you can root it (feature #1).

Offline

#8 2005-03-29 16:38:56

yowwww
Member
Registered: 2003-09-04
Posts: 112

Re: Number the packages to be upgraded

Snowman wrote:

wget shows the remaining time to download.  You can just use the XferCommand option in pacman.conf

I'm already using the wget argument with pacman but it doesn't show the overall time left for all the packages. If I am missing something please point this out to me cause I don't see it anywhere.

Offline

#9 2005-03-29 16:52:45

skoal
Member
From: Frequent Flyer Underworld
Registered: 2004-03-23
Posts: 612
Website

Re: Number the packages to be upgraded

I use wget as well yowwww.  It doesn't do like you request, or I'd like to see.  I checked the 'wget' man pages and didn't see a command line argument for this purpose.  I don't think it would matter anyway since pacman passes the URL to the 'fetcher' on a per package basis.

Offline

#10 2005-03-29 18:25:42

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Number the packages to be upgraded

yowwww wrote:

I'm already using the wget argument with pacman but it doesn't show the overall time left for all the packages. If I am missing something please point this out to me cause I don't see it anywhere.

With my current setup, wget only shows the remaining time of the current package.  And there doesn't seem to be an option for it (according to skoal).

EDIT: You can file a feature request on the bug tracker.  This could be useful when a large number of packages are being upgraded.

Offline

#11 2005-03-29 19:18:07

yowwww
Member
Registered: 2003-09-04
Posts: 112

Re: Number the packages to be upgraded

I've edited my above post with the example to display a different syntax which is more concise, here it is:

pacman -Syu

1 - python-2.4-3
2 - syslog-ng-1.6.6-1
3 - udev-054-1
4 - usbutils-0.70-2
5 - xorg-11R6.8.2-2

Total Package Size: 43.1 MB

Proceed with upgrade? [Y/n]

pkg 1 of 5 python-2.4-3 (4mb) @ 600kb/s -----------> 30 seconds left -- Overall time remaining - 3:24
pkg 2 of 5 syslog-ng-1.6.6-1 (600kb) @ 600kb/s -----------> 14 seconds left -- Overall time remaining - 3:00

More ideas are welcome smile

Offline

Board footer

Powered by FluxBB