Upgrading OpenWRT and reinstalling packages

Before upgrade, save the list of installed packages:

  • opkg list-installed > /etc/config/packages.installed

Download upgrade:

  • wget -O /tmp/upgrade.tar http://downloads.openwrt.org/snapshots/trunk/mvebu/generic/openwrt-mvebu-armada-xp-linksys-mamba-squashfs-sysupgrade.tar

Upgrade:

  • sysupgrade -v /tmp/upgrade.tar

After upgrade, these steps update the opkg packages and reinstall the packages from the saved packages list.

  • opkg update
  • opkg install $( cut -f 1 -d ' ' < /etc/config/packages.installed )

Find the conflicted opkg config files, and remove them if desired (command not shown):

  • cd /
  • find | grep -e -opkg\$

Steps taken from http://techfindings.one/archives/1696

Published Sun, 15 Nov 2015 @ 8:01 AM by chuacw
Related articles:

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Enter the following code to ensure that your comment reaches the intended party:
Enter the numbers you see in the image: