{"id":159,"date":"2015-03-31T11:50:09","date_gmt":"2015-03-31T15:50:09","guid":{"rendered":"http:\/\/www.mgreene.org\/?p=159"},"modified":"2015-03-31T11:50:09","modified_gmt":"2015-03-31T15:50:09","slug":"the-dreaded-gentoo-emerge-e-world","status":"publish","type":"post","link":"https:\/\/www.mgreene.org\/?p=159","title":{"rendered":"The Dreaded Gentoo emerge -e @world"},"content":{"rendered":"<p>Not something I take lightly, nor is it something I look forward to doing. \u00a0In Gentoo the emerge &#8220;-e&#8221; means rebuild all packages installed on the system that portage has recorded. \u00a0A quick &#8216;equery -l &#8220;*&#8221;&#8216; will list all packages installed.<\/p>\n<p>So why do I do this every year or so? \u00a0Just to make sure I have not messed something up over time. \u00a0It is not something I look forward to because the time from start to finish is measured not in hours, but days. \u00a0For example, it took my i7 laptop (1,400+) packages with SSDs and plenty of ram 24+ hours to finish. \u00a0However, in the end I was confident the system was in good shape.<\/p>\n<p>So here are my tips at making this painful experience a little less painful.<\/p>\n<p>1. \u00a0I start by getting the system in the best shape possible:<\/p>\n<p><em>emerge -v &#8211;update &#8211;deep &#8211;newuse &#8211;with-bdeps=y &#8211;autounmask-write @world<\/em><\/p>\n<p>If needed:<\/p>\n<p><em>emerge @preserved-rebuild<\/em><\/p>\n<p>then:<\/p>\n<p><em>emerge &#8211;depclean<\/em><\/p>\n<p>If you are paranoid careful then do:<\/p>\n<p><em>python-updater<\/em><\/p>\n<p><em>perl-cleaner &#8211;all<\/em><\/p>\n<p>2. Next: \u00a0<em>cd \/var\/log\/portage\/elog<\/em><\/p>\n<p>You should find the file <em>summary.log. <\/em>\u00a0Rename it or delete it, whatever suites you. \u00a0Once the big emerge starts, all the messages will be logged to a new\u00a0<em>summary.log<\/em>\u00a0file.<\/p>\n<p>2. Execute: \u00a0\u00a0<em>emerge -pve &#8211;keep-going @world<\/em><\/p>\n<p>Note the &#8220;p&#8221; for pretend. \u00a0If everything is good then it should tell you that the Oracle Java packages need to be downloaded. \u00a0This is a good time to download them (I have Jre and jdk packages installed), move them to portage\/distfiles, and do not forget:<\/p>\n<p><em>chown portage:portage &lt;file&gt;\u00a0<\/em><\/p>\n<p>to the files. \u00a0Make a mental note of the total number of packages to build.<\/p>\n<p>3. Start by executing: \u00a0<em>emerge -ve &#8211;keep-going @world<\/em><\/p>\n<p>Why the keep-going? Because if everything is good after step 1 then any issues should be minor and this keeps from having to start the process from the beginning.<\/p>\n<p>Now all there is to do is wait and hope for the best which usually does not help. \u00a0As the emerge progresses with each new package the typical package number X of Y (total) being processed. \u00a0So if you start with a total of 1,400 packages and later notice emerge outputting 20 of 800 then there has been a problem which has been skipped (note: \u00a0the &#8211;keep-going option). \u00a0Go check the\u00a0<em>summary.log\u00a0<\/em>file to find what the problem might have been. \u00a0The best part is that you should be able to fix it while the emerge -e keeps churning along.<\/p>\n<p>Enjoy!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not something I take lightly, nor is it something I look forward to doing. \u00a0In Gentoo the emerge &#8220;-e&#8221; means rebuild all packages installed on the system that portage has [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[12,29],"tags":[57,69],"class_list":["post-159","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-portage","tag-gentoo","tag-portage"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":89,"url":"https:\/\/www.mgreene.org\/?p=89","url_meta":{"origin":159,"position":0},"title":"Gentoo Java emerge issue","author":"Mike","date":"February 8, 2015","format":false,"excerpt":"Once again portage tells me there is an Oracle Java update and I already know it will have to be downloaded manually and moved into \/usr\/portage\/distfiles. I do this, expecting everything to install without a hitch, but it does not. I get the dreaded \u201ctar: This does not look like\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":859,"url":"https:\/\/www.mgreene.org\/?p=859","url_meta":{"origin":159,"position":1},"title":"New System76 Darter Pro 10 with Gentoo","author":"Mike","date":"December 28, 2024","format":false,"excerpt":"I decided to get a System76 Darter Pro 10. It was to replace my Thinkbook 14s which was over 5 years old. The Thinkbook had been a replacement for an IdeaPad Y470p purchased early in 2012. Before the IdeaPad and Thinkbook, there were Thinkpads of various types. I had a\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2024\/12\/system76_DP_spec.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":563,"url":"https:\/\/www.mgreene.org\/?p=563","url_meta":{"origin":159,"position":2},"title":"Gnome 40","author":"Mike","date":"April 17, 2021","format":false,"excerpt":"EDIT 16 May 21: gnome-40.0.ebuild is in portage emerge --autounmask-write =gnome-40.0 and etc-update should make it available - good luck! Also - I am having good luck with wayland enabled - so far! The big gnome change from vertical to horizontal.","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-12-17-25.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-12-17-25.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-12-17-25.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.mgreene.org\/wp-content\/uploads\/2021\/04\/Screenshot-from-2021-04-17-12-17-25.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":187,"url":"https:\/\/www.mgreene.org\/?p=187","url_meta":{"origin":159,"position":3},"title":"Virtual Box 5.0 in Portage!","author":"Mike","date":"July 14, 2015","format":false,"excerpt":"I guess just in time for Windows 10??? emerge --unmerge -p virtualbox Same old catch if you want the BIOS compiled then Open Watcom is needed. \u00a0To be specific, I have had to use Open Watcom 1.9. \u00a0The emerge output if OW is not found: >>> Source prepared. >>> Configuring\u2026","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"vb5","src":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2015\/07\/vb5.png?resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2015\/07\/vb5.png?resize=350%2C200 1x, https:\/\/i0.wp.com\/wordpress.greenenet.net\/wp-content\/uploads\/2015\/07\/vb5.png?resize=525%2C300 1.5x"},"classes":[]},{"id":18,"url":"https:\/\/www.mgreene.org\/?p=18","url_meta":{"origin":159,"position":4},"title":"Gentoo python 3.x error &#8230;","author":"Mike","date":"May 1, 2011","format":false,"excerpt":"I received an error compiling docutils and it is caused by python 3.x:(File \"\/usr\/lib\/python3.1\/encodings\/ascii.py\", line 26, in decode ...)A work around:# mkdir -p \/etc\/portage\/env\/dev-python\/# echo \"export LC_CTYPE=en_US.utf8\" > \/etc\/portage\/env\/app-portage\/docutilsCompiled correctly afterwards.","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":371,"url":"https:\/\/www.mgreene.org\/?p=371","url_meta":{"origin":159,"position":5},"title":"Gpytage","author":"Mike","date":"September 17, 2020","format":false,"excerpt":"Updated to use Python 3.7 and Gtk3. I included an ebuild file for local repository use. https:\/\/gitlab.com\/mikeos2\/gpytage \u00a0","rel":"","context":"In &quot;Gentoo&quot;","block_context":{"text":"Gentoo","link":"https:\/\/www.mgreene.org\/?cat=12"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=159"}],"version-history":[{"count":0,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=\/wp\/v2\/posts\/159\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=159"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=159"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mgreene.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}