You are not logged in.
This morning, before I had a chance to finish my coffee, I dabbled around with pacman. There was a package I wanted to remove, but numbed though my brain were, the only word that could occopy my mind was "pacman". So I typed 'pacman -R pacman' and numbely pressed enter, my mind turning to coffee.
"Oh," said pacman, "I hadn't thought of that," and vanished in a puff of logic.
I hesitate to submit a bug report on this, but I really, really think there should be at least a "Warning! This will decapitate your system with severe prejudice, please type 'YES, I REALLY WANT THIS' to proceed". This way, if you really (in some moment of cognicient depravity) want to use pacman to remove pacman, you still can.
Thanks to good friends at #archlinux I reinstated pacman and all is well.
Offline
"Oh," said pacman, "I hadn't thought of that," and vanished in a puff of logic.
The fact that I can't remember the paragraphs around that quote (pseudo quote?) tells me I should read more Douglas Adams...
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Hahaha, how the hell did you in the first place manage to even think to use the -R on pacman... I'm sure he was pretty pist off on you when he was back, aye?
sum sum
Offline
That paragraph was about demonstarting taht God does not exist.
It was a philosophical discussion between God and a philosopher about the babel fish.
Since you have to trust in the existence of God without evidence and the babel fish is so perfect that god could have created it therefore God does not exist, and God vanished in a puff of logic.
It was more or less like this.
About pacman -R pacman
I think it is more a philosophical question if it can remove itself or not.
Fortunatly something like
pacman -R *
does not work, or at least I hope I didn't try it
Offline
so you want a shell in what if you write:
rm -rf /
it gives back:
Hi root, can you please confirm your command by pressing at the same time CTRL-F1-AltGr-Home-T, so that i can be sure you for sure intended to do this?
:-)
... as long as it is not possible to run pacman -R pacman as normal user, its ok i think
The impossible missions are the only ones which succeed.
Offline
I disagree, it's not OK. In 999 out of 1000 cases, 'pacman -R pacman' is a destructive command that puts the user in a situation he doesn't want to be in. (Btw, statistic fact may or may not have been invented on the fly). I think that's worth at least a quick "are you sure?" from pacman.[/b]
Offline
How about this? After we get 999 complaints about people removing pacman with said command, we implement the feature?
Either that or you do it and submit a feature request.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Ok people, I need 999 volunteers! j/k
Yes, I see your point. I have looked at the pacman source on several occations, not making much of it. C is not my strong point.
Offline
haakon,
i agree with you that it should not be possible to easily execute such a request. but as Xentac says file a feature request. There is no need for you to try and hack a patch from the code if you do not understand it. feature requests are a part of the bug tracker.
AKA uknowme
I am not your friend
Offline
IMO, extending this feature request to a configurable list of sensible packages would be more interesting, because pacman is not that sensible compared to some other packages (to my mind, glibc removal is possibly the worst thing than can occur...)
An new option in pacman.conf to specify to remove a list of given package only with user confirmation could be nice:
[options]
HoldPkg = kernel glibc pacman
Thoughts?
Offline
sounds practical since, as you say, there is more than just pacman that is silly to remove.
AKA uknowme
I am not your friend
Offline
IMO, extending this feature request to a configurable list of sensible packages would be more interesting, because pacman is not that sensible compared to some other packages (to my mind, glibc removal is possibly the worst thing than can occur...)
An new option in pacman.conf to specify to remove a list of given package only with user confirmation could be nice:[options] HoldPkg = kernel glibc pacman
Thoughts?
this makes sense - extending your feature request to something like this, would be great
EssentialPkgs = glibc ...
The impossible missions are the only ones which succeed.
Offline
I think the true moral of the story is not to restrict pacman, but to remind all users to drink their coffee before working on Linux.
measure twice, cut once, think three times.
Dusty
Offline
I find that offensive! I'll have you know I'm perfectly capable of acting moronic even after coffee.
I'll submit that wish report later on (I tried registering with notifications to my jabber account, but that didn't seem to work). Thanks for great suggestions in this thread.
Offline
I find that offensive! I'll have you know I'm perfectly capable of acting moronic even after coffee.
Hmmm. something stronger perhaps?
Dusty
Offline
Alright, here is my report. It includes orelient's generalization.
Offline
I think the true moral of the story is not to restrict pacman, but to remind all users to drink their coffee before working on Linux.
measure twice, cut once, think three times.
Dusty
drugs are not the solution!!!
The impossible missions are the only ones which succeed.
Offline
drugs are not the solution!!!
True enough... I don't even need coffee to keep me from removing pacman.
Offline