From 28f56acffb07c56a9d2bf05103350d13ca0a92e2 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Tue, 6 Sep 2022 00:50:06 -0700 Subject: [PATCH] :memo: Updated makelist scripts for better installation --- scripts/makelist | 9 ++++++--- scripts/makelist_laptop | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/scripts/makelist b/scripts/makelist index 952734ab..8486d9c8 100755 --- a/scripts/makelist +++ b/scripts/makelist @@ -3,9 +3,12 @@ # makelist creates a list of current packages, removes the second field (version numbers), and replaces all the new lines with spaces and then writes it to a file called my_packages.txt, you can more or less copy and paste this list into pacman -S to re-download all your files, useful if you need to start from scratch. Needs a script eventually to query aur_packages directory for packages downloaded directly from AUR and not Artix repositories. pacman -Q | awk '!($2="")' | tr '\n' ' ' > my_pacman_packages.txt -npm list -g > my_npm_packages.txt -pip list > my_pip_packages.txt -go list ... > my_go_packages.txt + +find /usr/lib/node_modules -maxdepth 1 | sed -r 's/^\/usr\/lib\/node_modules\///g' | tr '\n' ' ' > my_npm_packages.txt + +pip list | awk '{ print $1 }' | tr '\n' ' ' > my_pip_packages.txt + +go list std | tr '\n' ' ' > my_go_packages.txt find /usr/bin | sed -r 's/^\/usr\/bin\///g' | tr '\n' ' ' > my_binaries.txt diff --git a/scripts/makelist_laptop b/scripts/makelist_laptop index ec8b6c9c..930b0382 100755 --- a/scripts/makelist_laptop +++ b/scripts/makelist_laptop @@ -3,9 +3,12 @@ # makelist creates a list of current packages, removes the second field (version numbers), and replaces all the new lines with spaces and then writes it to a file called my_packages.txt, you can more or less copy and paste this list into pacman -S to re-download all your files, useful if you need to start from scratch. Needs a script eventually to query aur_packages directory for packages downloaded directly from AUR and not Artix repositories. pacman -Q | awk '!($2="")' | tr '\n' ' ' >> my_pacman_packages_laptop.txt -npm list -g > my_npm_packages_laptop.txt -pip list > my_pip_packages_laptop.txt -go list ... > my_go_packages_laptop.txt + +find /usr/lib/node_modules -maxdepth 1 | sed -r 's/^\/usr\/lib\/node_modules\///g' | tr '\n' ' ' > my_npm_packages_laptop.txt + +pip list | awk '{ print $1 }' | tr '\n' ' ' > my_pip_packages_laptop.txt + +go list std | tr '\n' ' ' > my_go_packages_laptop.txt find /usr/bin | sed -r 's/^\/usr\/bin\///g' | tr '\n' ' ' > my_binaries_laptop.txt