Why is Pamac refreshing community.files downloading more than 340Mo

Hi,

I’m using manjaro over a slow internet connexion. When refreshing packages using Pamac, I see Refreshing community.files… 340Mo.

Is there any way to reduce the downloaded size ?
Is there a way to speedup this operation over slow network?

pamac also upgrade your system just like sudo pacman -Syu

you can setup a vpn dns1.1.1.1 its the fastest vpn and increase speed but require a bit setup
and upgrading system upgrades your drivers which will help to incease speed

Thanks for the answer, I’m already using 1.1.1.1

What surprises me is the amount of downloaded files just to give me a list of which package needs to be updated.

1 Like

when performing sudo pacman -Syyu
the synchronisation is faster.

➜ sudo pacman -Syyu
:: Synchronizing package databases...
 core        170,3 KiB   292 KiB/s 00:01
 extra      1900,2 KiB   349 KiB/s 00:05
 community     6,8 MiB   222 KiB/s 00:31
 multilib    175,2 KiB   876 KiB/s 00:00
:: Starting full system upgrade...

I don’t understand why Pamac is downloading more than 300Mo.

Manjaro is a rolling release distro that regularly upgrades packages (though not as quickly as Stable branch users would like… apparently) … if such a situation is problematic for youthen you should choose a different distribution - probably one that uses a frozen-pool model.

I see the confusion. I’m not allowed to post screen capture.
When I say more than 300Mo downloaded I’m talking about Pamac refreshing conmunity.files.
Open Pamac (add/remove software in the menu) => refresh databases. It will sync and at some point download 300Mo I can notice it, given my slow download speed.

I tried to perform package database synchronisation using pacman. it is much faster. So I’m confused. Why is Pamac refresh databases downloading more than 300Mo

Thanks for your answer.
I’m super happy with Manjaro, the Stable branch is great for me, I use manjaro on my work laptop.
The Manjaro quality is awesome, Thank you for that.
Maybe impatient users could try testing or unstable manjaro.

Do you know what the refreshing community.files represents ? That’s my main problem here.
what is the difference with performing sudo pacman -Syyu
which also synchronizes a community database

:: Synchronizing package databases...
community     6,8 MiB   222 KiB/s 00:31

but is fast and small.

Yes, I neglected to mention that this time. Throughout the 709098098098 different times I have had this conversation I sometimes make that mistake. Once or twice anyways. :wink:

I honestly do not know what you are referencing here.
… maybe you are talking about some difference between pamac and pacman ?

Pamac is downloading the files databases as well as the package databases.

The equivalent using pacman would be sudo pacman -Fy.

1 Like

community.file( or .tar.gz) size is not 300Mo but 30Mo :wink:

