W
W
WebDev2016-12-03 00:43:12
ubuntu
WebDev, 2016-12-03 00:43:12

How to find out which package from the repository is already installed?

I install, for example, php from the repository. To do this, I do apt-cache search ^php. I'm offered just php and php7.0. How do I know if something is already installed on the system? Maybe someone before me installed some other version?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2016-12-03
@kirill-93

dpkg -l | grep php?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question