You are not logged in.

#1 2010-05-30 15:26:02

cjnodell
Member
Registered: 2007-06-27
Posts: 4

Re-Install pacman...

I kind of removed pacman using the "pacman -R pacman" command... I know, REALLY stupid. I kept wondering why putty, the package I had intended to remove, was on the holdpkg list... I think I really need to sleep more!

Anyways, I was hoping that one of you could walk me through the  re-installation pacman. I tried searching for this in the forum, but it is amazing how many results a search like "re-install pacman", "install pacman" or "removed pacman" generate! I am guessing this will involve using the live cd, but that is as far as I can figure. Thanks in advance.

Charles

Offline

#2 2010-05-30 15:35:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Re-Install pacman...

Use the Arch install image, chroot into your current install, and reinstall pacman. If your root directory on your current install is on sda, then:

Start the install media and get to a command line.

mkdir /mnt/hope 
mount /dev/sda3 /mnt/hope
chroot /mnt/hope
pacman -S pacman

I thought that hope was an apt name the first time that I had to do this.

WAIT!!!!!!!!!!!!!

That's way too much work. You hopefully have pacman still in your cache (/var/cache/pacman/pkg). Just decompress it somewhere and copy all the files into / (the root directory). When done, pacman -Sf pacman.

Offline

#3 2010-05-30 15:49:18

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: Re-Install pacman...

i would just mount the partition from arch live cd and use

pacman -S pacman -r /path/to/mounted/root

Last edited by wonder (2010-05-30 15:49:46)


Give what you have. To someone, it may be better than you dare to think.

Offline

#4 2010-05-30 15:51:36

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Re-Install pacman...

wonder wrote:

i would just mount the partition from arch live cd and use

pacman -S pacman -r /path/to/mounted/root

Hey, that's pretty cool. Good thinking wonder!

Offline

#5 2010-05-31 01:37:22

cjnodell
Member
Registered: 2007-06-27
Posts: 4

Re: Re-Install pacman...

Thank you both very much! I ended up booting to the live cd, mounting my root partition to /mnt and installing pacman from my package cache to /mnt (pacman -U /mnt/var/cache/pacman/pkg/pacman-3.3.3-5-i686.pkg.tar.gz -r /mnt). It worked perfectly!

This is my first Arch install and I would have been VERY upset (at my slelf) if I had to reinstall everything! Thanks again!

Offline

Board footer

Powered by FluxBB