Jump to content

Installing packages on a running phone: Difference between revisions

From postmarketOS Wiki
Decatf (talk | contribs)
m Fix formatting
update and simplify
Line 1: Line 1:
1. Go to the pmbootstrap packages dir (by default it's <code>~/.local/var/pmbootstrap/packages</code>)
1. Go to the pmbootstrap packages dir and start a web server:


2. Start a webserver <code>python3 -m http.server</code>
<syntaxhighlight lang="shell-session">
$ cd ~/.local/var/pmbootstrap/packages
$ python3 -m http.server
</syntaxhighlight>


3. Change repository on the phone to point to your dev machine in <code>/etc/apk/repositories</code>:
2. Add your own repository on top of your <code>/etc/apk/repositories</code> file on the phone (remember to adjust the IP):
 
    # You can remove this line
    /mnt/pmbootstrap-packages
      
      
     # Add your host machine address
     # Add your host machine address
Line 15: Line 15:
     https://nl.alpinelinux.org/alpine/edge/testing
     https://nl.alpinelinux.org/alpine/edge/testing


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

Revision as of 07:48, 16 November 2018

1. Go to the pmbootstrap packages dir and start a web server:

$ cd ~/.local/var/pmbootstrap/packages
$ python3 -m http.server

2. Add your own repository on top of your /etc/apk/repositories file on the phone (remember to adjust the IP):

   # 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

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