LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 07-19-2023, 06:28 AM   #1
debianfella
LQ Newbie
 
Registered: Jul 2023
Posts: 15

Rep: Reputation: 0
How to install from stdout?


Hello !

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

To list the packages I do:

Code:
apt-cache pkgnames | grep php
The 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 !
 
Old 07-19-2023, 06:38 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320Reputation: 7320
you can find some ideas here: https://askubuntu.com/questions/2527...es-from-a-file
duplicate/continuation of https://www.linuxquestions.org/quest...ed-4175727083/

Last edited by pan64; 07-19-2023 at 07:32 AM.
 
Old 07-19-2023, 07:43 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
This seems very much to be a continuation of your earlier question as you've progressed with some knowledge on the topic. Members should see the those original thoughts in order to be able to help you more effectively.

Please continue to use your original question.

How to list all php extensions possible to be installed?

Please post your thread only once and in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tar - write to stdout & create log files ( from stdout and stderr ) [solved] paziulek Linux - General 2 02-23-2014 12:26 PM
How to redirect standard stdout to multi stdout ( Bash )? john.daker Programming 4 11-03-2008 11:20 PM
redirecting stdout to /dev/null and stderr to stdout? Thinking Programming 1 05-18-2006 02:36 AM
Redirecting stdout from tar to a text file. heatlill Programming 2 01-22-2002 10:27 AM
stdout for a background process GOLDF1NG3R Linux - General 3 11-14-2001 01:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration