You are not logged in.

#1 2007-09-09 12:17:51

macros78
Member
Registered: 2006-10-13
Posts: 28

Redownload and reinstall all installed packages

I need to redownload and reinstall all installed packages, because I made some tests with prelink and something goes wrong. I found an article in wiki that covers download of installed packages, but howto reinstall them all?

The problem is that some apps are acting weird. I also have problem with compiling of AUR packages, because I get this error message:

checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.

The gcc package is installed. Any sugestions?

Last edited by macros78 (2007-09-09 12:19:21)

Offline

#2 2007-09-09 13:20:37

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,365
Website

Re: Redownload and reinstall all installed packages

I think this should do it...

pacman -Q | grep -v pacman | cut -d' ' -f1 > packages.txt
pacman -Sy `cat packages.txt` --noconfirm

Offline

#3 2007-09-09 16:16:56

macros78
Member
Registered: 2006-10-13
Posts: 28

Re: Redownload and reinstall all installed packages

Thank you very much.  I am gonna try and will share the results...

Offline

#4 2007-09-09 16:44:41

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Redownload and reinstall all installed packages

That will only work if all packages are in active repos, as per your pacman.conf. Use pacman -Qm to identify those that are not.

Offline

Board footer

Powered by FluxBB