Jump to content

Installing packages on a running phone: Difference between revisions

From postmarketOS Wiki
m /home/user/packages/user -> /mnt/pmbootstrap-packages
m fix numbers
Line 1: Line 1:
# Go to the pmbootstrap packages dir (by default it's <code>~/.local/var/pmbootstrap/packages</code>)
1. Go to the pmbootstrap packages dir (by default it's <code>~/.local/var/pmbootstrap/packages</code>)
# Start a webserver <code>python3 -m http.server</code>
2. Start a webserver <code>python3 -m http.server</code>
# Change repository on the phone to point to your dev machine in <code>/etc/apk/repositories</code>:
3. Change repository on the phone to point to your dev machine in <code>/etc/apk/repositories</code>:


     # You can remove this line
     # You can remove this line
Line 13: Line 13:
     https://nl.alpinelinux.org/alpine/edge/testing
     https://nl.alpinelinux.org/alpine/edge/testing


# Upgrade the package you built with <code>apk upgrade [package name]</code>
4. Upgrade the package you built with <code>apk upgrade [package name]</code>

Revision as of 19:11, 22 May 2018

1. Go to the pmbootstrap packages dir (by default it's ~/.local/var/pmbootstrap/packages) 2. Start a webserver python3 -m http.server 3. Change repository on the phone to point to your dev machine in /etc/apk/repositories:

   # You can remove this line
   /mnt/pmbootstrap-packages
   
   # Add your host machine address
   http://172.16.42.2:8000
   
   https://nl.alpinelinux.org/alpine/edge/main
   https://nl.alpinelinux.org/alpine/edge/community
   https://nl.alpinelinux.org/alpine/edge/testing

4. Upgrade the package you built with apk upgrade [package name]