I want to install a package manager on an embedded system that does not currently have one.
I know that the best way to do this is to use bitbake to simply bake a new image which includes a package manager and then flash that image to the board, but unfortunately I don't currently have access to all of the necessary pieces to build a full operating system image, so I need to hack it somehow.
The embedded system is running Automotive Grade Linux (Halibut 8.0.0).
sa8155:/etc# cat os-release
ID="auto"
NAME="auto"
VERSION="8.0.0 (halibut)"
VERSION_ID="8.0.0"
PRETTY_NAME="auto 8.0.0 (halibut)"
sa8155:/etc#
Linux kernel 4.14.146
😈 >adb shell
sa8155:~# uname -srm
Linux 4.14.146 aarch64
I'm not sure which version of glibc is installed as the system currently has no development tools:
sa8155:~# ldd --version
-sh: ldd: not found
sa8155:~# lsof -p $$ | grep libc | awk ' { print $NF" --version"; } ' | sh
-sh: lsof: not found
sa8155:~#
If I can get the package manager installed, the first thing I will do is install the development tools.
Also, I'm not sure about any other dependencies that the debian package manager may have.
apt
or doesn't even havedpkg
. dpkg installs / uninstalls packages but doesn't know how to download them or find their dependencies. apt downloads packages and their dependencies and then asks dpkg to install them.