You are not logged in.

#1 2016-05-22 00:41:22

okay19
Member
Registered: 2016-05-21
Posts: 6

[SOLVED] Show overall progress while downloading packages

When installing or upgrading packages in pacman, you can see how many packages are remaining at the start of each line:

:: Processing package changes...
(1/3) installing example1
(2/3) installing example2
(3/3) installing example3

However, this number only appears while the packages are being installed, not while they are being downloaded:

:: Retrieving packages...
example1-1.0-x86_64 500.0 KiB ...
example2-1.0-x86_64 500.0 KiB ...
example3-1.0-x86_64 500.0 KiB ...

There is a progress bar to indicate the status of each download, but there is no way to see how many more packages need to be downloaded. This is especially noticeable during a large install or upgrade, where the download lines might take up the entire terminal. Is there any way to display this number while packages are being downloaded?

Last edited by okay19 (2016-05-22 12:48:41)

Offline

#2 2016-05-22 00:44:51

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

Re: [SOLVED] Show overall progress while downloading packages

"man pacman.conf" and look for TotalDownload

Offline

#3 2016-05-22 02:05:16

okay19
Member
Registered: 2016-05-21
Posts: 6

Re: [SOLVED] Show overall progress while downloading packages

Thanks for the tip; I needed a good way to see overall download progress, and that option looks like it will fit the bill.

Last edited by okay19 (2016-05-22 02:05:35)

Offline

#4 2016-05-22 10:30:27

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: [SOLVED] Show overall progress while downloading packages

Please mark your thread as solved by editing your first post and amending the topic title.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#5 2016-05-23 18:49:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] Show overall progress while downloading packages

I enabled the option in /etc/pacman.conf but I'm not seeing it reflected in the output... what am I missing something?

% grep -i totald /etc/pacman.conf 
TotalDownload

% grep XferCommand /etc/pacman.conf 
#XferCommand = /usr/bin/curl -C - -f %u > %o
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2016-05-23 19:53:50

Ropid
Member
Registered: 2015-03-09
Posts: 1,069

Re: [SOLVED] Show overall progress while downloading packages

graysky wrote:

I enabled the option in /etc/pacman.conf but I'm not seeing it reflected in the output... what am I missing something?
[...]

You see the difference in the percentages mentioned at the end of the lines. The progress bar graphic is still just about the individual packages.

Offline

#7 2016-05-24 00:43:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] Show overall progress while downloading packages

Ropid wrote:
graysky wrote:

I enabled the option in /etc/pacman.conf but I'm not seeing it reflected in the output... what am I missing something?
[...]

You see the difference in the percentages mentioned at the end of the lines. The progress bar graphic is still just about the individual packages.

I see... only the percentage is different.  Subtle.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

Board footer

Powered by FluxBB