Install/Update Webmin

Posted on March 31st, 2008 in Coding, Tools, Work by abdallah

I’ve always liked one-liners. Here’s one (almost) for installing the latest webmin on almost any linux out there!

[ bash Code ]
  1. #!/bin/bash
  2. EXT=".rpm"
  3. PMAN="rpm -U"
  4. if [ -e /etc/debian_version ]; then
  5. EXT=".deb"; PMAN="dpkg -i"
  6. fi
  7. wget http://webmin.com -O - | grep $EXT | grep -o ‘http://[^"]*’ | xargs wget -O webmin_latest$EXT; $PMAN webmin_latest$EXT

You could copy and past the above in a terminal session, or the following:
wget http://mt.trickos.com/dev/installwebmin.sh; sh installwebmin.sh

Post a comment

You must be logged in to post a comment.