You are not logged in.
I feel my installation is corrupted .volcontrol muted on every boot,nautilus crashing,etc and more.
So,I though of reinstalling whole Gnome-2.22
I got below script somewhere in this forum or wiki maybe:but the script is erring out :?
please help !
pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)")
and got the below error message
error: no targets specified (use -h for help)
Last edited by praka123 (2008-04-24 14:47:47)
Offline
I tried
pacman -S $(pacman -Qq)
It reinstalls all installed packages which are from repo.
still puzzled why "grep -v "$(pacman -Qmq)")"
Offline
Run the command pacman -Qq and pacman -Qmq separately and try to find out why it breaks.
pacman -Q displays all packages, pacman -Qm displays the packages that are not in any repos, that is the packages you installed manually == foreign packages. You can't reinstall these foreign packages with pacman -S by definition.
So you have to filter them out of pacman -Q output.
pacman -S $(pacman -Qq) fails here, because I have 3 foreign packages, but pacman -S $(pacman -Qq | grep -v "$(pacman -Qmq)") works.
pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))
Offline