You are not logged in.

#1 2016-10-16 08:15:46

fommil
Member
Registered: 2016-07-16
Posts: 39

git managed package databases?

When I syncronise the package database, e.g. during a `sudo pacman -Syu` it is obvious that full database files are being downloaded from the servers.

This seems wasteful, is there a way to receive just the diffs? e.g. by having these files git-managed rather than full file downloads.

Offline

#2 2016-10-16 08:23:01

lolilolicon
Member
Registered: 2009-03-05
Posts: 1,722

Re: git managed package databases?

`du -sh /var/lib/pacman/sync/` gives me 5.6M, really not so wasteful.


This silver ladybug at line 28...

Offline

#3 2016-10-16 08:53:57

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: git managed package databases?

It's a 5M download if anything changes, even one package. On my internet connection, that is quite significant and often more than the packages that ultimately get upgraded.

Offline

#4 2016-10-16 09:21:30

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: git managed package databases?

man pacman.conf | less -p delta

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2016-10-16 12:56:34

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: git managed package databases?

jasonwryan wrote:
man pacman.conf | less -p delta

This is perfect, thank you!

Offline

#6 2016-10-16 13:54:23

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

Re: git managed package databases?

Except...  I don't think deltas have ever worked fro databases.  Only packages (and only on a mirror or two that enables them...).

The only real solution here is to update less frequently, so that you end up with the repo do being a low percentage of your total update downloads.

Offline

#7 2016-10-18 12:13:19

fommil
Member
Registered: 2016-07-16
Posts: 39

Re: git managed package databases?

Allan wrote:

Except...  I don't think deltas have ever worked fro databases.  Only packages (and only on a mirror or two that enables them...).

The only real solution here is to update less frequently, so that you end up with the repo do being a low percentage of your total update downloads.

Yeah, you're right. This doesn't delta the repository contents :-(

Offline

Board footer

Powered by FluxBB