summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/2012-October/019609.html
diff options
context:
space:
mode:
Diffstat (limited to 'zarb-ml/mageia-dev/2012-October/019609.html')
-rw-r--r--zarb-ml/mageia-dev/2012-October/019609.html167
1 files changed, 167 insertions, 0 deletions
diff --git a/zarb-ml/mageia-dev/2012-October/019609.html b/zarb-ml/mageia-dev/2012-October/019609.html
new file mode 100644
index 000000000..b6182a063
--- /dev/null
+++ b/zarb-ml/mageia-dev/2012-October/019609.html
@@ -0,0 +1,167 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
+<HTML>
+ <HEAD>
+ <TITLE> [Mageia-dev] [patch] use urpmi without root privileges to just download packages
+ </TITLE>
+ <LINK REL="Index" HREF="index.html" >
+ <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bpatch%5D%20use%20urpmi%20without%20root%20privileges%20to%20just%0A%20download%20packages&In-Reply-To=%3CCAONrEtYPGi-oZJgdBmdLSn-bc%3DUt5VZyju4_%3DxB4Y5MSqBdfrw%40mail.gmail.com%3E">
+ <META NAME="robots" CONTENT="index,nofollow">
+ <META http-equiv="Content-Type" content="text/html; charset=us-ascii">
+ <LINK REL="Previous" HREF="019598.html">
+ <LINK REL="Next" HREF="019613.html">
+ </HEAD>
+ <BODY BGCOLOR="#ffffff">
+ <H1>[Mageia-dev] [patch] use urpmi without root privileges to just download packages</H1>
+ <B>Thierry Vignaud</B>
+ <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bpatch%5D%20use%20urpmi%20without%20root%20privileges%20to%20just%0A%20download%20packages&In-Reply-To=%3CCAONrEtYPGi-oZJgdBmdLSn-bc%3DUt5VZyju4_%3DxB4Y5MSqBdfrw%40mail.gmail.com%3E"
+ TITLE="[Mageia-dev] [patch] use urpmi without root privileges to just download packages">thierry.vignaud at gmail.com
+ </A><BR>
+ <I>Mon Oct 29 16:00:09 CET 2012</I>
+ <P><UL>
+ <LI>Previous message: <A HREF="019598.html">[Mageia-dev] [patch] use urpmi without root privileges to just download packages
+</A></li>
+ <LI>Next message: <A HREF="019613.html">[Mageia-dev] [patch] use urpmi without root privileges to just download packages
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#19609">[ date ]</a>
+ <a href="thread.html#19609">[ thread ]</a>
+ <a href="subject.html#19609">[ subject ]</a>
+ <a href="author.html#19609">[ author ]</a>
+ </LI>
+ </UL>
+ <HR>
+<!--beginarticle-->
+<PRE>On 29 October 2012 13:03, Guillaume Rousse &lt;<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">guillomovitch at gmail.com</A>&gt; wrote:
+&gt;<i> I'm trying to port febootstrap to mageia (I need libguestfs, and it's a
+</I>&gt;<i> mandatory dependency). I need to be able to resolve dependencies and
+</I>&gt;<i> download packages, without root privileges. I see two solutions here:
+</I>&gt;<i>
+</I>&gt;<i> 1) use 'urpmq --requires-recursive --sources' first to get the list of
+</I>&gt;<i> packages, then check against already installed packages, then use another
+</I>&gt;<i> tool (curl, wget, whatever) to download the missing ones.
+</I>
+Which would mean reinventing urpmi logic for computing full URIs :-(
+
+&gt;<i> 2) modify urpmi to allow it to be used without root privileges to just
+</I>&gt;<i> download files.
+</I>&gt;<i>
+</I>&gt;<i> I'm currently trying to achieve solution 2. The attached patch relax the
+</I>&gt;<i> process uid check when --no-install option is used, provided an explicit
+</I>&gt;<i> download directory is used, through --download-all option. However, I'm
+</I>&gt;<i> facing multiple issues here:
+</I>&gt;<i>
+</I>&gt;<i> - first, --download-all doesn't just change download-directory, its main
+</I>&gt;<i> effect is to change urpmi behaviour from interleaved download/install steps
+</I>&gt;<i> to download everything first. It doesn't matter very much here, but distinct
+</I>&gt;<i> --download-all and --download-dir options would have been a clearer
+</I>&gt;<i> interface.
+</I>&gt;<i>
+</I>&gt;<i> - second, --noclean seems to be useless when using something an alternative
+</I>&gt;<i> download directory
+</I>&gt;<i>
+</I>&gt;<i> - last, the default downloader (aria, I presume) doesn't specify which files
+</I>&gt;<i> it is currently downloading, meaning I'll have to post-process download
+</I>&gt;<i> directory to retrieve the list of packages, whereas I'd prefered to just
+</I>&gt;<i> parse urpmi output. I had to use --downloader wget to get a more verbose
+</I>&gt;<i> output.
+</I>&gt;<i>
+</I>&gt;<i> urpmi maintainer(s) opinion welcome here.
+</I>
+This is not the right approach.
+What's more the download-all packages only affect downloading packages before
+transactions, and is restricted to urpm::main_loop.
+
+I would just add a download-dir option the attached patch way (untested),
+and not warn if no-install is used (second (untested) patch).
+
+Together with --no-install, it's what you want.
+-------------- next part --------------
+A non-text attachment was scrubbed...
+Name: download-dir.diff
+Type: application/octet-stream
+Size: 3462 bytes
+Desc: not available
+URL: &lt;/pipermail/mageia-dev/attachments/20121029/b874af54/attachment.obj&gt;
+-------------- next part --------------
+A non-text attachment was scrubbed...
+Name: only_warn_if_not_using_no-install.diff
+Type: application/octet-stream
+Size: 469 bytes
+Desc: not available
+URL: &lt;/pipermail/mageia-dev/attachments/20121029/b874af54/attachment-0001.obj&gt;
+</PRE>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+<!--endarticle-->
+ <HR>
+ <P><UL>
+ <!--threads-->
+ <LI>Previous message: <A HREF="019598.html">[Mageia-dev] [patch] use urpmi without root privileges to just download packages
+</A></li>
+ <LI>Next message: <A HREF="019613.html">[Mageia-dev] [patch] use urpmi without root privileges to just download packages
+</A></li>
+ <LI> <B>Messages sorted by:</B>
+ <a href="date.html#19609">[ date ]</a>
+ <a href="thread.html#19609">[ thread ]</a>
+ <a href="subject.html#19609">[ subject ]</a>
+ <a href="author.html#19609">[ author ]</a>
+ </LI>
+ </UL>
+
+<hr>
+<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
+mailing list</a><br>
+</body></html>