thank you, but tbh, I don't understand a single line.Why not just save your configurations, install bookworm, install the apps, the copy configs to the new system? Not counting install time, you are looking at maybe 30 minutes tops.Code:
Debian backupsProgramsA quick way of backing up a list of programs is to run this:dpkg --get-selections > ~/Package.listsudo cp -R /etc/apt/sources.list* ~/sudo apt-key exportall > ~/Repo.keysIt will back them up in a format that dpkg can read* for after your reinstall, like this:New way:dpkg --get-selections > pkgs.listCopy file to new installationdpkg --set-selections < pkgs.listapt-get dselect-upgradeOld way:sudo apt-key add ~/Repo.keyssudo cp -R ~/sources.list* /etc/apt/sudo apt-get updatesudo apt-get install dselectsudo dselect updatesudo dpkg --set-selections < ~/Package.listsudo apt-get dselect-upgrade -y* You may have to update dpkg's list of available packages or it will just ignore your selections (see this debian bug for more info). You should do this before sudo dpkg --set-selections < ~/Package.list, like this:apt-cache dumpavail > ~/temp_availsudo dpkg --merge-avail ~/temp_availrm ~/temp_availSettings and Personal DataBefore you reinstall, you should probably back up the settings from some of your programs, this can easily be done by grabbing folders from /etc and all the content from your user directory (not just the stuff you can see in nautilus!):rsync --progress /home/`whoami` /path/to/user/profile/backup/hereAfter you reinstall, you can restore it with:rsync --progress /path/to/user/profile/backup/here /home/`whoami`So all together as a pseudo-bash script.This assumes there is only one user on the machine (remove /'whoami' otherwise) and that you used the same username on both installs (modify dest. of rsync otherwise).dpkg --get-selections > ~/Package.listsudo cp -R /etc/apt/sources.list* ~/sudo apt-key exportall > ~/Repo.keysrsync --progress /home/`whoami` /path/to/user/profile/backup/here## Reinstall nowrsync --progress /path/to/user/profile/backup/here /home/`whoami`sudo apt-key add ~/Repo.keyssudo cp -R ~/sources.list* /etc/apt/sudo apt-get updatesudo apt-get install dselectsudo dpkg --set-selections < ~/Package.listsudo dselect
E.g., I have installed wiringPi with 2 dozens of device driver libs, Qt5 designer with a dozen modules plus extra libs and personal settings/preferences, same about openCV plus lots of math libs (matrices, linear systems of equations, GPS geo localization) - even if I'll forget about the entire yet unmentioned additional rest:
can I really reinstall all of them just with your bash file after having created a new SD with Bullseye or Debian12 or whatever, without having to download and reconfigure anything of them all like I finally had them created and built up for Stretch in a whole?
Statistics: Posted by dsyleixa123 — Sat Oct 19, 2024 11:47 am