Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can I safely abort an emerge?
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
DrZettl
n00b
n00b


Joined: 16 Dec 2002
Posts: 10

PostPosted: Thu Dec 19, 2002 11:03 pm    Post subject: Can I safely abort an emerge? Reply with quote

I emerged 'net-analyzer/nmap'.
I didn't know about the USE flags. Part of nmap's USE is gnome. Gnome is dependant on XFree86. So basically my gentoo is compiling XFree86 right now so i can use nmap.

Now, can I Ctrl-C the emerge?
If so, will it clean up after itself?
If not, can I unemerge it after Ctrl-Cing it to clean it up?
Back to top
View user's profile Send private message
Scott_the_Great
n00b
n00b


Joined: 08 Aug 2002
Posts: 21

PostPosted: Thu Dec 19, 2002 11:10 pm    Post subject: Reply with quote

Short Answer: Sure, abort out anytime you like.

Longer Answer:
No, portage won't clean up after itself, so you're going to have to remove the files in /var/tmp/portage/{packagename}. (For XFree86, it should be: /var/tmp/portage/xfree, IIRC) Of course, if you're not strapped for disk space, you could just leave it there...

As long as you actually cancel the emerge before it finishes the first package, there's no "unmerging" to be done, because nothing has actually been merged into your "real" filesystem yet... (The joys of portage...)

Hope this helps...

---Scott
Back to top
View user's profile Send private message
DrZettl
n00b
n00b


Joined: 16 Dec 2002
Posts: 10

PostPosted: Thu Dec 19, 2002 11:15 pm    Post subject: Reply with quote

Yeah, that helps.

Does a normal emerge clean up after itself? Or does it also leave crap in the /var directory?

I might just leave it going... i plan to install gnome or kde sometime anyway. It's taken half the day already, might aswell leave it going.
Back to top
View user's profile Send private message
Scott_the_Great
n00b
n00b


Joined: 08 Aug 2002
Posts: 21

PostPosted: Thu Dec 19, 2002 11:28 pm    Post subject: Reply with quote

Normally, portage cleans up after it "merges" the compiled stuff into your filesystem.

Actually, what happens (basically) is this: (in case you're interested...)
1. Unpack program source into /var/tmp/portage/{package}/work
2. Compile (i.e. run configure and make)
3. Install (i.e. run "make install") into /var/tmp/portage/{package}/image
4. Merge from /var/tmp/portage/{package}/image into "real" filesystem
5. Remove /var/tmp/portage/{package}/work
6. Remove /var/tmp/portage/{package}/image

Beyond that, it will leave behind a couple files in /var/tmp/portage/{package}/temp, but those are usually very small. (You can safely remove those if you feel the need...)

I've used the "remains" in the work directory many times when an ebuild errors out (by changing to that directory and trying a "make") in order to figure out what exactly went wrong...

---Scott
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