Of course it's not installable so won't be listed in the end. will attempt to install any package having at least one character: all of them, and will of course fail for conflicts.įor the small details: php4-cli doesn't exist in Jessie, but is referenced by an other package ( php-xajax) that's why it's selected as candidate since it matched the regex. Please note the usage of ^ and $ to delimit start and end of the package name selected: once the expression is used as a regex, it can be any part of a package's name, so better be careful. This will install php5-cli and its dependencies. The following extra packages will be installed: Note, selecting 'php5-cli' for regex '^php -cli$' Note, selecting 'php4-cli' for regex '^php -cli$' To install any php cli numbered version, that would be: # apt-get install '^php -cli$' Your search would be: $ apt-cache search -names-only 'php -cli' Dependabot commands and options pip: bump regex from 2022.10.31 to 2023.3. You can also trigger a rebase manually by commenting dependabot rebase. ![]() Commits Dependabot will resolve any conflicts with this PR as long as you dont alter it yourself. A digit in a regular expression can be represended by (or for fun ] as an extended regular expression syntax). Bumps regex from 2022.10.31 to 2023.3.22. \d means a digit only in a PCRE and has no special meaning in BRE or ERE. I do not want the Google API for PHP, so I try to use regex, but as shown above it just does not accept \d.Īpt-get accepts (extended) regular expressions, not Perl Compatible Regular Expression. So there's no -names-only option available: consider apt-get is under permanent effect of this option. This regex will be used only to match package name(s) from the list of known packages. It will try a package name verbatim, and if not found, will consider the parameter as a regex (while not really documented, actually an extended regular expression). Now apt-get doesn't care about description. names-only restricts this search only to the package names. Is it possible to use -name-only somehow with apt-get install, not apt-cache search.īy default apt-cache search searches informations from the available package names and their long description. I do not want the Google API for PHP, so I try to use regex, but as shown above it just does not accept \d. Php5-cli - command-line interpreter for the php5 scripting language Php-google-api-php-client - Google APIs client library for apt-cache search -names-only apt-cache search -names-only apt-cache search -names-only apt-cache search -names-only "php5-cli$" I googled for an answer but what I get only confused me: sudo apt-get install -names-only "php*-cli"Į: Command line option -names-only is not sudo apt-cache search -names-only php-cli when running on a recent ubuntu server offering php7, I do not want to specify php5-cli. However, to make my script more robust, e.g. ![]() Here is what I do: sudo apt-get install php-cli Number of marked subexpressions plus 1, that is, 1 e.I am running Debian 8 Jessie, trying to install PHP command line intepreter from a shell script. The number of comparisons can increase as an exponential function of the number of characters in the input string. In either case, the object m is updated, as follows: Nesting quantifiers, such as the regular expression pattern (a), can increase the number of comparisons that the regular expression engine must perform. Returns true if a match exists, false otherwise. BidirIt must meet the requirements of LegacyBidirectionalIterator.
0 Comments
Leave a Reply. |