<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Linux - tagged #os_reinstall</title><link>https://kyselo.eu/linux</link><description>All about Linux kernel and operating systems that are based on it.[Random post]</description><item><title>Installed Ubuntu 22.04 LTS from scratch, to be released within a week (April 21, 2022)</title><link>https://kyselo.eu/linux/post/26315</link><guid isPermaLink="true">https://kyselo.eu/linux/post/26315</guid><description>&lt;p&gt;Ubuntu 22.04 LTS is soon to be released so I decided to do a complete reinstall. After booting into Linux Live USB first I've deleted everything from my old install except for the important stuff I needed to keep. Then I've reinstalled the base system using debootstrap and used a script I made to enter the chroot, I installed required packages there to make it boot and to be able to access network. Finally I've installed everything else I needed including graphical interface where a list of installed previously packages would help alot. Such list could be generated by running commands as shown in example below.&lt;/p&gt;&lt;p&gt;First generate package list files while in old system as shown below&lt;br&gt;&lt;/p&gt;&lt;pre&gt;$ apt-mark showmanual &amp;gt; manual_old.txt&lt;br&gt;$ dpkg-query -Wf '${Package}\n' &amp;gt; packages_old.txt&lt;br&gt;&lt;/pre&gt;&lt;p&gt;After reinstalling system repeat same in the new installation, only change output file names where needed.&lt;br&gt;&lt;/p&gt;&lt;pre&gt;$ apt-mark showmanual &amp;gt; manual.txt&lt;br&gt;$ dpkg-query -Wf '${Package}\n' &amp;gt; packages.txt&lt;br&gt;&lt;/pre&gt;&lt;p&gt;Finally compare package list files generated above, a list of missing packages would be stored in files as shown below&lt;br&gt;&lt;/p&gt;&lt;pre&gt;$ sort manual_old.txt &amp;gt; 1.txt; sort manual.txt &amp;gt; 2.txt; comm -23 1.txt 2.txt &amp;gt; missing_manual.txt&lt;br&gt;$ sort packages_old.txt &amp;gt; 1.txt; sort packages.txt &amp;gt; 2.txt; comm -23 1.txt 2.txt &amp;gt; missing.txt&lt;br&gt;&lt;/pre&gt;</description><pubDate>Wed, 13 Apr 2022 20:32:11 +0200</pubDate></item></channel></rss>
