2 # Upgrade all packages, or update the database of URPMI packages
4 require './software-lib.pl';
7 # Work out what we are doing
9 $cmd = "urpmi --force --auto-select";
13 $cmd = "urpmi.update main updates contrib";
17 &ui_print_unbuffered_header(undef, $text{'urpmi_title_'.$mode}, "");
19 print "<b>",&text('urpmi_updatedesc', "<tt>$cmd</tt>"),"</b><p>\n";
21 &additional_log("exec", undef, $cmd);
23 open(CMD, "$cmd 2>&1 </dev/null |");
25 print &html_escape($_);
31 print "<b>$text{'uprmi_upgradefailed'}</b><p>\n";
34 print "<b>$text{'urpmi_upgradeok'}</b><p>\n";
35 &webmin_log("urpmi", $mode)
38 &ui_print_footer("", $text{'index_return'});