📝 Many changes...

This commit is contained in:
z3rOR0ne 2022-07-21 13:40:33 -07:00
parent 5775262419
commit 452a644131
7 changed files with 213 additions and 14 deletions

View file

@ -2,7 +2,8 @@
# 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_packages.txt
pacman -Q | awk '!($2="")' | tr '\n' ' ' > my_packages.txt
npm list -g > my_npm_packages.txt
pip list > my_pip_packages.txt
# can be used in conjunction with xargs to reinstall all packages:
# cat my_packages.txt | sudo xargs pacman -S

View file

@ -44,11 +44,6 @@ if [ ! -d $archivedir ] ; then
fi
if [ -d .git ] ; then
for arg
do
newname="$archivedir/$(date "+%S.%M.%H.%m").$(basename "$arg")"
$copy "$arg" "$newname"
done
git rm "$@"
exit 0
fi