Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Gentoo Linux Help > Keep you system updated

Forgot Password?
 Gentoo Linux Help   For help and discussion related to Gentoo Linux

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 09-26-2009   #1 (permalink)
Just Joined!
 
Join Date: Jan 2009
Posts: 2
Keep you system updated

What are your procedures for updating your Gentoo system without dependency problems.
I usually do:
emerge --sync
emerge --update world

For me it happens from time to time that I need to unmerge packages and reemerge them to go through with the world-emerge. Sometimes I remember to use revdep-rebuild, python-updater and emerge --depclean but its not a part of my "update-process". What is the best process to keep the system updated? Does the order of doing things matter?
Is this example a good process:

emege --sync
emerge --update world
emerge --depclean
python-updater
revdep-rebuild
emerge --update world

How do you do it?
jortax is offline  


Reply With Quote
Old 09-26-2009   #2 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
Welcome to the forums jortax

I can't claim to be an expert, my approach is usually ...
Code:
emerge --sync
emerge -avufDN world
emerge -avuDN world
I do this fairly regularly and then less regularly I will do
Code:
emerge -avuDN world
(usually as part of above)
Code:
emerge --depclean
revdep-rebuild
I prefetch files so I know everything should be available for the update and is consistent.

I used to dread running
Code:
emerge -uDN world
until I got a set of USE flags that worked for me.

Ed: I think it is worth running with -av options so you know what is going to be updated .
It will be interesting to see what more experienced users do

Last edited by Jonathan183; 09-26-2009 at 03:52 PM..
Jonathan183 is offline   Reply With Quote
Old 09-26-2009   #3 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,104
I usually only do
Code:
emerge --sync
emerge -pvuDN world && emerge -pvuDN system
emerge -vuDN world && emerge -vuDN system
revdep-rebuild
Every once in a while I'll run
Code:
emerge -depclean
revdep-rebuild
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 09-26-2009   #4 (permalink)
Linux User
 
gruven's Avatar
 
Join Date: Dec 2004
Location: Arkansas
Posts: 439
Send a message via ICQ to gruven Send a message via AIM to gruven Send a message via MSN to gruven Send a message via Yahoo to gruven Send a message via Skype™ to gruven
I have emerge -uDN world set in a crontab to run daily, and every 2 - 3 days I will run an
Code:
emerge -avuDN world && emerge -av --depclean && revdep-rebuild
I am on a quad so it really doesn't take long to update.
__________________

Linux User #376741
Preferred Linux Distro: Funtoo
Screenshots
Remember, Ubuntu is A Linux distribution, not THE Linux distribution.

There is no need to login to the GUI as root!
gruven is offline   Reply With Quote
Old 09-27-2009   #5 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
Quote:
Originally Posted by MikeTbob View Post
Code:
emerge -vuDN world && emerge -vuDN system
Hi MikeTbob ... why do you do both world & system updates?
Jonathan183 is offline   Reply With Quote
Old 09-27-2009   #6 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,104
Quote:
Originally Posted by Jonathan183 View Post
Hi MikeTbob ... why do you do both world & system updates?
I read this somewhere,,world is different from system and for some reason I still do it every now and then. Here is a link, that kind of explains it....but it's not the link I read awhile back, I can't seem to find that one.

[gentoo-user] Emerge -u system or World ?
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 09-28-2009   #7 (permalink)
Linux Guru
 
Join Date: Oct 2007
Posts: 2,410
How can
Code:
emerge -uDN world
fail to update packages which
Code:
emerge -uDN system
will ... unless you manually change world definition?
I can understand updating system without world update can leave packages not being updated but how does this work the other way round? ... is this related to stage1/stage2 tarballs?

... if there is a good reason for running both I'll start doing it
Jonathan183 is offline   Reply With Quote
Old 09-28-2009   #8 (permalink)
Trusted Penguin
 
MikeTbob's Avatar
 
Join Date: Apr 2006
Location: Panther City, Tx
Posts: 4,104
I'm not sure of the answer here. Maybe someone else could pitch in, I may be doing it for nothing....I seem to remember it did update something a long time ago...but maybe I just ran emerge -u system first. Does emerge -avuDN system want to update any packages on your system?
__________________
I do not respond to private messages asking for help.
Please keep it on the forums only.
MikeTbob is offline   Reply With Quote
Old 09-28-2009   #9 (permalink)
Just Joined!
 
Join Date: Sep 2009
Posts: 1
Quote:
Originally Posted by MikeTbob View Post
I'm not sure of the answer here. Maybe someone else could pitch in, I may be doing it for nothing....I seem to remember it did update something a long time ago...but maybe I just ran emerge -u system first. Does emerge -avuDN system want to update any packages on your system?
Glad to hear you're using this: I plan to keep it much more aggressively up-to-date than has been the case in the past, but don't hesitate to let me know if you find errors or need clarifications.
nysmisqui is offline   Reply With Quote
Old 09-28-2009   #10 (permalink)
Just Joined!
 
ursusca's Avatar
 
Join Date: Dec 2008
Posts: 71
Send a message via ICQ to ursusca
I usually do

emerge --sync && emerge --update --ask world && emerge --update --deep world


If I have altered any of USE flags:
emerge --update --deep --newuse world
emerge --depclean
revdep-rebuild

After transition to new python:
python-updater
ursusca is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:49 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2