LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 09-20-2014, 11:29 AM   #1
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Rep: Reputation: 3
Finding which compilers are installed on CentOS


I am using CentOS 6.5 and would like a shell command to see which compilers are installed. On Debian, I obtained such a list using

Code:
sudo dpkg --list | grep compiler
However, on CentOS, this resulted in

Code:
sudo: dpkg: command not found
Code:
sudo yum install dpkg
resulted in

Code:
No package dpkg available.
 
Old 09-20-2014, 12:48 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Next to distro-agnostic local commands like whatis, whereis, which, locate, 'man -k' or apropos the main source of information should be https://www.centos.org/docs/ and wiki.centos.org/Documentation. Reading it (try it!) explains CentOS package management is RPM. Most package management tasks can be done using the 'rpm' command and its Yum front-end. RPM categorizes "sets of packages" into groups. You can find the list in /usr/share/doc/rpm*/GROUPS. (Note the RPM definition of groups does not necessarily equal the Yum one.) One of them is called "Development". 'man rpm' (try it!) explains querying in rpm requires "-q" and to select by group you use "-g". The result should be something like
Code:
rpm -q -g "Development/Languages"
or maybe
Code:
rpm -q -g "Development/Languages" --qf="%{name}\n"|sort|nl
 
3 members found this post helpful.
Old 09-26-2014, 07:14 AM   #3
OtagoHarbour
Member
 
Registered: Oct 2011
Posts: 332

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by unSpawn View Post
Next to distro-agnostic local commands like whatis, whereis, which, locate, 'man -k' or apropos the main source of information should be https://www.centos.org/docs/ and wiki.centos.org/Documentation. Reading it (try it!) explains CentOS package management is RPM. Most package management tasks can be done using the 'rpm' command and its Yum front-end. RPM categorizes "sets of packages" into groups. You can find the list in /usr/share/doc/rpm*/GROUPS. (Note the RPM definition of groups does not necessarily equal the Yum one.) One of them is called "Development". 'man rpm' (try it!) explains querying in rpm requires "-q" and to select by group you use "-g". The result should be something like
Code:
rpm -q -g "Development/Languages"
or maybe
Code:
rpm -q -g "Development/Languages" --qf="%{name}\n"|sort|nl
Thank you for your reply. The latter call worked (didn't need the |nl). It showed some application that were not installed. I checked whether they were with whereis.

Thanks,
OH
 
  


Reply

Tags
centos6, compilers, dpkg



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to use one of the two installed compilers to compile a program in open suse11.1 sonu kumar Linux - Newbie 3 09-03-2009 09:27 AM
Two Java compilers installed . kk2202 Red Hat 2 05-18-2009 08:36 AM
FREE Compilers and Cross-Compilers for LINUX and WINDOWS. Bernstein34 Linux - Software 1 05-05-2008 12:54 PM
Two Compilers Installed - What Command to Use? rrrssssss Linux - Software 2 01-13-2006 03:38 AM
What compilers/ libraries ect do I need installed so that I can compile most software jimdaworm Linux - Newbie 2 09-12-2003 03:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 07:12 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