User Tools

Site Tools


doc:techref:opkg
>>>>> Wiki-merge in process >>>>> wiki.openwrt.org + openwrt.org are going to be merged soon, this wiki therefore being read only. Once pages are transfered to openwrt.org, you can edit them again.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:techref:opkg [2017/03/14 15:01]
tboege minor cleanup
doc:techref:opkg [2017/09/08 18:08] (current)
tmomas alte Version wiederhergestellt (2017/08/29 05:14)
Line 368: Line 368:
 ==== Commands ==== ==== Commands ====
  
-To find installed ​pkgs of a specific install target (ex. USB) (**DRAWBACK!!! if any update availlableit will update the package, just be warned!!!**):​ +Find installed ​packages ​of a specific install target (eg ''​root''​, ''​usb''​)
- +
-''​for pkg in `opkg list-installed | sed -e "​s/​^([0-9A-Za-z\-]+) - .*$/​\1/​p"​ -n`; do opkg install $pkg; done | grep -i installed\ in\ <​TARGET>​''​+
  
 +<code bash>
 +# ALL
 +opkg list-installed |sed "s/ - .*//​p;​d"​ |xargs -n1 opkg files |sed "​s/​^Package \(.*\) and has .*/​\1/​p;​d"​
 +# Destination `usb'
 +opkg list-installed |sed "s/ - .*//​p;​d"​ |xargs -n1 opkg files |sed "​s/​^Package \(.*\) and has .*/​\1/​p;​d"​ |grep -w usb$
 +</​code>​
 ===== Notes ===== ===== Notes =====
 | {{:​meta:​icons:​tango:​48px-outdated.svg.png?​nolink}} | Since Trunk [[https://​dev.openwrt.org/​changeset/​23173|r23173]] respectively Backfire [[https://​dev.openwrt.org/​changeset/​23206|r23206]] the kernel and kmod packages are flagged as //hold//. \\ The ''​opkg upgrade''​ command won't attempt to update them anymore. | | {{:​meta:​icons:​tango:​48px-outdated.svg.png?​nolink}} | Since Trunk [[https://​dev.openwrt.org/​changeset/​23173|r23173]] respectively Backfire [[https://​dev.openwrt.org/​changeset/​23206|r23206]] the kernel and kmod packages are flagged as //hold//. \\ The ''​opkg upgrade''​ command won't attempt to update them anymore. |
doc/techref/opkg.1489500109.txt.bz2 · Last modified: 2017/03/14 15:01 by tboege