Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resuming interrupted 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
akrmn24
n00b
n00b


Joined: 24 Nov 2024
Posts: 12

PostPosted: Sun Jan 12, 2025 6:42 pm    Post subject: Resuming interrupted emerge Reply with quote

For example, I just did emerge --update --newuse @world

Pressed CTRL+C to stop it midway

Then when I restarted it, it started emerging less packages than before. If I do emerge @world (without the flags), it showed me other packages to emerge, but showed a bunch of packages to rebuild. I don't want to rebuild all those packages. I just want to resume what was emerging before I interrupted it.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 2600

PostPosted: Sun Jan 12, 2025 7:14 pm    Post subject: Reply with quote

emerge -- resume will resume the previous emerge plan. Note that it'll not resume the package it was emerging, but rather restart it. It only resumes the emerge plan, but not terminated ebuilds. It'll restart them. If you want to resume them, look up the keepwork FEATURE. I think you can find it in make.conf man page. However this doesn't clean the temp directories, so you must do it manually and it's also not guaranteed to always work. Sometimes ebuilds cannot be resumed or will result in another error.

FEATURES="keepwork" emerge --resume

will try to resume the terminated ebuilds once. Again, don't forget to cleanup the temp directories.

One way I sometimes use the above command is to wait for the resumed ebuild to finish, then terminate emerge again and run emerge --resume only, without the FEATURES variable set. This way I need to cleanup for that package only and not bother with others. Of course from time to time PORTAGE_TMPDIR needs cleanup as temp directories for failed builds accumulate.

Best Regards,
Georgi
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