This really should work. It's maybe sorta ok for "apt-file list", but it also affects "apt-file find". Look:
dima@fatty:~$ apt-file find /usr/lib/aarch64-linux-gnu/libOpenCL.so dima@fatty:~$ apt-file -aarm64 find /usr/lib/aarch64-linux-gnu/libOpenCL.so nvidia-libopencl1: /usr/lib/aarch64-linux-gnu/libOpenCL.so.1 nvidia-libopencl1: /usr/lib/aarch64-linux-gnu/libOpenCL.so.1.0.0 ocl-icd-libopencl1: /usr/lib/aarch64-linux-gnu/libOpenCL.so.1 ocl-icd-libopencl1: /usr/lib/aarch64-linux-gnu/libOpenCL.so.1.0.0 ocl-icd-opencl-dev: /usr/lib/aarch64-linux-gnu/libOpenCL.so I.e. I asked it to tell me what package provides a file, and I had to tell it which architecture to look at. The whole point of apt-file is to look up the package name from a path, and if I have to tell IT things like the architecture, it loses a lot of its utility. Thanks.