Index: urpmi =================================================================== --- urpmi (révision 5344) +++ urpmi (copie de travail) @@ -266,8 +266,19 @@ urpm::set_env($urpm, $env); } else { if ($< != 0 && !$options{debug__do_not_install}) { - #- need to be root if binary rpms are to be installed - $auto_select || @names || @files and $urpm->{fatal}(1, N("Only superuser is allowed to install packages")); + if ($no_install) { + #- writable download directory needed + $urpm->{fatal}( + 1, + N("Only superuser is allowed to use default download directory") + ) if ! $urpm->{options}{'download-all'}; + } else { + #- root privileges needed to install binary packages + $urpm->{fatal}( + 1, + N("Only superuser is allowed to install packages") + ) if $auto_select || @names || @files; + } } }