LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-15-2006, 03:20 PM   #1
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Rep: Reputation: 30
using emerge --update --ask world correctly? gentoo 2006.0


Hi,

I just updated my system (gentoo 2006.0), afterwards I ran into alot of problems. I got no clue about what happend, but one thing is for sure I wont do it again, so:

Which way is the correct way to update you system?

I used:
emerge --update --ask world to update my system. I looked in the manual and that should be it.

Afterwards I got some errors when trying to su into root. I also got the solutions to the problem (by doing a etc-update), but did i miss something in manual or?

Should I run the update as root or as a regular user? What are the steps for performing a regular update?

Hope you guys can help me out, I dont want another reinstall

Sincerely, Jorgen

Last edited by anti.corp; 04-15-2006 at 03:23 PM.
 
Old 04-15-2006, 05:51 PM   #2
onelung02
Member
 
Registered: Oct 2003
Location: utah
Distribution: Slackware 10.0, Gentoo 2006.0
Posts: 289

Rep: Reputation: 30
Maybe putting the --deep flag into that command?

From the gentoo handbook:

Updating your System

To keep your system in perfect shape (and not to mention install the latest security updates) you need to update your system regularly. Since Portage only checks the ebuilds in your Portage tree you first have to update your Portage tree. When your Portage tree is updated, you can update your system with emerge --update world. In the next example, we'll also use the --ask switch which will tell Portage to display the list of packages it wants to upgrade and ask you if you want to continue:

Code Listing 13: Updating your system

# emerge --update --ask world


Portage will then search for newer version of the applications you have installed. However, it will only verify the versions for the applications you have explicitly installed - not the dependencies. If you want to update every single package on your system, add the --deep argument:

Code Listing 14: Updating your entire system

# emerge --update --deep world


Since security updates also happen in packages you have not explicitly installed on your system (but that are pulled in as dependencies of other programs), it is recommended to run this command once in a while.

If you have altered any of your USE flags lately you might want to add --newuse as well. Portage will then verify if the change requires the installation of new packages or recompilation of existing ones:

Code Listing 15: Performing a full update

# emerge --update --deep --newuse world
 
Old 04-15-2006, 05:55 PM   #3
Emerson
Senior Member
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~
Posts: 3,177

Rep: Reputation: Disabled
I run following weekly:

emerge --sync
emerge -auvD world ## add N if use flags are changed
dispatch-conf ## when needed to update conf files
revdep-rebuild ## when I want to be sure all dependencies are met

Tip: Send away kids, wives and other pets when working with dispatch-conf or etc-update!
 
Old 04-15-2006, 06:42 PM   #4
comprookie2000
Gentoo Developer
 
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 54
etc-update can be hard because there may be alot of files to update.
I will keep the ones I know I edited, and look at any in /etc/conf.d
that needs to be updated. And like Emerson said revdep-rebuild can be
a lifesaver.
 
Old 04-16-2006, 03:03 AM   #5
anti.corp
Member
 
Registered: Nov 2005
Location: Copenhagen
Distribution: Debian E, Vectorlinux 5.1std, Arch, Gentoo 2006.0
Posts: 576

Original Poster
Rep: Reputation: 30
Thanks alot for your replys.

I will definately use dispatch-conf. Last time I did an update, afterwards I used etc-update with the '-5' options. That is NOT a good idea. It messed up alot of stuff.

I will try your suggestions, and offcourse write back what happens

Regards,
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
emerge -u world problem matrixon Linux - Software 4 03-06-2006 08:24 PM
gentoo + emerge --update world kurrupt Linux - General 8 06-05-2005 01:18 AM
emerge -u --deep world - blockers patientzero Linux - Distributions 2 02-21-2004 08:39 PM
after emerge -u --deep world what's next? patientzero Linux - General 0 02-20-2004 04:35 PM
emerge errors during emerge -u world busbarn Linux - Distributions 6 04-23-2003 09:37 AM


All times are GMT -5. The time now is 11:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration