You are not logged in.

#1 2010-10-27 21:35:54

virtuososteve
Member
Registered: 2010-07-09
Posts: 3

Accidently Deleted Pacman

I accidently in frustration of something not working typed in xterm: pacman -R pacman

Now i lost pacman and I have no idea what to do to fix it. If I have to download it how would I install it? any suggestions?

I am still learning arch so sorry if its a stupid question

Offline

#2 2010-10-27 21:54:15

jt512
Member
Registered: 2009-02-19
Posts: 262

Re: Accidently Deleted Pacman

Someone else can probably give you a more definitive answer, but since you're probably panicking, I think you should be able to do this:

1. Boot from live media.
2. Remount your root partition as read-write (see the remount option in 'man mount').
3. From the archlive prompt: `pacman -S -r /where/you/mounted/root/partition/ pacman`

Jay

Last edited by jt512 (2010-10-27 22:02:56)

Offline

#3 2010-10-27 22:28:22

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Accidently Deleted Pacman

There is an easier way. Download the pacman package from
http://www.archlinux.org/packages/core/ … /download/
or
http://www.archlinux.org/packages/core/ … /download/
respectively and unpack it as root in the / directory.

Last edited by bernarcher (2010-10-27 22:30:06)


To know or not to know ...
... the questions remain forever.

Offline

#4 2010-10-28 01:47:03

Awebb
Member
Registered: 2010-05-06
Posts: 6,286

Re: Accidently Deleted Pacman

When installing manually, you should install pacman using pacman, so pacman knows that it's there. Otherwise it might just stop pacman from beeing updated... by pacman.

I should go to bed.

Offline

#5 2010-10-28 05:27:31

AugustePop
Member
Registered: 2010-04-27
Posts: 95

Re: Accidently Deleted Pacman

Awebb wrote:

When installing manually, you should install pacman using pacman, so pacman knows that it's there. Otherwise it might just stop pacman from beeing updated... by pacman.

I should go to bed.

Out of curiosity, is it possible to install pacman manually and reinstall it by the newly installed pacman?

Offline

#6 2010-10-28 05:51:21

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: Accidently Deleted Pacman

AugustePop wrote:
Awebb wrote:

When installing manually, you should install pacman using pacman, so pacman knows that it's there. Otherwise it might just stop pacman from beeing updated... by pacman.

I should go to bed.

Out of curiosity, is it possible to install pacman manually and reinstall it by the newly installed pacman?

It should be possible but you would need to use the -f flag to force the overwrite.

Last edited by sand_man (2010-10-28 05:51:34)


neutral

Offline

#7 2010-10-28 08:50:46

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Accidently Deleted Pacman

AugustePop wrote:
Awebb wrote:

When installing manually, you should install pacman using pacman, so pacman knows that it's there. Otherwise it might just stop pacman from beeing updated... by pacman.

I should go to bed.

Out of curiosity, is it possible to install pacman manually and reinstall it by the newly installed pacman?

Of course. You should even do so after a manual install to make sure pacman is known to the package system.


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB