Skip to content

Instantly share code, notes, and snippets.

@DRN88
Last active August 9, 2016 12:35
Show Gist options
  • Save DRN88/4b41356380fb92959112c7d7af956b76 to your computer and use it in GitHub Desktop.
Save DRN88/4b41356380fb92959112c7d7af956b76 to your computer and use it in GitHub Desktop.
vmware-vsphere-cli-ubuntu1604.sh
#!/bin/bash
# Install required packages
apt -y update
apt -y install perl-doc libssl-dev libxml-libxml-perl libmodule-build-perl libsoap-lite-perl libdevel-stacktrace-perl libclass-data-inheritable-perl libconvert-asn1-perl libcrypt-openssl-rsa-perl libcrypt-x509-perl libexception-class-perl libclass-methodmaker-perl libdata-dump-perl libsoap-lite-perl libnet-inet6glue-perl libdata-uuid-libuuid-perl
# Install perl modules with specific version
PERL_MM_USE_DEFAULT=1 cpan install BINGOS/ExtUtils-MakeMaker-6.96.tar.gz LEONT/Module-Build-0.4205.tar.gz GBARR/libnet-1.22.tar.gz GAAS/libwww-perl-5.837.tar.gz PERLER/UUID-Random-0.04.tar.gz
# Unattended vspherecli install
yes | PAGER=cat ./vmware-install.pl --default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment