1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
<!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%09download%20packages&In-Reply-To=%3C508E70A6.1000904%40gmail.com%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="019610.html">
<LINK REL="Next" HREF="019609.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] [patch] use urpmi without root privileges to just download packages</H1>
<B>Guillaume Rousse</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%09download%20packages&In-Reply-To=%3C508E70A6.1000904%40gmail.com%3E"
TITLE="[Mageia-dev] [patch] use urpmi without root privileges to just download packages">guillomovitch at gmail.com
</A><BR>
<I>Mon Oct 29 13:03:50 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="019610.html">[Mageia-dev] Repository access problem?
</A></li>
<LI>Next message: <A HREF="019609.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#19598">[ date ]</a>
<a href="thread.html#19598">[ thread ]</a>
<a href="subject.html#19598">[ subject ]</a>
<a href="author.html#19598">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Hello list.
I'm trying to port febootstrap to mageia (I need libguestfs, and it's a
mandatory dependency). I need to be able to resolve dependencies and
download packages, without root privileges. I see two solutions here:
1) use 'urpmq --requires-recursive --sources' first to get the list of
packages, then check against already installed packages, then use
another tool (curl, wget, whatever) to download the missing ones.
2) modify urpmi to allow it to be used without root privileges to just
download files.
I'm currently trying to achieve solution 2. The attached patch relax the
process uid check when --no-install option is used, provided an explicit
download directory is used, through --download-all option. However, I'm
facing multiple issues here:
- first, --download-all doesn't just change download-directory, its main
effect is to change urpmi behaviour from interleaved download/install
steps to download everything first. It doesn't matter very much here,
but distinct --download-all and --download-dir options would have been a
clearer interface.
- second, --noclean seems to be useless when using something an
alternative download directory
- last, the default downloader (aria, I presume) doesn't specify which
files it is currently downloading, meaning I'll have to post-process
download directory to retrieve the list of packages, whereas I'd
prefered to just parse urpmi output. I had to use --downloader wget to
get a more verbose output.
urpmi maintainer(s) opinion welcome here.
--
BOFH excuse #268:
Neutrino overload on the nameserver
-------------- next part --------------
A non-text attachment was scrubbed...
Name: urpmi-no-need-for-root-privileges.patch
Type: text/x-patch
Size: 964 bytes
Desc: not available
URL: </pipermail/mageia-dev/attachments/20121029/2f1a9100/attachment.bin>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="019610.html">[Mageia-dev] Repository access problem?
</A></li>
<LI>Next message: <A HREF="019609.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#19598">[ date ]</a>
<a href="thread.html#19598">[ thread ]</a>
<a href="subject.html#19598">[ subject ]</a>
<a href="author.html#19598">[ 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>
|