{"id":331,"date":"2023-10-13T17:31:37","date_gmt":"2023-10-13T15:31:37","guid":{"rendered":"https:\/\/it4home.dk\/?p=331"},"modified":"2023-10-13T17:38:29","modified_gmt":"2023-10-13T15:38:29","slug":"how-to-upgrade-from-debian-bullseye-to-bookworm-on-raspberry-pi-without-reinstalling","status":"publish","type":"post","link":"https:\/\/it4home.dk\/index.php\/2023\/10\/13\/how-to-upgrade-from-debian-bullseye-to-bookworm-on-raspberry-pi-without-reinstalling\/","title":{"rendered":"How to Upgrade from Debian Bullseye to Bookworm on Raspberry Pi Without Reinstalling"},"content":{"rendered":"<div class=\"pdfprnt-buttons pdfprnt-buttons-post pdfprnt-top-right\"><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/331?print=pdf\" class=\"pdfprnt-button pdfprnt-button-pdf\" target=\"_blank\" ><\/a><a href=\"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/331?print=print\" class=\"pdfprnt-button pdfprnt-button-print\" target=\"_blank\" ><img decoding=\"async\" src=\"https:\/\/it4home.dk\/wp-content\/plugins\/pdf-print\/images\/print.png\" alt=\"image_print\" title=\"Print Content\" \/><\/a><\/div>\n<p class=\"wp-block-paragraph\">Upgrading your Raspberry Pi&#8217;s operating system doesn&#8217;t always require a complete reinstallation. If you&#8217;re running Debian Bullseye and want to move to the newer Bookworm version, you can do so with a few simple steps. Before proceeding, make sure to back up all important data.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 1: Backup Your Data<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">First and foremost, backup all your important files. This ensures that you can recover your data in case something goes wrong during the upgrade.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Step 2: Update Current System<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Open a terminal and run the following commands to update your existing Bullseye system:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt upgrade\nsudo apt dist-upgrade<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Change Repositories<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Edit the <code>\/etc\/apt\/sources.list<\/code> file and any files in <code>\/etc\/apt\/sources.list.d\/<\/code> to replace &#8216;bullseye&#8217; with &#8216;bookworm&#8217;. You can use the <code>nano<\/code> text editor for this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo nano \/etc\/apt\/sources.list<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 4: Update Package List<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">After updating the repositories, run the following command to fetch the new package list:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 5: Upgrade Packages<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Execute the following commands to perform the upgrade:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt upgrade\nsudo apt dist-upgrade<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 6: Clean Up<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Remove any obsolete packages to free up space:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt autoremove\nsudo apt clean<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 7: Reboot<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, reboot your Raspberry Pi to complete the upgrade:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo reboot<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">And there you have it! You&#8217;ve successfully upgraded from Debian Bullseye to Bookworm on your Raspberry Pi without a complete reinstallation. Always remember to read the specific release notes and upgrade instructions for your situation.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to use or modify this blog post as you see fit!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Upgrading your Raspberry Pi&#8217;s operating system doesn&#8217;t always require a complete reinstallation. If you&#8217;re running Debian Bullseye and want to move to the newer Bookworm version, you can do so with a few simple&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":333,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-331","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-raspberry"],"_links":{"self":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/comments?post=331"}],"version-history":[{"count":1,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/331\/revisions"}],"predecessor-version":[{"id":332,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/posts\/331\/revisions\/332"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media\/333"}],"wp:attachment":[{"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/media?parent=331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/categories?post=331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it4home.dk\/index.php\/wp-json\/wp\/v2\/tags?post=331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}