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 ! :)
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 ! :)