Skip to content

Instantly share code, notes, and snippets.

@yurenchen000
Last active December 21, 2019 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurenchen000/dd211ef993d987278cb3ddb672fee98b to your computer and use it in GitHub Desktop.
Save yurenchen000/dd211ef993d987278cb3ddb672fee98b to your computer and use it in GitHub Desktop.
opkg compare-versions operator oddly

$ opkg --help

compare-versions <v1> <op> <v2>
                    compare versions using <= < > >= = << >>

$ man build_dir/hostpkg/opkg-2017-12-07-3b417b9f/man/opkg-cl.1.in

compare-version <version1> <operator> <version2>
       compare versions using following operators :

       <<   less than
       <    less than or equal to
       <=   less than or equal to
        =   equal to
       >=   greater than or equal to
       >    greater than or equal to
       >>   greater than

be carefull with

  • < -- less than or equal to
  • > -- greater than or equal to
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment