You are not logged in.

#1 2008-04-24 14:47:14

praka123
Member
From: Kerala,India
Registered: 2008-03-04
Posts: 188
Website

reinstalling all installed packages using pacman

I feel my installation is corrupted sad .volcontrol muted on every boot,nautilus crashing,etc and more.
So,I though of reinstalling whole Gnome-2.22 big_smile
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 sad

error: no targets specified (use -h for help)

Last edited by praka123 (2008-04-24 14:47:47)

Offline

#2 2008-04-24 16:05:37

praka123
Member
From: Kerala,India
Registered: 2008-03-04
Posts: 188
Website

Re: reinstalling all installed packages using pacman

I tried

pacman -S $(pacman -Qq)

It reinstalls all installed packages which are from repo.

still puzzled why "grep -v "$(pacman -Qmq)")"

Offline

#3 2008-04-24 17:01:35

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: reinstalling all installed packages using pacman

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

Board footer

Powered by FluxBB