summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV.Krishn <vkrishn@insteps.net>2024-02-02 15:23:34 +0530
committerV.Krishn <vkrishn@insteps.net>2024-02-02 15:23:34 +0530
commita0aa48192db8a302766c84ff9ff84783e8a4eca2 (patch)
tree37b56ee32c38859ca7f0bb56dfdf171bccab9998
parent6d25145b7329e59628a571957e8a0f8d2b654cce (diff)
downloadapklist-dev.tar.bz2
add binding script textsdev
-rw-r--r--community.txt38
-rw-r--r--main.txt38
-rw-r--r--testing.txt38
3 files changed, 114 insertions, 0 deletions
diff --git a/community.txt b/community.txt
new file mode 100644
index 0000000..73a3a5a
--- /dev/null
+++ b/community.txt
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+# 1.
+MYREPO=/media/usb/apks2/alpine/v3.18
+MYCOMMUNITY=${MYREPO}/community/
+mkdir -p ${MYCOMMUNITY}/x86_64
+cd ${MYREPO}
+# copy paste here the script above as 'fetch-apk.sh'
+
+# 2a.
+# get index file
+wget http://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
+mv APKINDEX.tar.gz ./community/x86_64/
+
+# 2b.
+# add following in /etc/apk/repositories
+/media/usb/apks2/alpine/v3.18/community
+
+# 2c.
+apk update
+
+# 3a.
+# run usual 'apk add'
+apk add <pkg names>
+
+# 3b.
+# get apks pkgs from community repo
+sh fetch-apk.sh community mklist
+sh fetch-apk.sh community fetch
+mv *.apk ./community/x86_64/
+
+# 4a.
+apk fix # this will install pkgs as added in step 3a above
+
+# NOTE: this whole process can be repeated for other branches too,
+# namely: main, community, testing
+
+
diff --git a/main.txt b/main.txt
new file mode 100644
index 0000000..3b66896
--- /dev/null
+++ b/main.txt
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+# 1.
+MYREPO=/media/usb/apks2/alpine/v3.18
+MYMAIN=${MYREPO}/main/
+mkdir -p ${MYMAIN}/x86_64
+cd ${MYREPO}
+# copy paste here the script above as 'fetch-apk.sh'
+
+# 2a.
+# get index file
+wget http://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
+mv APKINDEX.tar.gz ./main/x86_64/
+
+# 2b.
+# add following in /etc/apk/repositories
+/media/usb/apks2/alpine/v3.18/main
+
+# 2c.
+apk update
+
+# 3a.
+# run usual 'apk add'
+apk add <pkg names>
+
+# 3b.
+# get apks pkgs from main repo
+sh fetch-apk.sh main mklist
+sh fetch-apk.sh main fetch
+mv *.apk ./main/x86_64/
+
+# 4a.
+apk fix # this will install pkgs as added in step 3a above
+
+# NOTE: this whole process can be repeated for other branches too,
+# namely: main, community, testing
+
+
diff --git a/testing.txt b/testing.txt
new file mode 100644
index 0000000..8c26df4
--- /dev/null
+++ b/testing.txt
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+# 1.
+MYREPO=/media/usb/apks2/alpine/v3.18
+MYTESTING=${MYREPO}/testing/
+mkdir -p ${MYTESTING}/x86_64
+cd ${MYREPO}
+# copy paste here the script above as 'fetch-apk.sh'
+
+# 2a.
+# get index file
+wget http://dl-cdn.alpinelinux.org/alpine/v3.18/testing/x86_64/APKINDEX.tar.gz
+mv APKINDEX.tar.gz ./testing/x86_64/
+
+# 2b.
+# add following in /etc/apk/repositories
+/media/usb/apks2/alpine/v3.18/testing
+
+# 2c.
+apk update
+
+# 3a.
+# run usual 'apk add'
+apk add <pkg names>
+
+# 3b.
+# get apks pkgs from testing repo
+sh fetch-apk.sh testing mklist
+sh fetch-apk.sh testing fetch
+mv *.apk ./testing/x86_64/
+
+# 4a.
+apk fix # this will install pkgs as added in step 3a above
+
+# NOTE: this whole process can be repeated for other branches too,
+# namely: main, community, testing
+
+