Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

resuming a emerge --emptytree system

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
slowpoke
n00b
n00b
Posts: 7
Joined: Mon Sep 12, 2005 5:57 am

resuming a emerge --emptytree system

  • Quote

Post by slowpoke » Mon Sep 12, 2005 8:59 pm

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: Select all

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
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Mon Sep 12, 2005 9:17 pm

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

Code: Select all

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
Top
slowpoke
n00b
n00b
Posts: 7
Joined: Mon Sep 12, 2005 5:57 am

  • Quote

Post by slowpoke » Mon Sep 12, 2005 9:44 pm

Code: Select all

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
Top
dpetka2001
l33t
l33t
Posts: 804
Joined: Fri Mar 04, 2005 1:11 pm

  • Quote

Post by dpetka2001 » Mon Sep 12, 2005 9:52 pm

truc wrote:emerge -e world || until emerge --resume --skipfirst; do date; done
what does the "do date" do?? thanks...
Top
truc
Advocate
Advocate
User avatar
Posts: 3199
Joined: Mon Jul 25, 2005 9:24 am

  • Quote

Post by truc » Mon Sep 12, 2005 10:16 pm

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 ;)
Top
kimchi_sg
Advocate
Advocate
Posts: 3039
Joined: Fri Nov 26, 2004 11:11 am

  • Quote

Post by kimchi_sg » Tue Sep 13, 2005 2:48 am

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: Select all

    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: Select all

    mv ~/mtimedb /var/cache/edb
Hope this will help someone save lots of time. It did for me. ;)
Top
guero61
l33t
l33t
Posts: 811
Joined: Mon Oct 14, 2002 2:22 am
Location: Behind you

  • Quote

Post by guero61 » Fri Sep 30, 2005 9:09 pm

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.
Top
slycordinator
Advocate
Advocate
User avatar
Posts: 3065
Joined: Sat Jan 31, 2004 9:51 pm
Location: Korea

  • Quote

Post by slycordinator » Fri Sep 30, 2005 10:22 pm

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]."
Top
guero61
l33t
l33t
Posts: 811
Joined: Mon Oct 14, 2002 2:22 am
Location: Behind you

  • Quote

Post by guero61 » Sun Oct 09, 2005 3:49 pm

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.
Top
chidychi
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 82
Joined: Sat Dec 18, 2004 9:35 pm
Location: Canada

  • Quote

Post by chidychi » Fri Oct 28, 2005 3:21 pm

Kimchi_sg...........THANKS~!!!!
Top
Post Reply

10 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic