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: 47

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: 9678
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30904
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: 4553
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: 595
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
Developer
Developer


Joined: 30 Sep 2005
Posts: 724
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: 47

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
Advocate
Advocate


Joined: 20 May 2004
Posts: 2576
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 Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
fturco
Veteran
Veteran


Joined: 08 Dec 2010
Posts: 1181
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: 54232
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
Watchman
Watchman


Joined: 23 May 2008
Posts: 6098
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.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9678
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
paluszak
Apprentice
Apprentice


Joined: 28 Jun 2004
Posts: 265
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: 1791

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
Guru
Guru


Joined: 01 Mar 2016
Posts: 497
Location: Germany/Berlin

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: 415
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
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2964
Location: Edge of marsh 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
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
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