bsdiff - howto

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

bsdiff - howto

Postby m.reza » Thu Feb 27, 2014 12:36

Hey, everybody
I was wondering how should I use bsdiff to work with delta packages. It seems that it doesn't work for me. Last week, I hade almost 900MB updates and now I have more than 600MB - and I will have more than that next Sunday.
I would really appreciate if anyone could tell me how to efficiently use it.
Thank you.
m.reza
Young Hen
 
Posts: 30
Joined: Sat Dec 21, 2013 13:37

Re: bsdiff - howto

Postby lxnay » Thu Feb 27, 2014 13:18

delta package updates are just a best effort service.
Image
Join us on IRC (chat.freenode.net #sabayon or WebChat)
Submit bugs to our Bug Tracker
Follow me on Twitter
Add me on Facebook
Add me on Google+
lxnay
Land Owner
 
Posts: 3595
Joined: Thu Oct 13, 2005 23:16
Location: Italy

Re: bsdiff - howto

Postby m.reza » Thu Feb 27, 2014 13:27

Excuse me, I don't understand. Could you elaborate a little bit more, please?
m.reza
Young Hen
 
Posts: 30
Joined: Sat Dec 21, 2013 13:37

Re: bsdiff - howto

Postby sabayonino » Thu Feb 27, 2014 14:44

m.reza wrote:Excuse me, I don't understand. Could you elaborate a little bit more, please?


Instead of downloading all files, regardless of whether they have changed or not, a delta will only download the files that have changed compared to the previous package(s).

if you cleanup download directory , you download all packages again (without delta(s) )

First Download Example :
Libreoffice-r1 (full package 100M :D)
Update Libreoffice-r2 : if you don't cleanup download directory , you'll download delta for r2 (20Mb delta)

If you cleanup download directory (no more Libreoffice-r1) you'll download all Libreoffice-r2 (without delta(s) +100M)
User avatar
sabayonino
Sagely Hen
 
Posts: 2583
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: bsdiff - howto

Postby m.reza » Thu Feb 27, 2014 15:06

So, bsdiff works automatically, right?
In order to upgrade to libreoffice-4.2.0.4 from 4.1.4.2, equo wants to install 5 packages and update 7 packages. The whole download size is 135.8MB.
If bsdiff works automatically - without running any particular command, then I think it's all right. But how can I make sure that it really works (about libreoffice, for instance)? I mean, how to find out the download size for a particular package among others which are supposed to be installed.
By the way, I have almost 1.5GB downloaded packages in "/var/lib/entropy/client/packages/" and I haven't run "equo cleanup" since I have installed Sabayon Xfce.
m.reza
Young Hen
 
Posts: 30
Joined: Sat Dec 21, 2013 13:37

Re: bsdiff - howto

Postby eor2004 » Thu Feb 27, 2014 17:50

Please go to: https://wiki.sabayon.org/index.php?title=En:Entropy#Entropy_for_servers_and_limited-bandwith_users and read where it says "Entropy for servers and limited-bandwith users" I think many of your questions will be answered.

Me too was thinking about enabling Delta Package, just wondering if my 50 Gb root partition where 35 Gb are free are good enough to enable Delta Packages, I mean if my root partition would get full very fast if I use Delta Packages :shock:
Sabayon Linux MATE 64-bit
Gigabyte G41M-ES2L-->2gb ram
Intel Pentium Dual Core 2.60ghz-->E5300
WD-6400AAKS-Caviar-SE16-640gb-->XFS filesystem
User avatar
eor2004
Simple Hen
 
Posts: 85
Joined: Thu Jul 12, 2012 15:46
Location: Puerto Rico

Re: bsdiff - howto

Postby m.reza » Fri Feb 28, 2014 8:05

Thank you. I have already read that part and I have obviously done whatever it says. My question is particularly about the function of bsdiff. I doubt if it really works for me.
m.reza
Young Hen
 
Posts: 30
Joined: Sat Dec 21, 2013 13:37

Re: bsdiff - howto

Postby sabayonino » Fri Feb 28, 2014 22:42

regarding libreoffice i think LOO-4.2.0 is few small than 4.1.4.2 . no deltas to implement

Code: Select all
# cd /var/lib/entropy/client/packages/packages/amd64/5


Code: Select all
# ls -lh | cut -d" " -f6,10 | grep libreoffice
106M app-office:libreoffice-4.1.4.2.a53093210f7be2e8adc4bc589f0d873a666d4c15~2.tbz2
102M app-office:libreoffice-4.2.0.4.dc3e5ef6a788c674f39029c1b390eb353d559d34~0.tbz2
5,6M app-office:libreoffice-l10n-en_US-4.2.0.4f49ddaff36982d63201abc3435b29ccb6d967c1~0.tbz2
593K app-office:libreoffice-l10n-en_US-4.2.0.4f49ddaff36982d63201abc3435b29ccb6d967c1~0.tbz2.edelta
7,4M app-office:libreoffice-l10n-it-4.2.0.8f88f6a6f27a59717e38ebb54f82ddfe41c39e76~0.tbz2


but as you can see delta is for libreoffice-l10n-en_US-4.2.0 (593K Kb) (previous package requires 5.6 Mb and must be presntin download directory to work with delta)
User avatar
sabayonino
Sagely Hen
 
Posts: 2583
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: bsdiff - howto

Postby m.reza » Sat Mar 01, 2014 18:58

This is the output:
Code: Select all
106M app-office:libreoffice-4.1.4.2.a53093210f7be2e8adc4bc589f0d873a666d4c15~2.tbz2
5.6M app-office:libreoffice-l10n-en_US-4.1.4.a55a3c75084bd4dd2125300c91491dfd8f8ed7a8~0.tbz2


So I do have the "libreoffice-l10n-en_US", but for the next update, rigo says the file size is 5.7 MB. It seems that it will download the whole file.

And a small question: In order to use the delta updates, does it work with binary packages or the source codes?
m.reza
Young Hen
 
Posts: 30
Joined: Sat Dec 21, 2013 13:37


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 1 guest

cron