You are not logged in.

#1 2007-01-08 22:23:27

rstadmin
Member
Registered: 2007-01-08
Posts: 13

System reinstall - fix bad chown and chmods

Hi everyone!  wink

My systems chown and chmods are bad, so I want to build my packages info and automatically install it after arch reinstall.
or if I may to do sth to rebuild my arch (upgrade all packages in my system) it's may be also fine, but I don't want how to do it. Pacman's -U switch and -S haven't functions who's requied for me.
Somebody knows how to do it ?

-----------------
sorry for my english, I'm from poland and I'm still learning english.

------------------
greetings
RstAdmin

Offline

#2 2007-01-09 07:51:23

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: System reinstall - fix bad chown and chmods

Getting a list of your installed packages:

pacman -Q | cut -d' ' -f1 > pkgs.txt

Reinstalling them:

pacman -S `cat pkgs.txt`

1000

Offline

#3 2007-01-09 09:05:31

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

Re: System reinstall - fix bad chown and chmods

I'll just add this - if any of your installed packages do not exist in a repo e.g. AUR packages, your own local stuff, etc, you will need to remove those package names from pkgs.txt before running pacman -S, and then reinstall them separately.

Offline

#4 2007-01-09 14:38:55

rstadmin
Member
Registered: 2007-01-08
Posts: 13

Re: System reinstall - fix bad chown and chmods

thanks! it works :]

I advise you to copy all /var/cache/pacman/pkg/*  and  /var/lib/pacman/*  (without the "local" folder)  to new system, and that's all ! smile

Last edited by rstadmin (2007-02-15 18:03:38)

Offline

Board footer

Powered by FluxBB