wget 'https://mirror.alpix.eu/manjaro/stable/community/x86_64/community.files'
...
Length: 33029843 (31M) [application/octet-stream]
curl -I 'https://mirror.alpix.eu/manjaro/stable/community/x86_64/community.files.tar.gz'
...
content-length: 33029843
ls -lh /var/lib/pacman/sync/*.files
-rw-r--r-- 1 root root  32M 31 oct.  15:09 /var/lib/pacman/sync/community.files
-rw-r--r-- 1 root root 1,7M 31 oct.  15:12 /var/lib/pacman/sync/core.files
-rw-r--r-- 1 root root 9,6M 28 oct.  15:09 /var/lib/pacman/sync/extra.files
-rw-r--r-- 1 root root 260K 16 oct.  17:03 /var/lib/pacman/sync/multilib.files
1 Like

That’s interesting.

I would love it.

Here is what I get on my laptop

➜ ls -lh /var/lib/pacman/sync/*.files

-rw-r--r-- 1 root root 359M  8 nov.  23:16 /var/lib/pacman/sync/community.files
-rw-r--r-- 1 root root 1,7M 31 oct.  01:12 /var/lib/pacman/sync/core.files
-rw-r--r-- 1 root root 107M  7 nov.  16:22 /var/lib/pacman/sync/extra.files
-rw-r--r-- 1 root root 2,2M 16 oct.  17:03 /var/lib/pacman/sync/multilib.files

what is your (stupid) mirror ?

 pacman-conf -r community

curl -ILv $(pacman-conf -r community | awk -F' ' '/^Server/ {print $3"/community.files"; exit}')

This is: http://ftp.free.org/mirrors/repo.manjaro.org/repos/stable/community/x86_64
But it may have changed this morning as I executed this sudo pacman-mirrors --fasttrack && sudo pacman -Syyu in order to try to optimize the synchronization.

When browsing the mirror I see 30Mo community.files

Is there any way to find the previous mirrors ?

Is there a way to clean this up ?

➜ curl -ILv $(pacman-conf -r community | awk -F' ' '/^Server/ {print $3"/community.files"; exit}')
*   Trying 213.36.253.131:80...
* Connected to ftp.free.org (213.36.253.131) port 80 (#0)
> HEAD /mirrors/repo.manjaro.org/repos/stable/community/x86_64/community.files HTTP/1.1
> Host: ftp.free.org
> User-Agent: curl/7.79.1
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Date: Tue, 09 Nov 2021 15:06:14 GMT
Date: Tue, 09 Nov 2021 15:06:14 GMT
< Server: Apache
Server: Apache
< Last-Modified: Mon, 08 Nov 2021 22:16:45 GMT
Last-Modified: Mon, 08 Nov 2021 22:16:45 GMT
< ETag: "1f7fed3-5d04e592a0d33"
ETag: "1f7fed3-5d04e592a0d33"
< Accept-Ranges: bytes
Accept-Ranges: bytes
< Content-Length: 33029843
Content-Length: 33029843

< 
* Connection #0 to host ftp.free.org left intact

The content lenght is correct.

I removed the files from the folder sudo rm /var/lib/pacman/sync/*.files and executed sudo pacman -Fy

now I get:

➜ ls -lh /var/lib/pacman/sync/*.files                                                                                                     
-rw-r--r-- 1 root root  32M  8 nov.  23:16 /var/lib/pacman/sync/community.files
-rw-r--r-- 1 root root 1,7M 31 oct.  01:12 /var/lib/pacman/sync/core.files
-rw-r--r-- 1 root root 9,6M  7 nov.  16:22 /var/lib/pacman/sync/extra.files
-rw-r--r-- 1 root root 260K 16 oct.  17:03 /var/lib/pacman/sync/multilib.files

Pamac is now fast when listing updates and when executing refreshing databases it correctly displays 30Mo.

Thank you for guiding me and helping me understand my problem.
I still have the 359Mo community.files. I’ll explore its content.

I use same mirror as you

pacman-mirrors
Pacman-mirrors version 4.21.5
Local mirror status for stable branch
Mirror #1   OK  05:42   France   http://ftp.free.org/mirrors/repo.manjaro.org/repos/

test refresh with pamac (if a bug in pamac ?)

pamac update --force-refresh 
Preparing...
Synchronizing package databases...
...
Refreshing community.files...                                                                                                                              

pamac results is ok …

ls -lh /var/lib/pacman/sync/*.files
-rw-r--r-- 1 root root  32M  8 nov.  23:16 /var/lib/pacman/sync/community.files

after pamac update --force-refresh I still have a slow community.files.

ls -lh /var/lib/pacman/sync/*.files
-rw-r--r-- 1 root root  32M  8 nov.  23:16 /var/lib/pacman/sync/community.files

Just in case anyone complains of a slow Pamac, having a 359Mo community.files makes it super slow.

I installed Manjaro in august 2019, maybe something weird happend during an upgrade.

Maybe suggesting somewhere (version upgrade post…) to check the size of the ls -lh /var/lib/pacman/sync/*.files could be helpfull to others.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.