You are not logged in.
Hi,
I realize it's going to make me look like an idiot, but I wanted to free up some space today and I ended up erasing folders such as /var/lib/pacman/local/ and sync/ and in the end, pacman does not read my system: it seems that it cannot "read" my system. It cannot uninstall installed packages and comes up with odd dependency issues. Same for Yaourt. Note that the system is usable by itself, it's just that pacman does not work... Any thoughts?
Thanks...
Offline
you removed the information on the packages installed....
maybe you can, if you haven't ever cleaned up your pacman.log file, extract the information of packages you installed and force reinstallation on all of them?
Offline
I do have a pretty full pacman.log file... but I cannot reinstall anything, as pacman itself is broken.
If I could, would I need to to this one by one package or is there a special command for that?
thanks.
Offline
There's info about this in the wiki: http://wiki.archlinux.org/index.php/How … l_database
As for running pacman, what error do you get when trying to install something?
Have you tried "pacman -Syy"?
In general, post the actual error messages instead of just saying that something is "broken"... you're more likely to get help that way.
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I do have a pretty full pacman.log file... but I cannot reinstall anything, as pacman itself is broken.
I don't understand, the directories you removed should not prevent doing something like
pacman -Syf somepackageIf I could, would I need to to this one by one package or is there a special command for that?
thanks.
If you don't have anything installed that's not in the repos, something like this should work I suppose
sudo pacman -Sy
sudo pacman -Sf $( cat pacman.log | grep installed | awk '{print $3 , $4}' | grep installed | awk '{print $2}' )otherwise you can try via some pacman wrapper like yaourt, or call pacman -Sf on every package the above command between $() gives so it at least installs all packages in the repos.
Offline
There is seriously something about this in the wiki..
Why do I always want to reinvent the wheel ![]()
Offline
Why do I always want to reinvent the wheel
I do that all the time too... sometimes it's a wasted effort, sometimes it's a much nicer wheel ![]()
My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone
Offline
I followed the wiki instructions; it now works only partly. A whole set of packages is still beyond pacman's reach.
Posting pacman -Q output:
[chs@lupercal ~]$ sudo pacman -Q
attr 2.4.44-1
bash 4.1.007-1
binutils 2.20.1-3
bzip2 1.0.5-5
coreutils 8.5-2
cryptsetup 1.1.3-1
dash 0.5.6.1-1
dcron 4.4-2
device-mapper 2.02.70-1
dhcpcd 5.2.7-1
diffutils 3.0-1
e2fsprogs 1.41.12-1
file 5.04-2
filesystem 2010.07-1
findutils 4.4.2-2
gawk 3.1.8-1
gcc-libs 4.5.1-1
gen-init-cpio 2.6.32-1
gettext 0.18.1.1-1
glibc 2.12.1-1
grep 2.6.3-1
grub 0.97-17
gzip 1.4-1
initscripts 2010.07-1
iputils 20100214-2
jfsutils 1.1.14-1
kernel26 2.6.35.3-1
less 436-1
libusb 0.1.12-4
licenses 2.6-1
logrotate 3.7.8-1
lvm2 2.02.70-1
lzo2 2.03-1
mailx 8.1.1-7
man-db 2.5.7-1
man-pages 3.25-1
mdadm 3.1.3-1
net-tools 1.60-14
pacman 3.4.0-2
pam 1.1.1-1
pciutils 3.1.7-1
pcmciautils 017-1
perl 5.12.1-2
ppp 2.4.5-1
procps 3.2.8-1
psmisc 22.12-1
reiserfsprogs 3.6.21-2
rp-pppoe 3.10-5
sed 4.2.1-2
shadow 4.1.4.2-3
sysfsutils 2.1.0-5
syslog-ng 3.1.2-1
sysvinit 2.86-5
tar 1.23-3
tcp_wrappers 7.6-11
texinfo 4.13a-4
udev 161-1
usbutils 0.90-1
util-linux-ng 2.18-3
vi 050325-3
wget 1.12-2
which 2.20-3
wpa_supplicant 0.6.10-2
xfsprogs 3.1.2-1
[chs@lupercal ~]$ Does this mean that's the packages that got reinstalled?
Offline
man pacman - search for -Q
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
So what I clearly see is that part of the package base has been reinstalled while anoter part has not; I just cannot figure out why... It seems I might as well reinstall the whole system. ![]()
Offline