Rex::Commands::Partition - Partition module
With this Module you can partition your harddrive.
use Rex::Commands::Partition;
Clear partitions on $drive.
clearpart "sda"; clearpart "sda", initialize => "gpt";
Create a partition with mountpoint $mountpoint.
partition "/", fstype => "ext3", size => 15000, ondisk => "sda", type => "primary"; partition "none", type => "extended", ondisk => "sda", grow => 1; partition "swap", fstype => "swap", type => "logical", ondisk => "sda", size => 8000; partition "none", lvm => 1, type => "primary", size => 15000, ondisk => "vda"; partition "/", fstype => "ext3", size => 10000, onvg => "vg0";
To install Rex, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Rex
CPAN shell
perl -MCPAN -e shell install Rex
For more information on module installation, please visit the detailed CPAN module installation guide.