Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
question about "emerge -e world"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
makoffee
n00b
n00b


Joined: 05 Mar 2003
Posts: 22
Location: Minneapolis

PostPosted: Mon Apr 07, 2003 9:15 pm    Post subject: question about "emerge -e world" Reply with quote

If my computer craps out on an "emerge -e world", is there a way to resume it where it left off as aposed to rebuilding stuff twice?
_________________
-Makoffee
"Hey sexy mamma, wanna kill all human" - Bender B. Rodriguez
Back to top
View user's profile Send private message
Apolonius
Guru
Guru


Joined: 24 Jan 2003
Posts: 325

PostPosted: Mon Apr 07, 2003 9:26 pm    Post subject: Reply with quote

yes!!
you could use the not-yet documented option --resume of emerge :wink:
Back to top
View user's profile Send private message
plb
n00b
n00b


Joined: 19 Dec 2002
Posts: 34

PostPosted: Wed Apr 16, 2003 2:25 pm    Post subject: Reply with quote

I've read that in a few posta already but it doesnt seem to resume for alot of people. I get :
!!! Error: --resume is a invalid option

Thats 3 tries its crapped out on now :( best I have made it so far is 100 of 435. Anyone know why?
Back to top
View user's profile Send private message
mpsii
l33t
l33t


Joined: 11 Mar 2003
Posts: 658
Location: Jackson, TN

PostPosted: Wed Apr 16, 2003 3:04 pm    Post subject: Reply with quote

Have you updated portage?

Code:
emerge -up portage
emerge -u portage
Back to top
View user's profile Send private message
plb
n00b
n00b


Joined: 19 Dec 2002
Posts: 34

PostPosted: Thu Apr 17, 2003 4:16 am    Post subject: Reply with quote

mpsii wrote:
Have you updated portage?

Code:
emerge -up portage
emerge -u portage


Yes, still get invalid option. --resume
Back to top
View user's profile Send private message
markan18
n00b
n00b


Joined: 17 Apr 2003
Posts: 11
Location: wonderland

PostPosted: Thu Apr 17, 2003 6:13 am    Post subject: Resume building packages Reply with quote

Im looking for a --resume like option in portage for a while but with no luck. Instead, i wrote a little shell script that will resume the package build where it has been left. This script looks in /var/db/pkg for all ebuild
files. I think there is one ebuild file in /var/db/pkg for each package installed. Then, the script looks in /usr/portage/packages/All and checks
if a package has been built for all ebuild files in /var/db/pkg. If the package is missing, my script builds it.

Here is the code, feel free to send comments / bugs reports / improvements.

#!/bin/bash

# Builds missing packages on a gentoo system

declare -a liste
liste=`find /var/db/pkg/ -name "*.ebuild" | rev | cut -d / -f 1 | rev | sed s/.ebuild/.tbz2/`

cd /usr/portage/packages/All

for i in ${liste[*]}
do
if [ ! -f $i ] ; then

emerge -b `echo $i | sed s/-[0-9]./"\/"/ | cut -d / -f 1`
fi
done
_________________
emerge -u beer
Back to top
View user's profile Send private message
cybermans
Apprentice
Apprentice


Joined: 04 Apr 2003
Posts: 193

PostPosted: Thu Apr 17, 2003 3:31 pm    Post subject: Reply with quote

-resume ? a - too many (or am I not awake enough)
_________________
My weBlog
Linux compability list (hardware)
Back to top
View user's profile Send private message
plb
n00b
n00b


Joined: 19 Dec 2002
Posts: 34

PostPosted: Thu Apr 17, 2003 9:16 pm    Post subject: Reply with quote

cybermans wrote:
-resume ? a - too many (or am I not awake enough)



Dunno, I think I tried both, Seems alot of ppl have problems with resume with -e world. I think I read that it doesnt work at all with the emtytree option. I am on my 5th try now and up to about 150 of 400+. *crosses fingers* Maybe I wont have to resume and it finishes this time.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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