Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
automatic emerge rsync?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
victor
n00b
n00b


Joined: 19 Jun 2002
Posts: 9

PostPosted: Wed Jul 03, 2002 9:02 pm    Post subject: automatic emerge rsync? Reply with quote

If I do 'emerge <package>' and I haven't updated my portage tree recently by running 'emerge rsync', then an older version of the package may be installed, is that right? In that case, wouldn't it be useful to have an option that would automatically check for newer versions, without the user having to explicitly reupdate the whole tree?

Thanks!
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 04, 2002 3:44 am    Post subject: Reply with quote

I don't think having Portage query the network on each and every install is a good idea, as a lot of people aren't connected 24/7 and a lot of sysadmins don't like the idea of their computer doing something (looking at the Portage tree) unless it's told to. A number of times, you don't want to use the latest version (like Xine for instance, as DVD playback is broken), and having Portage try to install the latest version is a Bad Thing (TM).

Furthermore, I'm sure the rsync servers wouldn't like the idea of setting up a new connection and polling the filesystem each and every time a Gentoo user tries to install a package.

If you want automatic updates, but "emerge rsync" in your crontab.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
ddanier
Tux's lil' helper
Tux's lil' helper


Joined: 19 May 2002
Posts: 87

PostPosted: Thu Jul 04, 2002 5:48 am    Post subject: Reply with quote

i think he means not to update the whole portage tree, but the infos about everything that needs to be installed....

and if portage would do so there must be an option wether you decide to use the version of your own ebuild or that one from the net :)
_________________
My Box said: "Install Win95 or better ..." So I installed Linux.
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Thu Jul 04, 2002 6:08 am    Post subject: Reply with quote

ddanier wrote:
i think he means not to update the whole portage tree, but the infos about everything that needs to be installed....


Even so, that's a nontrivial amount of overhead on the server side for each and every package install by every Gentoo user on the planet - the DNS round robin, building up and tearing down the rsync connection, etc.

Maybe if you had a server farm or lab environment with a lot of machines and you had a local portage rsync mirror, it might be feasible, but probably not as a default option in the wild.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
victor
n00b
n00b


Joined: 19 Jun 2002
Posts: 9

PostPosted: Thu Jul 04, 2002 12:18 pm    Post subject: Reply with quote

I see your point. However, I was talking about an "option" (to be explicitly given), not about a default.
Back to top
View user's profile Send private message
digitalnick
Apprentice
Apprentice


Joined: 30 Jun 2002
Posts: 243
Location: Lawrence KS USA

PostPosted: Thu Jul 04, 2002 4:56 pm    Post subject: Reply with quote

It dosnt seem to me that emerge rsync takes very long to do .... granted im on dsl but updating the while tree is a much better idea than only updating one package especially if a dependancy has changed. then you dont have the new dependancy ect.... and i think it would just cause more headaches.
Back to top
View user's profile Send private message
delta407
Bodhisattva
Bodhisattva


Joined: 23 Apr 2002
Posts: 2876
Location: Chicago, IL

PostPosted: Thu Jul 04, 2002 11:27 pm    Post subject: Reply with quote

victor wrote:
However, I was talking about an "option" (to be explicitly given)

Why not just put "emerge rsync" in your crontab? Or you could set up an alias so that "emerge foo" runs "emerge rsync; emerge foo". There are already options to do this, the thing is, why don't you just rsync manually?

digitalnick wrote:
It dosnt seem to me that emerge rsync takes very long to do

Right, but do you have any idea how much information is being exchanged? Or, better yet, how much work the rsync server has to do to match your Portage tree to its?

rac said it best; starting an rsync connection every time even a portion of users start an emerge cycle can quickly become expensive in terms of bandwidth and CPU time.
_________________
I don't believe in witty sigs.
Back to top
View user's profile Send private message
Nitro
Bodhisattva
Bodhisattva


Joined: 08 Apr 2002
Posts: 661
Location: Wisconsin, USA

PostPosted: Fri Jul 05, 2002 12:33 am    Post subject: Reply with quote

delta407 wrote:
rac said it best; starting an rsync connection every time even a portion of users start an emerge cycle can quickly become expensive in terms of bandwidth and CPU time.


I don't think bandwidth is that big of an issue in comparison to CPU time + disk accesses. Rsync reads the mtime on the entire rsync tree and compares them. If we all had SCSI drives and dual processors it wouldn't be so bad.
_________________
- Kyle Manna

Please, please SEARCH before posting.

There are three kinds of people in the world: those who can count, and those who can't.
Back to top
View user's profile Send private message
alec
Apprentice
Apprentice


Joined: 19 Apr 2002
Posts: 270
Location: Here

PostPosted: Fri Jul 05, 2002 2:55 am    Post subject: Reply with quote

I guess the real question is: Do you emerge new stuff often enough so that you need to automatically sync up? Personally, I sync up a few times a week - maybe once a day if I'm really bored. I just don't waste time upgrading that one new package that's more than likely a new -rX version that I'll just recompile for no difference. If you really want to, just set it as a cron job, but I would be against having a real option so that overzealous people don't have an blindingly easy way to tie up the rsync servers.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum