View previous topic :: View next topic |
Author |
Message |
slowpoke n00b
Joined: 12 Sep 2005 Posts: 7
|
Posted: Mon Sep 12, 2005 8:59 pm Post subject: resuming a emerge --emptytree system |
|
|
I'm doing a new, first time, install of gentoo, and (after getting around some downloading problems) I was able to prefetch all the packages and ran
Code: | emerge --emptytree system |
I ran into an error that said i needed automake installed, and it stopped. This was a couple hours into the compile. I then guessed and ran emerge automake, and it seems to have installed the package. I'm wondering if there is a way to contiunue the compilations where I left off with the emerge --emptytree system. I would really liketo avoid going through allt he compiling that it's already done |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Mon Sep 12, 2005 9:17 pm Post subject: |
|
|
since u emerge sthg else between the error and now, it's no more possible, else you 'd just have to
Also for emerge --emptytree world if you need to do it one day, you can do this emerge -e world || until emerge --resume --skipfirst; do date; done |
|
Back to top |
|
|
slowpoke n00b
Joined: 12 Sep 2005 Posts: 7
|
Posted: Mon Sep 12, 2005 9:44 pm Post subject: |
|
|
Code: | emerge -e world || until emerge --resume --skipfirst; do date; done |
I'm a new to this, so does this try to do an emerge -e, and if it fails it skips the first one and resumes?
Also, is there a way of knowing which packages did not get installed if I do do that?
Thanks for the help |
|
Back to top |
|
|
dpetka2001 l33t
Joined: 04 Mar 2005 Posts: 804
|
Posted: Mon Sep 12, 2005 9:52 pm Post subject: |
|
|
truc wrote: | emerge -e world || until emerge --resume --skipfirst; do date; done | what does the "do date" do?? thanks... |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Mon Sep 12, 2005 10:16 pm Post subject: |
|
|
Quote: | do an emerge -e, and if it fails it skips the first one and resumes |
yep (hu, the first one is the one which just failed)
I had the same question a few days ago;
hihi, all the links given, and given by other links were really interesting. Hope u'lfind what you want |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2966
|
Posted: Tue Sep 13, 2005 2:48 am Post subject: |
|
|
OK, since the OP seems to have emerged autoconf right after the emerge -e system failure, this will not be helpful to him. But in case anyone else with similar compile failures looks here and they have not emerged autoconf yet, this advice will save them a lot of time.
- Copy /var/cache/edb/mtimedb to a safe location. I prefer root's home directory for this.
Code: | cp /var/cache/edb/mtimedb ~ |
Emerge whatever package is needed. For example, those compile failures caused by "missing automake" will require emerge automake
If the emerge missing-package-name completes safely without errors, move the backup copy of mtimedb back into position and overwrite the mtimedb that is already there. Code: | mv ~/mtimedb /var/cache/edb |
Hope this will help someone save lots of time. It did for me. |
|
Back to top |
|
|
guero61 l33t
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Fri Sep 30, 2005 9:09 pm Post subject: |
|
|
kimchi_sg wrote: |
Hope this will help someone save lots of time. It did for me. |
I just discovered this trick on my own (by reading the 'emerge' source code), and I must say - this is a HUGE help. I hate getting into the middle of a huge long emerge (like emerge -eD world) only to have it fail requiring the installation of another package. Any attempt to install that required package would whack my original attempt, forcing me all the way back to the beginning & wasting a lot of time.
MODERATORS: This trick deserves to be in the hall of fame - best little life saver I've found yet. |
|
Back to top |
|
|
slycordinator Advocate
Joined: 31 Jan 2004 Posts: 3065 Location: Korea
|
Posted: Fri Sep 30, 2005 10:22 pm Post subject: |
|
|
dpetka2001 wrote: | truc wrote: | emerge -e world || until emerge --resume --skipfirst; do date; done | what does the "do date" do?? thanks... |
date displays the date.
The "do" is part of the "until" syntax.
until [condition] ; do [commands] ; done
This means "until [condition] is met do [commands]." |
|
Back to top |
|
|
guero61 l33t
Joined: 14 Oct 2002 Posts: 811 Location: Behind you
|
Posted: Sun Oct 09, 2005 3:49 pm Post subject: |
|
|
I tell you - the Gentoo devs may hate me for it, but I am slinging mtimedb files left and right! If I had any bandwidth to pick up python & portage right now, I'd be writing an app to preserve snapshots. Seriously - I've never been more excited about a portage hack since qpkg. |
|
Back to top |
|
|
chidychi Tux's lil' helper
Joined: 18 Dec 2004 Posts: 82 Location: Canada
|
Posted: Fri Oct 28, 2005 3:21 pm Post subject: |
|
|
Kimchi_sg...........THANKS~!!!! |
|
Back to top |
|
|
|