how to store apk files with lbu
#1
Sat, 2016-06-04 16:16
neilblue
-
- Offline
- 1 year 5 months ago
- 2016-06-04
Hello,
I am just discovering alpine linux and it is great. I have set up a bootable usb and can store my updated /etc folder with the lbu tool. Just what I have been looking for :)
Now I want to install packages with apk and have these updates stored with lbu too. I can see there is an option to include extra locations with lbu, but my question: Is there a way to find all the local file changes following an 'apk add' to include in the config file, or is there a better way to do this?
Thanks
Neil
OK so I have now found that creating the apk cache during setup manages this. Now I just need to find how to keep additional installs, and in particular docker compose which is installed with pip install docker-compose. I think I need to find all the directories that it is installed in but this seems like I would need to store all of /usr/bin?
So did this work out in the end?
I'm also trying to get a USB powered installation of Alpine going. I followed the wiki article on creating a bootable USB but it wasn't persistent. I missed that part (it's not clear in the article, but it is suggested). I ultimately intend to install Chromium and couple other GUI utilities so I'll want to persist all those settings too.
No I didn't get the whole docker setup due to come issues with the c library. But as I remember for storing apk's you can define them during the creation process and they are re-installed on boot, and for your app settings you can specify additional directories to be persisted in the image. However I haven't done any more work on this since the post.
These steps works for me, so docker-compose persisted after reboot, but I do not like it, because the alpine OVL file will be huge: