Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerge -u world questions -- NEW Ping problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
downat420
n00b
n00b


Joined: 09 Sep 2004
Posts: 72

PostPosted: Thu Jan 13, 2005 7:23 pm    Post subject: emerge -u world questions -- NEW Ping problem Reply with quote

I have never used this command before. Will it update all packages installed on my system based on the portage? Is that how it works or is there more to it? What are the negaitve conseguences of this and will it effect any hosting that I am currently doing? I just want to get a bit of information on this. Thanks - zach

Last edited by downat420 on Fri Jan 14, 2005 2:31 am; edited 1 time in total
Back to top
View user's profile Send private message
LordBug
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jan 2003
Posts: 88

PostPosted: Thu Jan 13, 2005 7:28 pm    Post subject: Reply with quote

"emerge -u world" is a potentially dangerous thing to do. It will automatically update all non-system packages you've emerged. Honestly, this probably won't affect much.

A better thing to do is "emerge -uDav world". This will show you, verbosely, what it wants to update and ask if you want to do it. You can then decide if you want that, or add masks to tweak what does and doesn't update (and how).
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Thu Jan 13, 2005 7:30 pm    Post subject: Reply with quote

There's some documentation available on the subject.

In short:
- no, it will not update all packages installed, only those you have installed manually and it's immediate dependencies
- there are only positive consequences
- it might affect hosting if you mess up your configuration files
Back to top
View user's profile Send private message
downat420
n00b
n00b


Joined: 09 Sep 2004
Posts: 72

PostPosted: Thu Jan 13, 2005 8:05 pm    Post subject: Reply with quote

Ok, so would

emerge --update --deep --newuse world

be a better solution to updating my system, and doing so would not overwrite any configuration files would it? Thanks, I just want to stay up to date and it seems this would be the ost efficient way.
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Thu Jan 13, 2005 8:09 pm    Post subject: Reply with quote

Generally, updating your entire system is the combination of:
Code:

# emerge --sync
# emerge -uD --newuse world
# emerge depclean
# revdep-rebuild


The last two commands are optional and, if you didn't manage your system as documented, might give more problems. It's not broken, but it's very fault-sensitive :?

After this, you still need to update your configuration files. I personally recommend dispatch-conf although etc-update still is the "official" method. Be careful when you update your configuration files, don't just allow any change to happen.
Back to top
View user's profile Send private message
downat420
n00b
n00b


Joined: 09 Sep 2004
Posts: 72

PostPosted: Thu Jan 13, 2005 8:21 pm    Post subject: Reply with quote

hmm, i am getting an error when i run

emerge --uD --newuse world

it says that --newuse is an invalid option. anyone heard of this before?
Back to top
View user's profile Send private message
Sven Vermeulen
Retired Dev
Retired Dev


Joined: 29 Aug 2002
Posts: 1345
Location: Mechelen, Belgium

PostPosted: Thu Jan 13, 2005 8:30 pm    Post subject: Reply with quote

You haven't updated your portage tree yet.

First, run emerge --sync. Second, update portage and possibly your profile. The commands on how to do this are given at the end of the --sync command iirc.
Back to top
View user's profile Send private message
downat420
n00b
n00b


Joined: 09 Sep 2004
Posts: 72

PostPosted: Thu Jan 13, 2005 8:39 pm    Post subject: Reply with quote

Thanks a lot I got it going now. Later - zach
Back to top
View user's profile Send private message
downat420
n00b
n00b


Joined: 09 Sep 2004
Posts: 72

PostPosted: Fri Jan 14, 2005 1:39 am    Post subject: Reply with quote

>>> Updating Portage cache... ...done!


!!! Your current profile is deprecated and not supported anymore.
!!! Please upgrade to the following profile if possible:
default-linux/x86/2004.2

To upgrade do the following steps:
# emerge -n '>=sys-apps/portage-2.0.51'
# cd /etc/
# rm make.profile
# ln -s ../usr/portage/profiles/default-linux/x86/2004.3 make.profile




* An update to portage is available. It is _highly_ recommended
* that you update portage now, before any other packages are updated.
* Please do so and then update ALL of your configuration files.

so i do step 1
emerge -n '>=sys-apps/portage-2.0.51'
and I cant seem to connect to complete this step. I get a lot of "host not found".

It might have to do with the fact that I cannot ping a website. I am hosting a site and I can see that. I am confused, why can i host and not ping?
Back to top
View user's profile Send private message
downat420
n00b
n00b


Joined: 09 Sep 2004
Posts: 72

PostPosted: Fri Jan 14, 2005 2:55 am    Post subject: Reply with quote

its fixed, there wasnt a problem, i just had to keep trying. thanks again. - zach
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Jul 05, 2005 8:39 am    Post subject: Reply with quote

Last post split to here.
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Tue Jul 05, 2005 10:11 am    Post subject: Reply with quote

LordBug wrote:
"emerge -u world" is a potentially dangerous thing to do. It will automatically update all non-system packages you've emerged. Honestly, this probably won't affect much.

A better thing to do is "emerge -uDav world". This will show you, verbosely, what it wants to update and ask if you want to do it. You can then decide if you want that, or add masks to tweak what does and doesn't update (and how).


Just to clarify.

The Targets:
System = the things in the system file, things that are considered necessary to run.
World = everything you have installed specifically (i.e. everything in the world file) + system.

The options:
-p --pretend: Don't do the merge, just list what you would merge.
-a --ask: Like -p but interactive.
-v --verbose: Shows current active useflags as they apply to the package as star means this use flag has changed since last merge.
-u --update: Update to the latest version appilicable to your Keywords. i.e update the system.
-D --deep: look at the dependancies as well as the actual packages. This goes a lot deeper than emerge would normally do, so can pick up libraries etc that leaving it out would not. This only matters if you are bothered about getting the latest libraries etc.

man emerge is a god place to look.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Jul 05, 2005 11:17 am    Post subject: Reply with quote

There was no need to recall to RTM... :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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