-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore packages #13
Comments
I don't understand, add package list to what? Please be more clear. |
Sorry, pkglist.out (the list of installed packages). I see on line 157 you accept the filename for the restore file without the package list and corresponding command. |
Will you please quote the particular code snippet you referring to? And please elaborate the issue. |
function list_packages () { Grep 'histfile' and create two arraysone of installed pkgs and one of removed pkgswhile IFS= read -r line; do For every removed pkg, if it's also in installed pkgsremove it from installed pkgsfor pkg in "${removed[@]}";do Remove any duplicatesAnd put them in TERBR_PKGSdeclare -A tmp_array for i in "${installed[@]}"; do echo -e "${G} Saving installed packages to '${TERBR_PKGS}'\n" printf '%s\n' "${!tmp_array[@]}" > $TERBR_PKGS if [ -n "${TERBR_VERBOSE}" ];then With that, you create the installer package list. In the restore process, it is never used on its own or during the file restoration. |
Script don't restore packages because many packages may need configuration during installation. There can be many different test cases. So, it is better to just save installed packages in a list. |
I feel adding it as an option would be valuable. I used apt-get install -y $(awk '{print $1}' "/storage/emulated/0/pkgliet.out" ) and it allowed approving or examining differences. |
I am trying to restore the packages. I see how on line 157 get the restore file. Would you be able to add the package list as well?
The text was updated successfully, but these errors were encountered: