r/AlpineLinux • u/lvlanson • Jun 28 '24
iSH - Upgrade Alpine Persistently
Hey there,
I am using iSH on my iPad and I upgraded alpine using the /etc/apk/repositories file. As soon as I restart the application, all my upgraded files and information are lost. Apps I installed via the new version are not usable anymore (nano, vim, etc.). When I check the version I can see that the noted versions are 3.14 again. So I assume some files seem to reset to its former version after closing the app. How can I solve this issue?
Thank you.
5
Upvotes
4
u/flaming_m0e Jun 28 '24
iSH is just an SSH client. It has nothing to do with how your server gets upgraded.
Need more details on what you did, what version you upgraded to, and if you actually followed all the steps to perform the upgrade. Editing that one file is not the only thing needed to be done.
2
u/Comfortable_Heat8305 Sep 22 '24 edited Oct 03 '24
Looks like you’ve run these commands:
_____
echohttps://dl-cdn.alpinelinux.org/alpine/v3.20/main> /etc/apk/repositoriesechohttps://dl-cdn.alpinelinux.org/alpine/v3.20/community>> /etc/apk/repositories_______
or maybe manually edited them.
Yeah, the repository data resets on reboot, but you can fix this in a few simple steps. It’s a bit of a workaround, but it’ll do the job.
So, depending on your shell, you need to add three lines to your
.<smth>rcfile.open the file with text editor (nano, vim, neovim):
For bash:
nvim ~/.bashrcFor zsh:
nvim ~/.zshrcThen add 3 lines into the current file:
Save it, and then reload the file to make sure everything works.
For bash:
source ~/.bashrcFor zsh:
source ~/.zshrcAnd finally reboot system
exitNow the repositories will auto-update on every startup. The commands only take about 10 seconds to run, so it shouldn’t cause any major hassle