Yesterday ,i have execute the command:
opkg update
Today, i have to install install some packages with opkg install,it says that can't find it.
opkg install coreutils-nohup
Unknown package 'coreutils-nohup'.
Collected errors:
* opkg_install_cmd: Cannot install package coreutils-nohup.
So i re-update and install packages.
How to keep opkg update permanently?
the opkg package list isn't saved in flash. so it's permanent until next reboot.
The opkg package list isn't saved in flash by default , can it be forced to be saved in specified disk?
you could try /etc/opkg.conf
root@OpenWrt:~# df /var
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 3932384 2908 3929476 0% /tmp
I want to mount /var on /.
root@OpenWrt:~#vim /etc/opkg.conf
dest root /
dest ram /tmp
dest /var /
lists_dir ext /var/opkg-lists
option overlay_root /overlay
option check_signature
Reboot my router , the /var is still mounted on /tmp.
trendy
June 12, 2021, 7:28pm
#6
You don't mount the /var
to /
in opkg. Leave /var
where it is and change the lists_dir
to e.g /root
1 Like
slh
June 13, 2021, 12:34am
#7
Keeping the downloaded package lists in a permanent location doesn't really make sense. Packages are constantly rebuilt and updated, so the package lists will get out of sync (at least-) ~daily. While that doesn't mean every installable package changes within that time frame, you still need to update in order to find out.
4 Likes