{"id":37,"date":"2017-07-14T18:49:45","date_gmt":"2017-07-14T18:49:45","guid":{"rendered":"https:\/\/dev.gentoostudio.org\/?page_id=37"},"modified":"2023-07-21T13:53:41","modified_gmt":"2023-07-21T13:53:41","slug":"updating","status":"publish","type":"page","link":"https:\/\/dev.decibellinux.org\/?page_id=37","title":{"rendered":"Updating"},"content":{"rendered":"<p>To update decibel Linux, run the following in a terminal, as root:<\/p>\n<p><code>&gt; eix-sync<br \/>\n&gt; emerge -uDN --keep-going --with-bdeps=y --backtrack=250 @system @world<br \/>\n&gt; smart-live-rebuild<br \/>\n&gt; emerge --depclean<br \/>\n&gt; revdep-rebuild<\/code><\/p>\n<p>Depending on what gets updated and how many updates there are, this could take a while. Plan on running updates when you are not using your system. Do not go without updating for more than 30 days. decibel Linux is basically Gentoo, and Gentoo is a rolling-release system. This means it is meant to be updated frequently. However, please observe the Gentoo etiquette of not running sync more than once per day. I personally update all my Gentoo machines once a month, on the first of the month. You can find whatever schedule works for you.<\/p>\n<p>If there is an update to the kernel (rt-sources), run, as root:<\/p>\n<p><code>&gt; mount \/dev\/(boot_partition) \/boot (Your boot partition would most likely be \/dev\/sda1, \/dev\/nvme0n1p1, etc.)<br \/>\n&gt; ls \/boot (If you've mounted the correct partition, you'll see files like\u00a0<\/code><code><\/code><code>System.map-6.1.28-rt-rt10-x86_64, initramfs-6.1.28-rt-rt10-x86_64.img and vmlinuz-6.1.28-rt-rt10-x86_64)<br \/>\n&gt; eselect kernel list<\/code><br \/>\n<code>&gt; eselect kernel set x (Where x matches the number next to the new kernel version)<\/code><br \/>\n<code>&gt; genkernel --menuconfig all<\/code><\/p>\n<p>When you see the kernel menu from &#8211;menuconfig, change the following items. Note that you need to tap escape twice to go back to a previous menu:<\/p>\n<ul>\n<li>General setup &#8212;&gt;\n<ul>\n<li>Configure standard kernel features (expert users) ENABLE THIS ITEM (Scroll all the way down to find it)<\/li>\n<li>Preemption model (Voluntary kernel preemption (Desktop)) CHANGE TO Fully Preemptible Kernel (Real-Time)<\/li>\n<\/ul>\n<\/li>\n<li>Mitigations for speculative execution vulnerabilities DISABLE THIS ITEM (Note that this assumes you are using Gentoo Studio as a studio computer, and not a general purpose computer that&#8217;s always active online.)<\/li>\n<li>Power management and ACPI options &#8212;&gt;\n<ul>\n<li>CPU frequency scaling &#8212;&gt;\n<ul>\n<li>Default CPUFreq governor (schedutil) &#8212;&gt; CHANGE TO performance<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>If there are any modules you need that aren&#8217;t set by default, now is the time to find them. For example, if you have a Mediatek wireless chip, you may need to find the Mediatek wireless drivers and enable them. If nothing is not working, don&#8217;t worry about it.<\/p>\n<p>Escape out of menuconfig and genkernel will compile the kernel and modules. When that&#8217;s done, run:<\/p>\n<p><code>&gt; grub-mkconfig -o \/boot\/grub\/grub.cfg (that's a lowercase letter o.)<\/code><\/p>\n<p>Your new kernel will be used the next time you reboot.<\/p>\n<p>If you are low on\/out of space on the boot partition, you can manually delete older kernels and re-run grub-mkconfig. The three kernel files for each kernel version are initramfs-genkernel-x86_64-(version), kernel-genkernel-x86_64-(version) and System.map-genkernel-x86_64-(version). Pay attention and don&#8217;t delete the wrong kernel or you&#8217;ll have to re-run genkernel. As a general rule, keep at least the newest previous version to fall back on in case the latest version fails for any reason.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To update decibel Linux, run the following in a terminal, as root: &gt; eix-sync &gt; emerge -uDN &#8211;keep-going &#8211;with-bdeps=y &#8211;backtrack=250 @system @world &gt; smart-live-rebuild &gt; emerge &#8211;depclean &gt; revdep-rebuild Depending on what gets updated and how many updates there are, this could take a while. Plan on running updates when you are not using your&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"https:\/\/dev.decibellinux.org\/?page_id=37\">Read More<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-37","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/dev.decibellinux.org\/index.php?rest_route=\/wp\/v2\/pages\/37"}],"collection":[{"href":"https:\/\/dev.decibellinux.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dev.decibellinux.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dev.decibellinux.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dev.decibellinux.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=37"}],"version-history":[{"count":10,"href":"https:\/\/dev.decibellinux.org\/index.php?rest_route=\/wp\/v2\/pages\/37\/revisions"}],"predecessor-version":[{"id":687,"href":"https:\/\/dev.decibellinux.org\/index.php?rest_route=\/wp\/v2\/pages\/37\/revisions\/687"}],"wp:attachment":[{"href":"https:\/\/dev.decibellinux.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}