urpm::msg - routines to prompt messages from the urpm* tools
Actually translate a string using gettext.
Like N(), translate a string but with different singular/plural strings according to $nb
Translate the $format string (a la printf using @params)
Unlike N(), it doesn't actually translate $string but serves to tag a string as translatable for extracting into pod catalog.
The string will actually be translated later using translate().
Log through syslog if Sys::Syslog is installed.
Writes only to logfile, not to screen
Convert a number of bytes into Mb
Returns a nicely human size. eg:
2097152 => "2MB"
The optional parameter enables to provide the unit size (default is one). eg for a 2000 512 sized sectors:
formatXiB(2000, 512)
Duplicated from common (drakx/perl-install/common.pm)
Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005 MandrakeSoft SA
Copyright (C) 2005-2010 Mandriva SA
Copyright (C) 2011-2020 Mageia
To install urpmi, copy and paste the appropriate command in to your terminal.
cpanm
cpanm urpmi
CPAN shell
perl -MCPAN -e shell install urpmi
For more information on module installation, please visit the detailed CPAN module installation guide.