Re: Substitute packages installed from arch repositories with artix ones.
Reply #19 –
Some modifications done to the script according to your post.
#!/bin/bash
export LC_ALL=C
mkdir ./workfiles
pacman -Qq >> ./workfiles/asdeps-list.txt
pacman -Sl extra | grep installed | cut -d" " -f2 >> ./workfiles/extra-inst.txt
pacman -Sl world | grep installed | cut -d" " -f2 >> ./workfiles/world-inst.txt
pacman -Sl world | cut -d" " -f2 >> ./workfiles/world-allpkgs.txt
awk 'NR==FNR{arr[$0];next} $0 in arr' ./workfiles/asdeps-list.txt ./workfiles/extra-inst.txt >> ./workfiles/tobe-inst-asdeps.txt
awk '{print "world/" $0}' ./workfiles/tobe-inst-asdeps.txt >> pacman-list.txt
Now the problem are:
- How to obtain the list of packages installed not "asdeps"
- How are the correct commands to use pacman-list.txt (that is created as list of world/xxxx ) to substitute packages installed from extra
- What is the correct order to avoid problems, fisrt the asdeps-list and then the other list or...
TIA and Regards
Carlo D.