[Mageia-dev] [patch] use urpmi without root privileges to just download packages

Guillaume Rousse guillomovitch at gmail.com
Tue Oct 30 15:41:04 CET 2012


Le 29/10/2012 20:43, Guillaume Rousse a écrit :
> Le 29/10/2012 16:00, Thierry Vignaud a écrit :
>> Together with --no-install, it's what you want.
> Indeed, excepted for two issues:
> - it won't warn the user about the unability to write into
> /var/cache/urpmi/rpms until the download start
> - it won't solve the 'you have to guess what I actually did' issue :/
>
> Could we have some kind of non-interactive, easy-to-parse,
> automation-dedicated output ?
I just tested the patches.

The --download-dir option seems borken:

[guillaume at beria trunk]$ LC_ALL=C ./urpmi  --no-install --download-dir 
~/tmp/ wine64
Unknown option: download-dir
No package named /home/guillaume/tmp/

Without the option, I don't get any write error, but the packages get 
saved into some mysterious temporary directory (/tmp/.urpmi-500/rpms).

lastly, the -v flag seems enough have the needed information in output:

retrieving rpm files from medium "core.release"...
   % Total    % Received % Xferd  Average Speed   Time    Time     Time 
  [...]
retrieved   lib64opencl1-1.3-1.mga3.x86_64.rpm 
wine-mono-0.0.4-1.mga3.x86_64.rpm wine64-1.5.14-1.mga3.x86_64.rpm
...retrieving done

-- 
BOFH excuse #429:

Temporal anomaly


More information about the Mageia-dev mailing list