Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

up vote 3 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 at 13:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.