Tag Archives: one-liner

Install/Update Webmin

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

#!/bin/bash
EXT=".rpm"
PMAN="rpm -U"
if [ -e /etc/debian_version ]; then
EXT=".deb"; PMAN="dpkg -i"
fi
wget http://webmin.com -O - | grep $EXT | grep -o 'http://[^"]*' | xargs wget -O webmin_latest$EXT; $PMAN webmin_latest$EXT

[ad#ad-1]

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

Similar Posts:

Tagged ,