User Tools

Site Tools


doc:techref:opkg

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 14:58]
tboege
doc:techref:opkg [2017/09/08 18:08] (current)
tmomas alte Version wiederhergestellt (2017/08/29 05:14)
Line 342: Line 342:
 PACKAGES=`opkg --force-space --noaction install $1 | grep "​http:"​ | cut -f 2 -d ' ' | sed '​s/​\.$//'​` PACKAGES=`opkg --force-space --noaction install $1 | grep "​http:"​ | cut -f 2 -d ' ' | sed '​s/​\.$//'​`
 opkg update opkg update
-sed '​s/​\(^.*\)\(http\:​\/​\/​.*ipk\).*/​\2/'​ 
 for i in $PACKAGES for i in $PACKAGES
 do do
Line 369: 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.1489499919.txt.bz2 · Last modified: 2017/03/14 14:58 by tboege