phpquery command not found

In this troubleshooting guide we learn how to fix phpquery command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

phpquery: command not found

or when using sudo you get the following error message

sudo: phpquery: command not found

Solutions to phpquery: command not found

How To Fix phpquery: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu phpquery is provided by php-common package.

php-common is:

This package contains common utilities shared among all packaged PHP versions.

PHP (recursive acronym for PHP: Hypertext Preprocessor) is a widely-used open source general-purpose scripting language that is especially suited for web development and can be embedded into HTML.

To fix this problem, we can install more using the command below.

sudo apt-get -y install php-common

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install php-common.

sudo apt -y install php-common

Or if you have aptitude installed you can use the following command.

sudo aptitude install php-common

Summary

In this tutorial we learn how to fix phpquery command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.