View previous topic :: View next topic |
Author |
Message |
Jojobinha_2009 Tux's lil' helper
Joined: 27 Mar 2021 Posts: 77 Location: Brazil
|
Posted: Tue May 04, 2021 9:25 pm Post subject: How often should I run emerge --sync? |
|
|
I do run on "~amd64" so I do get updates every single day (not complaining)...
I've read that a Gentoo install shouldn't be left without updates for long periods of time since that can result in system breakage when the user does try to update his/her system.
But how many times a day or a week should I run updates? _________________ Intel Core i5-9400F / 24GB DDR4 2666MHz / GeForce GTX 1060 3GB
Powered by Gentoo for x86_64
======================================================
Seize the day, and remember to have fun! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue May 04, 2021 9:48 pm Post subject: |
|
|
Jojobinha_2009,
emerge --sync, not more than once a day or you may get your name it the naughty book :)
The mirror rotation blocks users that sync excessively. FOr some period of time.
I have about 10 installs here, so I run a private rsync mirror that updates daily in a cron job.
My installs sync with that.
Do updates at least once a month on an all testing install. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jojobinha_2009 Tux's lil' helper
Joined: 27 Mar 2021 Posts: 77 Location: Brazil
|
Posted: Tue May 04, 2021 9:54 pm Post subject: |
|
|
NeddySeagoon wrote: | Jojobinha_2009,
emerge --sync, not more than once a day or you may get your name it the naughty book
The mirror rotation blocks users that sync excessively. FOr some period of time.
I have about 10 installs here, so I run a private rsync mirror that updates daily in a cron job.
My installs sync with that.
Do updates at least once a month on an all testing install. |
But what about when the sync is stopped due to a network failure or a manifest mismatch?
Shouldn't the user try and sync again? _________________ Intel Core i5-9400F / 24GB DDR4 2666MHz / GeForce GTX 1060 3GB
Powered by Gentoo for x86_64
======================================================
Seize the day, and remember to have fun! |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Tue May 04, 2021 9:56 pm Post subject: |
|
|
Jojobinha_2009,
Yes. If there are problems, try again. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Jojobinha_2009 Tux's lil' helper
Joined: 27 Mar 2021 Posts: 77 Location: Brazil
|
Posted: Tue May 04, 2021 10:00 pm Post subject: |
|
|
NeddySeagoon wrote: | Jojobinha_2009,
Yes. If there are problems, try again. |
Ok. Thanks man _________________ Intel Core i5-9400F / 24GB DDR4 2666MHz / GeForce GTX 1060 3GB
Powered by Gentoo for x86_64
======================================================
Seize the day, and remember to have fun! |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2963 Location: Edge of marsh USA
|
Posted: Wed May 05, 2021 3:32 am Post subject: |
|
|
I run sync daily to my local rsync mirror, while I sleep via crontab, which emails me the results, then emails me the output of "emerge -uDU @world -p" which I usually apply each morning to my two main machines. It takes almost no time (I don't watch it build.) and prevents many problems. _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 724 Location: /home
|
Posted: Wed May 05, 2021 4:48 am Post subject: |
|
|
NeddySeagoon wrote: |
emerge --sync, not more than once a day or you may get your name it the naughty book :)
The mirror rotation blocks users that sync excessively. FOr some period of time.
|
Use git protocol to sync rather than rsync to avoid this ban.
I updated my ~ about once a week, and my stable 1-2 times a month. |
|
Back to top |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 608 Location: Fife, Scotland
|
Posted: Wed May 05, 2021 9:39 am Post subject: |
|
|
Twice a week...
Historical really: gentoo was a bit wilder back in the day, network & cpu was slower, and daily meant I was spending more time updating than using.
My contraption as follows:
- a Raspberry Pi wakes up the main Gentoo PC at 3am twice a week.
- the main Gentoo PC has a cron script set to run just after the expected wake-up times
- the cron script syncs and then does an emerge --fetchonly to download the new sources
- if there are no interactive users, the script shuts the PC down
- the report gets emailed to me, so i can decide when to kick off the build.
The other PCs share the gentoo repo/distfiles via nfs. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed May 05, 2021 9:59 am Post subject: |
|
|
Juippisi,
Is there a way to use git mithout putting all the bits together for yourself?
Also, rsync does resume but I don't think git does. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed May 05, 2021 10:01 am Post subject: |
|
|
wjb,
That sounds a bit Heath Robinson. The Pi can do all that, why wake the PC? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
wjb l33t
Joined: 10 Jul 2005 Posts: 608 Location: Fife, Scotland
|
Posted: Wed May 05, 2021 8:49 pm Post subject: |
|
|
@NeddySeagoon
'Fraid none of the Pi's run Gentoo at this point in time. Waking up the main PC to do something it already knows how to do seemed the simplest option.
Bill |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Wed May 05, 2021 9:17 pm Post subject: |
|
|
wjb,
Awww ... shame. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 724 Location: /home
|
Posted: Thu May 06, 2021 5:37 am Post subject: |
|
|
NeddySeagoon wrote: |
Is there a way to use git mithout putting all the bits together for yourself?
|
You mean to simply emerge dev-vcs/git, and modifying your /etc/portage/repos.conf/gentoo.conf to
Code: |
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = git
# sync-uri = https://anongit.gentoo.org/git/repo/sync/gentoo.git
sync-uri = https://github.com/gentoo-mirror/gentoo
auto-sync = true
sync-depth = 1
|
Quote: | Also, rsync does resume but I don't think git does. |
Git syncing will be done in 10 seconds anyway. Doubt your rsync disconnects that often either. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Thu May 06, 2021 7:54 am Post subject: |
|
|
Juippisi,
Thank you. I'll try that.
You try internet using wifi to the open wifi on passing buses. :) _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2963 Location: Edge of marsh USA
|
Posted: Fri May 07, 2021 2:23 pm Post subject: |
|
|
Juippisi wrote: | NeddySeagoon wrote: |
Is there a way to use git mithout putting all the bits together for yourself?
|
You mean to simply emerge dev-vcs/git, and modifying your /etc/portage/repos.conf/gentoo.conf to
Code: |
[DEFAULT]
main-repo = gentoo
[gentoo]
location = /var/db/repos/gentoo
sync-type = git
# sync-uri = https://anongit.gentoo.org/git/repo/sync/gentoo.git
sync-uri = https://github.com/gentoo-mirror/gentoo
auto-sync = true
sync-depth = 1
|
Quote: | Also, rsync does resume but I don't think git does. |
Git syncing will be done in 10 seconds anyway. Doubt your rsync disconnects that often either. |
Sadly, that didn't work at all. I got the following error:
Code: | # emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
/usr/bin/git clone --depth 1 https://github.com/gentoo-mirror/gentoo .
fatal: destination path '.' already exists and is not an empty directory.
!!! git clone error in /usr/portage
Action: sync for repo: gentoo, returned code = 128 |
Do I have to clean our /usr/portage/ first? (Yes, this particular box still uses /usr/portage.) _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54237 Location: 56N 3W
|
Posted: Fri May 07, 2021 4:27 pm Post subject: |
|
|
figueroa,
Yes. git only works into a git repo, which /usr/portage isn't it it was populated by rsync.
You can move the existing /usr/portage out of the way to start with and delete it later. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|