Daniel Bahl

List installed packages in Ubuntu

Easy.

apt list --installed | grep php

This will show you all PHP packages installed on your server or workstation. If an update exists for a specific package, it will show in this list:

php7.1-cli/now 7.1.20-1+ubuntu16.04.1+deb.sury.org+1 amd64 [installed,upgradable to: 7.1.28-1+ubuntu16.04.1+deb.sury.org+3]

Here is an update for the package php-cli from version 7.1.20 to version 7.1.28.

Daniel Bahl

Creative nerd and developer from Denmark who loves to craft beautiful apps for servers, web and mobile. Fluent in PHP, Python and Swift. Linux-user since 1998, macOS-user since 2001. Co-owner and co-founder of Cloudportal.dk, v5.dk, Cloudnet.dk, WebReview.dk, ShareShortcuts.com, Appghost.com and several other awesome websites. You'll find links and more information about everything on this website including some snippets and notes from my worklife :)

Add comment

Who is Daniel Bahl?

🐦 Follow me on Twitter

Follow me on Twitter