$ sudo apt-cache policy <package name> Example: $ sudo apt-cache policy drush drush: Installed: 5.8-1 Candidate: 5.8-1 Version table: *** 5.8-1 0 500 http://dk.archive.ubuntu.com/ubuntu/ raring/universe amd64 Packages 100 / ...
Check if package is installed on CentOS
rpm -q <packagename> Example rpm -q iptables ...
Convert a timestamp to date in sql
Most sql servers, including MySQL, are able to do some conversions and calculations for you. This is relevant if you want to perform a query directly on the sql server or if you want the conversion or calculation to be done in the sql server before it is ...