Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
resuming a emerge --emptytree system
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
slowpoke
n00b
n00b


Joined: 12 Sep 2005
Posts: 7

PostPosted: Mon Sep 12, 2005 8:59 pm    Post subject: resuming a emerge --emptytree system Reply with quote

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
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Mon Sep 12, 2005 9:17 pm    Post subject: Reply with quote

since u emerge sthg else between the error and now, it's no more possible, else you 'd just have to
Code:
emerge --resume


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
View user's profile Send private message
slowpoke
n00b
n00b


Joined: 12 Sep 2005
Posts: 7

PostPosted: Mon Sep 12, 2005 9:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
dpetka2001
l33t
l33t


Joined: 04 Mar 2005
Posts: 804

PostPosted: Mon Sep 12, 2005 9:52 pm    Post subject: Reply with quote

truc wrote:
emerge -e world || until emerge --resume --skipfirst; do date; done
what does the "do date" do?? thanks...
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Mon Sep 12, 2005 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Tue Sep 13, 2005 2:48 am    Post subject: Reply with quote

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.

  1. Copy /var/cache/edb/mtimedb to a safe location. I prefer root's home directory for this.
    Code:
    cp /var/cache/edb/mtimedb ~

  2. Emerge whatever package is needed. For example, those compile failures caused by "missing automake" will require emerge automake
  3. 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. ;)
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Fri Sep 30, 2005 9:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
slycordinator
Advocate
Advocate


Joined: 31 Jan 2004
Posts: 3057
Location: Redmond, WA

PostPosted: Fri Sep 30, 2005 10:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
guero61
l33t
l33t


Joined: 14 Oct 2002
Posts: 811
Location: Behind you

PostPosted: Sun Oct 09, 2005 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
chidychi
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2004
Posts: 82
Location: Canada

PostPosted: Fri Oct 28, 2005 3:21 pm    Post subject: Reply with quote

Kimchi_sg...........THANKS~!!!!
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