View previous topic :: View next topic |
Author |
Message |
downat420 n00b

Joined: 09 Sep 2004 Posts: 72
|
Posted: Thu Jan 13, 2005 7:23 pm Post subject: emerge -u world questions -- NEW Ping problem |
|
|
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 |
|
 |
LordBug Tux's lil' helper

Joined: 25 Jan 2003 Posts: 88
|
Posted: Thu Jan 13, 2005 7:28 pm Post subject: |
|
|
"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 |
|
 |
Sven Vermeulen Retired Dev


Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Thu Jan 13, 2005 7:30 pm Post subject: |
|
|
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 |
|
 |
downat420 n00b

Joined: 09 Sep 2004 Posts: 72
|
Posted: Thu Jan 13, 2005 8:05 pm Post subject: |
|
|
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 |
|
 |
Sven Vermeulen Retired Dev


Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Thu Jan 13, 2005 8:09 pm Post subject: |
|
|
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 |
|
 |
downat420 n00b

Joined: 09 Sep 2004 Posts: 72
|
Posted: Thu Jan 13, 2005 8:21 pm Post subject: |
|
|
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 |
|
 |
Sven Vermeulen Retired Dev


Joined: 29 Aug 2002 Posts: 1345 Location: Mechelen, Belgium
|
Posted: Thu Jan 13, 2005 8:30 pm Post subject: |
|
|
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 |
|
 |
downat420 n00b

Joined: 09 Sep 2004 Posts: 72
|
Posted: Thu Jan 13, 2005 8:39 pm Post subject: |
|
|
Thanks a lot I got it going now. Later - zach |
|
Back to top |
|
 |
downat420 n00b

Joined: 09 Sep 2004 Posts: 72
|
Posted: Fri Jan 14, 2005 1:39 am Post subject: |
|
|
>>> 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 |
|
 |
downat420 n00b

Joined: 09 Sep 2004 Posts: 72
|
Posted: Fri Jan 14, 2005 2:55 am Post subject: |
|
|
its fixed, there wasnt a problem, i just had to keep trying. thanks again. - zach |
|
Back to top |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue Jul 05, 2005 8:39 am Post subject: |
|
|
Last post split to here. |
|
Back to top |
|
 |
nevynxxx Veteran

Joined: 12 Nov 2003 Posts: 1123 Location: Manchester - UK
|
Posted: Tue Jul 05, 2005 10:11 am Post subject: |
|
|
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 |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue Jul 05, 2005 11:17 am Post subject: |
|
|
There was no need to recall to RTM...  |
|
Back to top |
|
 |
|