Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just upgraded my OpenWRT router from 10.03.1-rc4 to rc5 (testing).

It looks like all my installed packages are gone. Is that the expected behaviour? If yes, I should be able to just reinstalled them and load the configs from the backup, correct?

share|improve this question
up vote 5 down vote accepted

The OpenWRT Wiki says you can't keep existing binaries, but need to reinstall them.

However, Tolaris gives the following command to take a list of your installed packages:

opkg list-installed | cut -f 1 -d ' '
share|improve this answer

You can backup your list of installed packages:

opkg list-installed | cut -f 1 -d ' ' > /etc/config/packages.list

(Put it into /etc/config folder so it will get retained between firmware updates)

and then after the update:

cat /etc/config/packages.list | opkg install
share|improve this answer
The cat part of this command never works for me so instead I do opkg install $(cat /etc/config/packages.list) which works perfectly :) – edude05 Jul 25 '14 at 13:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .