How to add package to /etc/config/updater for auto update

How to modify /etc/config/updater for automatical update of installed new softwares? Eg.: nano, mysql-server etc.?

Default content of updater file is:

config pkglists 'pkglists'
	list lists 'base'
	list lists 'cacerts'
	list lists 'luci-controls'
	list lists 'lxc'
	list lists 'nas'
	list lists 'netutils'
	list lists 'shell-utils'

config override 'override'
	option disable '0'

As I understand it, it should happen automatically. All manually installed packages are stored in /etc/updater/auto.lua. When there’s an update available, they will get updated.

Ok so this message in luci “Mějte na paměti, že software nainstalovaný přes tuto stránku není automaticky aktualizován. Zvažte povolení seznamu balíčků v /etc/config/updater.” is little bit confusing.

Don’t install it using opkg, but put for example this: Install "mc" into file: /etc/updater/user.lua and run updater.
Be sure that you put this outside of comment section --[[ comment here ]]

This is probably a leftover from the previous version of updater, which is still in use on previous generations of Turris Routers. The package lists can be edited in the Foris interface.

[quote=“Weafyr, post:4, topic:1552”]
Don’t install it using opkg, but put for example this: Install “mc” into file: /etc/updater/user.lua and run updater.
[/quote]You will get the same result by installing with opkg. I think it’s much more convinient.

@Ondrej_Caletka and @Weafyr, thank you. So when I install software it is automatically added to auto updater no matter what message is luci says. Nice.

Found the leftover: (cc @sairon)

No, packages installed using opkg is not serviced by updater, using the file /etc/updater/user.lua you can select additional package that updater check,install and update.

You are wrong. Try it yourself:

# opkg install zsh
…
# tail -n1 /etc/updater/auto.lua 
Install "zsh"

You are right, this seems to me like something recently added, as when I installed packages for 1st time, add package to user.lua was the only way to add package for updater. Or maybe I didn’t notice it first time at all :slight_smile: Thanks anyway.

Hello

This should work even with factory image. You might get confused because there are two files. user.lua for user defined configuration. And auto.lua used for opkg (wrapper). auto.lua shouldn’t be edited by hand, otherwise you might break opkg wrapper.
Or you have just missed it.

Only situation (we know about) when opkg wrapper fails is when you remove package from user list. This was discussed somewhere here on forum.

Of course you might encounter bug, in such case we would be glad if you report it with way how to reproduce it.