I am moving from a 2TB hard drive to a 4TB SSD. I have installed 22.04LTS on the new SSD. The complete list of non-SNAP packages I have is in /var/lib/dpkg/status
. How do I force apt
to install just the packages from the old /var/lib/dpkg/status
file that have not been installed with the new 22.04LTS ? I have saved the old /var/lib/dpkg/status
on the new drive in a non-systems directory owned by me. Obviously, I can do this manually one by one. If I do a diff
between the old and new /var/lib/dpkg/status
files, I presumably can find the files missing from the new /var/lib/dpkg/status
. Is there a way to automate the process (e.g., switches to apt or any other package installer to only add the packages that are not on the new system)?
0 Answers