You are not logged in.

#1 2007-06-11 14:58:42

beza1e1
Member
From: Karlsruhe, Germany
Registered: 2007-04-15
Posts: 30
Website

pacman -R pacman

Maybe pacman should show a warning, if the user tries to remove it? neutral

Offline

#2 2007-06-11 15:11:55

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: pacman -R pacman

Why? You're allowed to remove it.  Should we also add some warnings into 'rm' to prevent users from doing stupid things?

Offline

#3 2007-06-12 04:57:36

pecan
Member
Registered: 2007-04-06
Posts: 93

Re: pacman -R pacman

I removed something (can't remember) apt-get required to work when I first tried kubuntu, I wasn't great at compiling stuff from source back then. Of course I got a whole lot better very quickly;)

Offline

#4 2007-06-12 08:04:46

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: pacman -R pacman

there is always pacman.static

Offline

#5 2007-06-12 09:22:24

mitsoko
Banned
From: In the Coal Chamber
Registered: 2007-05-08
Posts: 143

Re: pacman -R pacman

pacman is just a pkg like al other pkgs, i don't see why it should be treated any differently, after all it's a dependency to the system .. it's a fundamental part of it, but not a dependency, if someone decides to remove for whatever reason, that's there own decision, it isn't forced on them .. btw, all that's required to restore it is to extract the pkg onto the fs.

you can go download the pkg, or check the cache ... then un-tar/gz it onto / then reinstall pacman with -f

Offline

#6 2007-06-12 15:41:32

Borosai
Member
From: Sandy Appendix, U.S.A.
Registered: 2006-06-15
Posts: 227

Re: pacman -R pacman

You can always use the HoldPkg line in your pacman.conf options.

HoldPkg  =  pacman

I assume it's still a functional option in pacman3.

Offline

#7 2007-06-12 15:46:45

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: pacman -R pacman

Yes, pacman is even in HoldPkg by default with glibc (in pacman.conf), so it already gives a warning :

pacman -R pacman                                                                                                                 ~
:: pacman is designated as a HoldPkg. Remove anyway? [Y/n]

pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

#8 2007-06-18 20:52:20

Lord_Bad
Member
Registered: 2005-04-17
Posts: 54

Re: pacman -R pacman

I guess that when some new clients of the libalpm emerge, pacman should no longer be designated as a HoldPkg, but until then this seems like the wisest decision.

Last edited by Lord_Bad (2007-06-19 10:33:26)

Offline

#9 2007-06-19 09:06:36

hacosta
Member
From: Mexico
Registered: 2006-10-22
Posts: 423

Re: pacman -R pacman

Lord_Bad wrote:

emerge pacman

pun intended?

Offline

#10 2007-06-19 10:33:09

Lord_Bad
Member
Registered: 2005-04-17
Posts: 54

Re: pacman -R pacman

Read the entire sentence again. I meant that client of the libalpm would eventually emerge. Not to be confused with the famous tool "emerge" from Gentoo's portage.

Offline

#11 2007-06-19 10:35:33

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: pacman -R pacman

hacosta wrote:
Lord_Bad wrote:

emerge pacman

pun intended?

lol, I read that too the first time, so I guess so smile


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB