Jump to content

Installing packages on a running phone: Difference between revisions

From postmarketOS Wiki
mNo edit summary
update "untrusted signature" bit
Line 19: Line 19:
3. Upgrade the package you have built with <code>apk upgrade [package name]</code>
3. Upgrade the package you have built with <code>apk upgrade [package name]</code>


If you get <code>UNTRUSTED signature</code> then try this <code>apk upgrade --allow-untrusted [package name</code>.
If you get <code>UNTRUSTED signature</code> and you trust your LAN, then you may consider <code>apk upgrade --allow-untrusted [package name]</code>. Beware of the security implications that <code>--allow-untrusted</code> has.


[[Category:Guide]]
[[Category:Guide]]

Revision as of 01:07, 31 January 2020

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]

If you get UNTRUSTED signature and you trust your LAN, then you may consider apk upgrade --allow-untrusted [package name]. Beware of the security implications that --allow-untrusted has.