1 |
Rich Freeman wrote: |
2 |
> On Mon, Aug 10, 2015 at 12:10 PM, Dale <rdalek1967@×××××.com> wrote: |
3 |
>> Peter Humphrey wrote: |
4 |
>>> On Monday 10 August 2015 09:13:01 Dale wrote: |
5 |
>>> |
6 |
>>>> I might add, sync is taking a LONG time again. Of course, my DSL is a |
7 |
>>>> bit slower than some folks. At least the bumpy road got smoothed out |
8 |
>>>> tho. It seems to be working again. Maybe next sync will be back to |
9 |
>>>> normal. |
10 |
>>> I do one sync a day, of my LAN server, and sync anything else to that. I don't |
11 |
>>> know how long it took today because I have it on a cron job at night. :-) |
12 |
>>> |
13 |
>> |
14 |
>> I usually sync about twice a week, sometimes three if I see something I |
15 |
>> want or need. I just run my desktop here so updating isn't a huge |
16 |
>> deal. Sometimes I forget because I'm busy with other things and I might |
17 |
>> go a week or more without a single sync up. |
18 |
>> |
19 |
>> When I used to run several rigs, I'd sync one rig and then sync the |
20 |
>> others to my main rig. I try not to sync to often. |
21 |
> I couldn't tell you who I ripped this off of but my cron routine is: |
22 |
> |
23 |
> ionice -n 7 nice -n 20 emerge --sync (alternatively |
24 |
> emerge-webrsync -k - preferred actually if you're using rsync) |
25 |
> ionice -n 7 nice -n 20 layman -S |
26 |
> emerge -puDv --changed-use world | col -bx | mutt -s "world update" |
27 |
> root@localhost |
28 |
> eix-update |
29 |
> |
30 |
> Then I do this: |
31 |
> #!/bin/sh |
32 |
> |
33 |
> LIST=$(mktemp); |
34 |
> |
35 |
> emerge -puD --changed-use --color=n --columns --quiet=y --with-bdeps=n |
36 |
> world | awk '{print $2}' > ${LIST}; |
37 |
> |
38 |
> for PACKAGE in $(cat ${LIST}); |
39 |
> do |
40 |
> printf "Building binary package for ${PACKAGE}... " |
41 |
> emerge -uN --quiet-build --quiet=y --buildpkgonly ${PACKAGE}; |
42 |
> if [[ $? -eq 0 ]]; |
43 |
> then |
44 |
> echo "ok"; |
45 |
> else |
46 |
> echo "failed"; |
47 |
> fi |
48 |
> done |
49 |
> |
50 |
> That isn't optimally efficient, but works reasonably well. |
51 |
> |
52 |
> The result is that the next morning I have an email containing a list |
53 |
> of the stuff to be merged, and a set of binary packages for most of it |
54 |
> (deps of modified packages cannot be pre-built in this way of course). |
55 |
> Then I just run an "emerge -uDNkv" world to install all of it, often |
56 |
> in minutes. |
57 |
> |
58 |
> The script could be optimized - if libreoffice and chromium are on the |
59 |
> list and I don't install them for a few days, suffice it to say that |
60 |
> the heater won't be running as much those nights. |
61 |
> |
62 |
|
63 |
Well, I only have one rig right now. May save this for when I build a |
64 |
spare or something. |
65 |
|
66 |
Oh, I also ran across a link to this bug: |
67 |
|
68 |
https://bugs.gentoo.org/show_bug.cgi?id=557192 |
69 |
|
70 |
It seems there is still a few kinks to work out. ;-) |
71 |
|
72 |
Dale |
73 |
|
74 |
:-) :-) |