How to automatically re-install user installed packages when flashing updates

Hi

I was wondering is there a way to automatically install previously installed packages(by user) when I Flash a new update Ive worked out how to backup any files I've added/edited but I cant work out how to do this for packages Ive installed.

Thanks in advance

Tim

A good start is the search function of the forum ;- )

2 Likes

I have a simple script in the root folder that does that:

#Reinstall all packages

opkg update; opkg install collectd-mod-conntrack collectd-mod-df collectd-mod-disk collectd-mod-iptables collectd-mod-netlink collectd-mod-ping collectd-mod-processes collectd-mod-protocols collectd-mod-sensors collectd-mod-syslog collectd-mod-tcpconns collectd-mod-uptime collectd-mod-wireless

opkg install collectd-mod-logfile kmod-fs-f2fs e2fsprogs cfdisk tar darkstat bandwidthd f2fs-tools vsftpd-tls luci-app-wol bmon mailsend mpack ssmtp kmod-fs-cifs cifsmount transmission-daemon-openssl transmission-web luci-app-transmission kmod-ipt-ipset luci-theme-darkmatter

#Enable transmission, darkstat and collectd

/etc/init.d/darkstat enable;/etc/init.d/darkstat start;/etc/init.d/transmission enable; /etc/init.d/transmission start; /etc/init.d/collectd enable; /etc/init.d/collectd start;
3 Likes

Thank you for this just what I needed.

Glad you liked it :wink: