Rex::Commands::Mkfs - Create filesystems
With this module you can create filesystems on existing partitions and logical volumes.
use Rex::Commands::Mkfs;
Create a filesystem on device $devname.
mkfs "sda1", fstype => "ext2", label => "mydisk"; mkfs "sda2", fstype => "swap";
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.