Upgrading Alpine - v1.9.x: Difference between revisions

From Alpine Linux
m (Upgrading Alpine - HD v1.9.x moved to Upgrading Alpine - v1.9.x: Inaccurate page name. Also feel it's easier to have one page handling all the upgrade scenerios.)
(Merge content into "Upgrading Alpine", make redirect page)
 
(33 intermediate revisions by 10 users not shown)
Line 1: Line 1:
== Upgrading Alpine 1.9.x that runs on HD/CF/USB ==
#REDIRECT [[Upgrading Alpine]]
This document applies to alpine which is installed on HardDisk(HD), CompactFlash(CF) or USB.<BR>
 
All examples/instructions/actions mentioned in this document should be executed on the box that you are planning to upgrade (unless you are instructed otherwise).
 
{{Upgrading_Alpine_environmentvars}}
 
== Download a new Alpine Linux release ==
Start by checking that you have enough space on your media.<BR>
You need at least 400MB available space.
df -h | grep "Filesystem\|$LBU_MEDIA"
 
Start downloading a new '.iso' and a '.sha1' file
cd /media/$LBU_MEDIA
wget -c {{Latest_1.9_alpine_iso-mirror}}{{Latest_1.9_alpine_iso-filename}}
wget http://dev.alpinelinux.org/alpine/v1.9/iso/{{Latest_1.9_alpine_iso-filename}}.sha1
 
Check integrity of the downloaded files ''(it might take some time)''
sha1sum -c {{Latest_1.9_alpine_iso-filename}}.sha1
''The output of the above command should say 'OK'.<BR>''
''If says 'FAILED', delete the iso file and download it again.''
 
== Copy the new release  ==
 
Mount the ISO.
mkdir /tmp/alpine-new
mount -t iso9660 {{Latest_1.9_alpine_iso-filename}} /tmp/alpine-new
 
Back up file that you have modified ''(below is a list of files that might need backing up)''<BR>
'''''syslinux.cfg:''' You might have modified it to show console on a serial port''
 
cp /media/$LBU_MEDIA/syslinux.cfg /media/$LBU_MEDIA/syslinux.cfg.my
 
Copy the files:
 
cd /tmp/alpine-new
rsync --delete -rltv .alpine-release * /media/$LBU_MEDIA/
 
Restore your backed up files ''(in case you had any)''
 
mv -f /media/$LBU_MEDIA/syslinux.cfg.my /media/$LBU_MEDIA/syslinux.cfg
 
Make sure that all files are permanently saved in right place
 
sync
 
{{Upgrading_Alpine_executeupgradescript}}
 
== Clean up ==
Clean up the downloaded/unpacked files
umount /tmp/alpine-new
rmdir /tmp/alpine-new
rm /media/$LBU_MEDIA/{{Latest_1.9_alpine_iso-filename}}
rm /media/$LBU_MEDIA/{{Latest_1.9_alpine_iso-filename}}.sha1
 
== Save changes ==
Now that all upgrades are done, we should save our settings to our media (which you hopefully have backed up).
lbu ci
 
== Rebooting ==
In most cases you will need to reboot Alpine (especially if there are changes in the kernel):
reboot
'''''Note:''' If you know what you are doing, you might not need to reboot.<BR>But make sure that all services affected by the upgrade are restarted.''

Latest revision as of 01:07, 29 October 2012

Redirect to: