PINE64
How to install software - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: PostmarketOS on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=124)
+---- Thread: How to install software (/showthread.php?tid=14124)



How to install software - AndyM - 06-06-2021

I think that perhaps I need to add some more repositories in order to install some more software. For example:

lingot
pysolfc

for lingot I simply get

$ sudo apk add lingot
[sudo] password for user:
fetch http://mirror.postmarketos.org/postmarketos/v21.03/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.13/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.13/community/aarch64/APKINDEX.tar.gz
ERROR: unable to select packages:
  lingot (no such package):
    required by: world[lingot]

If I try:
$ sudo apk search -v -d pysol
I get
py3-pysol-cards-0.10.1-r0 - Deal PySol FC Cards

$ sudo apk add (any one of:
for pysol, pysolfc, py3-pysol) I get the same result

I have not used alpine before, so I am learning ... slowly Smile

Thanks

Andrew


RE: How to install software - luney - 06-06-2021

(06-06-2021, 07:53 AM)AndyM Wrote: I think that perhaps I need to add some more repositories in order to install some more software. For example:

lingot
pysolfc

for lingot I simply get

$ sudo apk add lingot
[sudo] password for user:
fetch http://mirror.postmarketos.org/postmarketos/v21.03/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.13/main/aarch64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.13/community/aarch64/APKINDEX.tar.gz
ERROR: unable to select packages:
  lingot (no such package):
    required by: world[lingot]

If I try:
$ sudo apk search -v -d pysol
I get
py3-pysol-cards-0.10.1-r0 - Deal PySol FC Cards

$ sudo apk add (any one of:
for pysol, pysolfc, py3-pysol) I get the same result

I have not used alpine before, so I am learning ... slowly Smile

Thanks

Andrew
APK is an app manager. So when you have that result, that means it isn't part of APK. There are several other ways to install applications, such as using make, flatpak, snap, etc. The success of the installs will depend on many factors, such as, can it run on amd64. Alpine is a very small in size linux flavor made for imbedded systems. For example, mkchromecast isn't available in apk and I could install from sources, but it would be a chore, because of the dependencies needed for postmarket as well. Meanwhile is it available on mobian in the GUI. So you have many options, but APK isn't one of them. 
 
You can turn the endeavor into a contribution as well. You could look into building and adding it to apk.


RE: How to install software - orbinaut - 06-07-2021

Alpine --and therefore Postmarketos-- has two channels, edge and stable. The two have separate repositories with edge being a rolling release, like Arch; and stable being a point release, like Debian. From the repositories listed in your post it looks like you are on stable.
Lingot, at least, is in the repos, however it is only on edge. If you want to switch to the edge branch unfortunately it will probably be better to reinstall Postmarketos.


RE: How to install software - AndyM - 06-08-2021

Thanks for the replies. I have two repos in /etc/apk/repositories. I installed using pmbootstrap because I when I copied the prebuilt image using dd it would not boot, so I am not sure whether I have edge or not. Is there an easy way to tell? Now is the time to reinstall if that is necessary.

OK, I am on v21.03. I will reinstall edge.

Thanks for the help


RE: How to install software - AndyM - 06-09-2021

For information after installing edge I have four repositories listed:
http://mirror.postmarketos.org/postmarketos/master
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing


RE: How to install software - iwm - 11-10-2021

(06-09-2021, 12:53 AM)AndyM Wrote: For information after installing edge I have four repositories listed:
http://mirror.postmarketos.org/postmarketos/master
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing

Listed where?


RE: How to install software - AndyM - 11-11-2021

Quote:The list of repositories is stored in /etc/apk/repositories configuration file. Use the cat command to view /etc/apk/repositories file i.e. type cat /etc/apk/repositories
https://www.cyberciti.biz/faq/10-alpine-linux-apk-command-examples/


RE: How to install software - iwm - 11-13-2021

(11-10-2021, 05:58 PM)iwm Wrote:
(06-09-2021, 12:53 AM)AndyM Wrote: For information after installing edge I have four repositories listed:
http://mirror.postmarketos.org/postmarketos/master
http://dl-cdn.alpinelinux.org/alpine/edge/main
http://dl-cdn.alpinelinux.org/alpine/edge/community
http://dl-cdn.alpinelinux.org/alpine/edge/testing

Listed where?

I have "v3,14" instead of "edge" and no testing line.  Should I add the testing line and replace the versions with "edge"?


RE: How to install software - AndyM - 11-14-2021

Sorry I am not using PMOS any more so it would be better for someone else to answer you question/ I would suggest that you read the rest of this post, oi may help. Smile

Best of luck