Juozas's Dump

A growing collection of anime, photos and any other kind of weird content.
[Tumblr|​X/Twitter|​Pillowfort|​Loforo|​Mastodon] [Random post]

 tags  journal  gallery  RSS

14.4.2022 20:44:42 reposted from linux

Installed Ubuntu 22.04 LTS from scratch, to be released within a week (April 21, 2022)

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.

First generate package list files while in old system as shown below

$ apt-mark showmanual > manual_old.txt
$ dpkg-query -Wf '${Package}\n' > packages_old.txt

After reinstalling system repeat same in the new installation, only change output file names where needed.

$ apt-mark showmanual > manual.txt
$ dpkg-query -Wf '${Package}\n' > packages.txt

Finally compare package list files generated above, a list of missing packages would be stored in files as shown below

$ sort manual_old.txt > 1.txt; sort manual.txt > 2.txt; comm -23 1.txt 2.txt > missing_manual.txt
$ sort packages_old.txt > 1.txt; sort packages.txt > 2.txt; comm -23 1.txt 2.txt > missing.txt
login