On Mon, 26 Oct 2020 18:28:06 +0000 Chris Green cl@isbd.net allegedly wrote:
Whatever, I think from now on I will either use dd (as I said, very carefully!) or do a new installation and copy across /home and such. I nearly did the latter anyway, the only issue was that I'm not very sure what extras are installed on Maxine's system and I wanted to give her back a "system like it was before" only faster.
If you are unsure what is installed on a debian based system you can list the packages for later re-installation thusly:
On the source system:
dpkg --get-selections | grep -v deinstall > packages.txt
This lists all active packages, except those deinstalled, and sticks the list in a text file.
Now copy that file to the target system, ensure that the target system’s “sources.list” file matches that on the source, and then run:
dpkg –clear-selections (that is minus minus clear-selections) dpkg –set-selections < packages.txt apt-get dselect-upgrade
This will download and install all the packages necessary to get the target system matching the original source.
Mick
--------------------------------------------------------------------- Mick Morgan gpg fingerprint: FC23 3338 F664 5E66 876B 72C0 0A1F E60B 5BAD D312 https://baldric.net/about-trivia ---------------------------------------------------------------------