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
Next revisionBoth sides next revision
docs:guide-user:additional-software:opkg-to-apk-cheatsheet [2024/11/27 20:42] – [Add and remove] reformat ynezzdocs:guide-user:additional-software:opkg-to-apk-cheatsheet [2024/11/28 01:49] – Add another interesting variant efahlgren
Line 41: Line 41:
 ==== List commands ==== ==== List commands ====
  
-To reiterate, `Pis a file glob in the following. +To reiterate, ''[P]'' is a file glob in the following.
- +
-(editor's note: wrapping of the commands in the table is not optimal)+
  
 ^ apk ^ opkg ^ Description ^ ^ apk ^ opkg ^ Description ^
-{{apk list}} {{opkg list}} | show everything available | +''apk list'' ''opkg list'' | show everything available | 
-{{apk list P}} {{opkg list P}} | show matches for "P", or if you prefer regex then pipe through `grep+''apk list P'' ''opkg list P'' | show matches for ''P'', or if you prefer regex then pipe through ''grep'' 
-{{apk list --installed [P]}} {{opkg list-installed}} | show all installed or those matching "P+''apk list --installed [P]'' ''opkg list-installed'' | show all installed or those matching ''P'' 
-{{apk list --upgradeable [P]}} {{opkg list-upgradable}} | show upgradeable packages | +''apk list --upgradeable [P]'' ''opkg list-upgradable'' | show upgradeable packages | 
-{{apk list --providers [P]}} {{opkg -A whatprovides P}} | show all packages that provide "P|+''apk list --providers [P]'' ''opkg -A whatprovides P'' | show all packages that provide ''P'' |
  
 **Interesting variants** **Interesting variants**
- - `{{apk list --installed --orphaned}}` - shows any dependencies that have been orphaned, i.e., unused packages that may be safely {{del}}eted+ 
 +  * ''apk list --installed --orphaned'' - shows any dependencies that have been orphaned, i.e., unused packages that may be safely ''del''eted 
 +  * ''apk list --installed --manifest'' - produces a simple list of "package-name version" pairs that are easily parsed with ''awk'' or ''sed''
  
 **Comparative examples of listings:** **Comparative examples of listings:**
Line 88: Line 88:
 ==== Package Info ==== ==== Package Info ====
  
-^ apk ^ opkg ^ Description ^ +^ apk                                  ^ opkg              ^ Description                          
-{{apk info P}} {{opkg info P}} | show summary information | +''apk info P''                       ''opkg info P''   | show summary information             
-{{apk info --all P}} | no equivalent | show extensive information | +''apk info --all P''                 | no equivalent     | show extensive information           
-{{apk info --contents P}} {{opkg files P}} | show files contained in the package |+''apk info --contents P''            ''opkg files P''  | show files contained in the package  | 
 + 
 +==== Other operations ==== 
 + 
 +^ apk                                  ^ opkg              ^ Description                          ^ 
 +| ''apk extract --allow-untrusted P''  | ''tar -xvf P''    | extract contents of the package      |
  • Last modified: 2024/12/21 16:25
  • by efahlgren