Migrating apps and config from LL 6.0 RC1 to 6.0 Final - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Software - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=5) +--- Forum: Installing Linux Lite (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=17) +--- Thread: Migrating apps and config from LL 6.0 RC1 to 6.0 Final (/showthread.php?tid=8317) |
Migrating apps and config from LL 6.0 RC1 to 6.0 Final - Ozpos - 06-01-2022 Hi All, Congratulations and a big thank you to all those involved with the Final Release. I have been using 6.0 RC1 for some time and I know there is not an upgrade path to Final. Could someone please tell me what is the best way to migrate my apps and config to a new install on a second drive in the same machine ? Many thanks in advance, oz. Re: Migrating apps and config from LL 6.0 RC1 to 6.0 Final - Moltke - 06-01-2022 (06-01-2022, 02:34 AM)Ozpos link Wrote: Hi All, Congratulations and a big thank you to all those involved with the Final Release. Hi, Not sure what you mean by migrating apps, but if you mean having then installed in your new install, then you could: 1. Write down their names, so you can install them in the new system. 2. Launch a terminal and run: Code: apt list --installed > my_apps.txt Code: egrep 'apt(-get)? +install' /var/log/apt/history.log As per your configuration files, they're located in $HOME/.config and $HOME/.local, most fo them at least, since some apps like Firefox save to their own directory, $HOME/.mozilla. You can check which apps have their own .dir by launching thunar and pressing Ctrl + h and you could save those directories to an external USB drive, and then just copy over to the new install. I use a script for that: Code: #!/bin/bash DIRLIST and DIRLIST1 = Add/remove whatever it is you need/don't need. TARGET = Replace /path/to/USD DRIVE/target_dir/dot_files with the actual path, i.e, /media/$USER/USB DRIVE/target_dir/dot_files where $USER is your username and you can actually use that variable in the script. Target_dir is the dir you save the configuration files to, for example, LL_BACKUP, and dot_files is another directory you're saving all the configurations stored in your $HOME/hidden_directories(which you can see in thunar by hitting Ctrl + h) TARGET1 = Replace /path/to/USD DRIVE/target_dir/ as you did above, i.e, /media/$USER/USB DRIVE/LL_BACKUP/, here, if you so decide, you can save your personal files such as music, downloads, videos, pictures and anything else you want/need to, just add the path in the script. The line Code: cp -r -v -u "${DIRLIST[@]}" "$TARGET" && cp -r -v -u "${DIRLIST1[@]}" "$TARGET1" Code: chmod +x copy.sh Code: ./copy.sh I use this as a way to back up my "dot_files", that is, those hidden files and directories in my /home dir I want to keep safe for reuse, and execute it at least twice a week. I have that in my ~/bin dir, so I simply run in a terminal copy and that's it. |