Article 6D3H9 How to install from stdout?

How to install from stdout?

by
debianfella
from LinuxQuestions.org on (#6D3H9)
Hello !

Let's say that I want to install all official PHP packages

To list the packages I do:

Code:apt-cache pkgnames | grep phpThe stdout output is a list of 633 package names; some of the package names have the word php in the start or somewhere in the middle or in the end --- just once, or more.

How could I refer that list to an apt install command to install each one of these packages?

Thanks ! :)
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments