Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How often to emerge world?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
pinion
n00b
n00b


Joined: 11 Feb 2006
Posts: 35

PostPosted: Tue Jul 10, 2018 5:56 am    Post subject: How often to emerge world? Reply with quote

Over the years, I commonly run into the joy of not updating my system often enough. How often do you emerge -avuDN world, and what strategies do you use to aid with that. For instance, I am thinking I should start monthly, and I already have
Code:
sys-kernel/gentoo-sources -symlink
in package.use to keep from regularly breaking rebuilds of modules before I switch to the next kernel.

What advice do you have?

Thanks
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6769
Location: almost Mile High in the USA

PostPosted: Tue Jul 10, 2018 6:16 am    Post subject: Reply with quote

"often enough" ...

Definitely should emerge --sync much more often than once a month.

That way, glsa-check can help you identify packages that have security problems. You should also check for pending updates, so you can plan ahead how much pain to expect to actually do the update.

This last cycle I think I let the update cycle go too long, but it wasn't too bad to fix...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 19662
Location: here

PostPosted: Tue Jul 10, 2018 6:20 am    Post subject: Reply with quote

Usually I sync once or twice a week, keeping the GLSA under control
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 3493
Location: Germany

PostPosted: Tue Jul 10, 2018 6:33 am    Post subject: Reply with quote

I --sync and update my desktop system every day.
That give my of the small updates time for better look in the details.
(this works for me on the last ~12 Years fine) :)
Back to top
View user's profile Send private message
Maxxx
Guru
Guru


Joined: 12 Jan 2016
Posts: 503
Location: Italia

PostPosted: Tue Jul 10, 2018 6:45 am    Post subject: Reply with quote

once a week
Back to top
View user's profile Send private message
Juippisi
Apprentice
Apprentice


Joined: 30 Sep 2005
Posts: 282
Location: /home

PostPosted: Tue Jul 10, 2018 7:21 am    Post subject: Reply with quote

~2-4 times a month yeah. Im thinking of moving back from git to rsync because of how unoften I sync. I just wait for upgrades on packages that I use, and sync when they are updated. Like firefox.
Back to top
View user's profile Send private message
pinion
n00b
n00b


Joined: 11 Feb 2006
Posts: 35

PostPosted: Tue Jul 10, 2018 8:03 am    Post subject: Reply with quote

Thanks for everyone's replies. I sync daily, but as far as diving into the emerge -avuDN world, how often do you guys do that? I tend to wait 3-6 months on most of the big packages, which is always too long.
Back to top
View user's profile Send private message
Erdie
Veteran
Veteran


Joined: 20 May 2004
Posts: 1986
Location: Heidelberg - Germany

PostPosted: Tue Jul 10, 2018 8:32 am    Post subject: Reply with quote

I sync and update about 2 or 3 times a week. It does not take a long time if you sync frequently except firefox / libreoffice or similar updates.
_________________
Desktop AMD FX-4300 12GB RAM, Asus GF GTX 650. Sound RME Multiface + PCI + Cardbus, 2x RME Quadmic, 1x Behringer ADA8000 + ganz viele Modellflugzeuge, ein Tandem, Rennrad und DFXL ;)
2x IBM Thinkpad T60
Zotag Mag Mini Atom
Raspberry Pi 1 + 2 + Zero W
Back to top
View user's profile Send private message
fturco
Guru
Guru


Joined: 08 Dec 2010
Posts: 548
Location: Italy

PostPosted: Tue Jul 10, 2018 11:21 am    Post subject: Reply with quote

I update Gentoo on my main computer every week.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41417
Location: 56N 3W

PostPosted: Tue Jul 10, 2018 11:38 am    Post subject: Reply with quote

pinion,

It all depends on what changes. I have several installs to maintain, so I do the main one weekly.
It still has all the packages and distfiles since it was new in 2009. As its ~amd64, a good selection of older packages is important.
Every now and again something breaks and I have to revert to older versions. Binary packages make that fairly painless.

When something key, like gcc, portage, security or something in a news item catches my eye, I do an exceptional update on all the rest.
Everything else is routinely once a month.

As I use distcc on some of the lower power systems, I have to take care to have the same versions of gcc everywhere.

I have updated systems several years old. Its a wonderful learning experience.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Anon-E-moose
Advocate
Advocate


Joined: 23 May 2008
Posts: 3384
Location: Dallas area

PostPosted: Tue Jul 10, 2018 2:25 pm    Post subject: Reply with quote

daily cron
I do an rsync of the filesystem to my backup (raid mirrored) drive that also does a tar backup of the /usr/portage directory.
then
emerge --sync

---

I usually run "emerge -pvuD @world" when I get up and log in, just to see what's going on, and then may or may not run a real emerge.

I usually run this "emerge -pvuDN @world" every week or two along with depclean with pretend flag.
_________________
Asus m5a99fx, FX 8320 - nouveau & radeon, oss4
Acer laptop E5-575, i3-7100u - i965, alsa
---both---
4.14.62 kernel, profile 17.0 (no-pie) amd64-no-multilib
gcc 4.9.4 & 7.3.0, eudev, openrc, openbox, palemoon
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 6769
Location: almost Mile High in the USA

PostPosted: Tue Jul 10, 2018 3:32 pm    Post subject: Reply with quote

If you don't want to emerge update world every day (which is most of us...), at least sync every few days to a week or so. I think 2 weeks is a bit long, and a month is way too long.

Then with

Code:
# glsa-check -l affected


you can get a quick list of packages that have Gentoo Linux Security Advisories posted against them - and at least update these so you'll be patched.

On the other hand, if you're air gapped (or the power switch is always gapped), then it may not be as critical to update as often. But expect to see lots of weird trouble trying to get up to date when that time comes to do it.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 219
Location: Warsaw, Poland

PostPosted: Tue Jul 10, 2018 3:50 pm    Post subject: Reply with quote

I sync portage on my server every day with a cron script that also emails me results of emerge -uDNvp @world. Not so often with some VMs and desktop systems, but usually at least once a month.
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1642

PostPosted: Tue Jul 10, 2018 4:01 pm    Post subject: Reply with quote

I know for me, I usually update once a week to on the rare time every other week. I know for me, I rarely use the --new-use or changed-use, but my USE flags generally don't get changed (my last interval on USE flag change was over 6 months, for a minor thing at that).

The general rule of thumb to always keep in mind, is that the longer stretch between updates, more packages need updated (thus higher chance for conflicts and issues). The other part to remember, is unstable branch changes more frequently than stable branch. Personally, I think weekly updates (sync should be done before you install any package in that day's span) tends to be a sweet spot, in that it isn't too frequent to be a hassle, while keeping the number of packages needed to update down to minimize conflicts.

Beyond that, the other big factor that tends to help is for when the system stabilizes down; as in you are not adding/removing packages or changing USE flags. As once it is where you have it where you want it, and leave it there, you can gradually trim down un-needed packages (reducing possible issues later on).

A good example would be like my system, that settled down to where I want it over 2 years ago. Any conflict I run into is uncommon now, and I gradually trim excess off once every few months. I recently trimmed qt5 off my system as it was unnecessary, with a side bonus of getting rid of a common issue area. In a couple months, I may remove another package that isn't needed, further trimming the excess fat from the system while keeping the purpose/usage usable.
Back to top
View user's profile Send private message
LuxJux
Apprentice
Apprentice


Joined: 01 Mar 2016
Posts: 290

PostPosted: Tue Jul 17, 2018 11:40 pm    Post subject: Reply with quote

For me, just a beginner I update every day.
But doing monthly saving with <some Program> even Win whole of all BS partitions.
Just for me, it is a good goal for staying close to updates.

Have heard it is not good nettiquette. But when recopying, before --sync, always /distfile is deleting.

So many failures while trying to configure/update. I need my backups.
Back to top
View user's profile Send private message
leifbk
Guru
Guru


Joined: 05 Jan 2004
Posts: 355
Location: Bærum, Norway

PostPosted: Fri Jul 20, 2018 10:04 am    Post subject: Reply with quote

This is my daily morning coffee routine:

Code:
emerge --sync
emerge -avuDN --with-bdeps=y --changed-deps @world
emerge --ask --depclean --exclude sys-kernel/gentoo-sources --exclude dev-db/postgresql
eclean -d distfiles

_________________
Grumpy old man
Back to top
View user's profile Send private message
figueroa
Guru
Guru


Joined: 14 Aug 2005
Posts: 354
Location: GA-USA

PostPosted: Fri Jul 20, 2018 4:05 pm    Post subject: Reply with quote

The following script runs from crontab at 6:30 every morning:
Code:
emerge --sync
echo "emerge -uDN world -p" > /home/[username]/portage/emergeauto.txt
emerge -uDN world -p >> /home/[username]/portage/emergeauto.txt 2>&1

Then the file emergeauto.txt is sent to my email at 6:55.

Usually, I then update as part of my morning routine.
_________________
Andy Figueroa
andy@andyfigueroa.net Working with Unix since 1983.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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