Hello,
I wish to know if it is possible to update my packages installed without having to check them one by one.
Here is some time already that I seek this solution on the forum.
Thank you in advance.
Topic: Update of the packages
The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
From console command line use 'opkg update', 'opkg list-upgradable' and 'opkg upgrade <pkg>'
http://wiki.openwrt.org/doc/techref/opkg
root@OpenWrt:~# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Inflating http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/snapshots.
root@OpenWrt:~# opkg list-upgradable
Multiple packages (kernel and kernel) providing same name marked HOLD or PREFER. Using latest.
base-files - 103-r29865 - 103-r29936
ddns-scripts - 1.0.0-17 - 1.0.0-18
hostapd-utils - 20111103-2 - 20111103-3
rrdtool1 - 1.0.50-1 - 1.0.50-2
wpad - 20111103-2 - 20111103-3
root@OpenWrt:~# opkg
opkg must have one sub-command argument
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:
Package Manipulation:
update Update list of available packages
upgrade <pkgs> Upgrade packages
install <pkgs> Install package(s)
configure <pkgs> Configure unpacked package(s)
remove <pkgs|regexp> Remove package(s)
flag <flag> <pkgs> Flag package(s)
<flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)
Informational Commands:
list List available packages
list-installed List installed packages
list-upgradable List installed and upgradable packages
list-changed-conffiles List user modified configuration files
...
(Last edited by hnyman on 29 Jan 2012, 13:35)
Brilliant, it is exactly what I wish. Thank you.
The first two orders seem functional. But it blocks for the last.
root@WNDR3700 /root# opkg upgrade <pkg>
-ash: syntax error: unexpected newline
Brilliant, it is exactly what I wish. Thank you.
The first two orders seem functional. But it blocks for the last.root@WNDR3700 /root# opkg upgrade <pkg> -ash: syntax error: unexpected newline
What did you use as <pkg> ?
(I guess it should be either empty or the name of the specific package to be upgraded)
root@WNDR3700 /root# opkg update
Downloading http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Inflating http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/snapshots.
Downloading http://enduser.subsignal.org/~trondah/packages/Packages.gz.
Inflating http://enduser.subsignal.org/~trondah/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/arokh.
The second order indicates that there are packages which are not up to date.
...
OLD or PREFER. Using latest.
kmod-usb-ohci - 3.1.7-1 - 3.2.2-1
luci-sgi-cgi - trunk+svn8187-1 - trunk+svn8193-1
hostapd-utils - 20111103-2 - 20111103-3
minidlna-cvs - 20120122-1 - 20120129-1
luci-app-qos - trunk+svn8187-1 - trunk+svn8193-1
luci-app-ddns - trunk+svn8187-1 - trunk+svn8193-1
Multiple packages (kmod-usb2 and kmod-usb2) providing same name marked HOLD or PREFER. Using latest.
Multiple packages (kmod-usb2 and kmod-usb2) providing same name marked HOLD or PREFER. Using latest.
kmod-usb2 - 3.1.7-1 - 3.2.2-1
...
It seems that I missed something.
Thus which are the options for the third order?
@+
Now I have exactly what I wanted.
opkg update
opkg list-upgradable
opkg upgrade $(opkg list-upgradable)
The discussion might have continued from here.