adding apk package manager to UDP Pro root device (not unifi-os) #415
osterlitz
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @boostchicken , not too sure how/where to add this (maybe a new folder for udm-utilities?)
This is for UniFi OS UDM 1.12.22 (Linux Unifi 4.19.152-al-linux-v10.2.0-v1.12.22.4309-4105ace) and HIGHLY EXPERIMENTAL.
You can use the following commands to add full package manager support on root level, turning the UDM Pro back into a less braindead Linux device. There may be incompatibilities as it's not compiled to be exactly AL 3.1.5, I have not verified more than kernel and busybox version.
curl http://dl-cdn.alpinelinux.org/alpine/v3.15/main/aarch64/apk-tools-static-2.12.7-r3.apk -o /apk-tools-static-2.12.7-r3.apk
tar xvz -C / -f /apk-tools-static-2.12.7-r3.apk sbin/apk.static
/sbin/apk.static --allow-untrusted --initdb -X http://dl-cdn.alpinelinux.org/alpine/v3.15/main add apk-tools-static alpine-keys
cat << EOT > /etc/apk/repositories
#/media/cdrom/apks
http://dl-cdn.alpinelinux.org/alpine/v3.15/main
http://dl-cdn.alpinelinux.org/alpine/v3.15/community
#http://dl-cdn.alpinelinux.org/alpine/edge/main
#http://dl-cdn.alpinelinux.org/alpine/edge/community
#http://dl-cdn.alpinelinux.org/alpine/edge/testing
EOT
/sbin/apk.static update
/sbin/apk.static add apk-tools curl
Best,
Stefan
PS: edited for cleaner code
Beta Was this translation helpful? Give feedback.
All reactions