![]() How to backup to an external hard drive. ![]() How to install Yahoo Messenger 9 or 10 or 11 on Zorin OS Graphics/Booting Issue after battery died Linux alternative to Internet download manager(IDM) ZorinOS10 - Manual partitioning offsetting partitions Old Zorin Forum archive Help and Support Topic Visit the new Zorin Forum here › If you have registered on the old forum, you will need to create an account on the new forum. Of course it's not installable so won't be listed in the end.This is a static archive of the old Zorin Forum. 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' A digit in a regular expression can be represended by (or for fun ] as an extended regular expression syntax). \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. ![]() sudo mv RSSOwlnix/ /opt/ Then type below command and hit enter to create a symlink. It will move this directory and all its contents to /opt/ folder. Then type your Ubuntu password and press the enter key. cd Desktop Then type the below command hit enter. However, to make my script more robust, e.g. Now open your Terminal app and type the below command in terminal and hit the enter key. Here is what I do: sudo apt-get install php-cli I am running Debian 8 Jessie, trying to install PHP command line intepreter from a shell script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |