blob: a03a6eea8c4269fc5079e98abe21fa0c4c772ec0 (
plain)
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>postmarketOS</title>
<meta name="description" content="Aiming for a 10 year life-cycle for smartphones">
<meta name="keywords" content="postmarketOS">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all">
<link rel="canonical" href="https://postmarketos.org/wiki/Installing-packages-on-a-running-phone/">
<link href="/pmosweb/static/css/tachyons.min.css" rel="stylesheet">
<link href="/pmosweb/static/css/main.css" rel="stylesheet">
</head>
<body>
<div class="mw7 center">
<div class="cf ph2-ns">
<a class="title" href="/pmosweb/">
<h1 class="f2 lh-title">
<img src="/pmosweb/static/img/recycle.png"></img>
<span>postmarketOS</span>
</h1>
</a>
<div class="menu">
<ul>
<li><a href="/pmosweb/">Home</a></li>
<li><a href="/pmosweb/wiki/">Wiki</a></li>
<li><a href="/pmosweb/blog/">Blog</a></li>
</ul>
</div>
<h1>Installing packages on a running phone</h1>
<ol>
<li>Go to the pmbootstrap packages dir (by default it's <code>~/.local/var/pmbootstrap/packages</code>)</li>
<li>Start a webserver <code>python3 -m http.server</code></li>
<li>Change repository on the phone to point to your dev machine in <code>/etc/apk/repositories</code>:</li>
</ol>
<pre class="codehilite"><code># You can remove this line
/home/user/packages/user
# Add your dev machine, change the ip-address for your network
http://192.168.2.42:8000
https://nl.alpinelinux.org/alpine/edge/main
https://nl.alpinelinux.org/alpine/edge/community
https://nl.alpinelinux.org/alpine/edge/testing</code></pre>
<ol>
<li>Upgrade the package you built with <code>apk upgrade [package name]</code></li>
</ol>
</div>
</div>
</body>
</html>
|