OpenPKG Advent Calendar 2006

...every day a little pondering, backstage information, jokes, tips and tricks.
4
Monday 2006-12-04: Breaking-Up Joke
OpenPKG Russian Roulette

REALITY.SYS corrupted.
Universe halted.
Reboot? [Y/N]
OpenPKG makes the life of Unix system administrators easy. Sometimes it becomes too easy and hence boring. Hard-core OpenPKG administrators then make their life thrilling again by daily playing OpenPKG Russian Roulette on one of their systems.

For playing OpenPKG Russian Roulette you execute the pistol below to kill an arbitrary OpenPKG package of an arbitrary OpenPKG instance and then you check whether your users are immediately killing you or not. Lucky you are if the killed package was just a harmless one like findutils. If you killed openssh, bash, vim or something similar essential you certainly lost the game — and certainly played OpenPKG Russian Roulette the last time in your life anyway...

Notice 1: the pistol has to be fired with root privileges.
Notice 2: the pistol needs perl(1) in the $PATH.
Notice 3: Mollycoddle OpenPKG administrators can protect their pistol with "E=echo" before execution.

ATTENTION: PLAYING OPENPKG RUSSIAN ROULETTE CAN BE DEADLY!
FIRE THE FOLLOWING PISTOL ONLY ON YOUR OWN RISK.

      o=openpkg;p=perl;R='@x=<>;srand(time()^$$);print
      $x[int(rand(scalar(@x)))]';P=`$p "-e$R"</etc/$o`;\
          $P/bin/$o          rpm\
         -qa|$p "-e$R"|xargs $E\
         $P/bin/$o\
        rpm -e\
       --force\
      --nodeps