How do I know if a package/list of package is installed
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm assuming Redhat or Fedora. If you are restricted to the command line, then use rpm or Yum (yum not available on real old versions of Redhat). If in a graphical environment, install Yumex ('yum install yumex').
And as suggested by lazlow, 'yum info package' (if you have yum repositories - we didn't have them until quite recently in work.)
Code:
[root@athlonz ~]# yum info gcc* grep
Loaded plugins: refresh-packagekit
Installed Packages
Name : gcc
Arch : x86_64
Version : 4.3.0
Release : 8
Size : 17 M
Repo : installed
Summary : Various compilers (C, C++, Objective-C, Java, ...)
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv2+ with exceptions
Description: The gcc package contains the GNU Compiler Collection version 4.3.
: You'll need this package in order to compile C code.
Name : gcc-c++
Arch : x86_64
Version : 4.3.0
Release : 8
Size : 9.6 M
Repo : installed
Summary : C++ support for GCC
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv2+ with exceptions
Description: This package adds C++ support to the GNU Compiler Collection.
: It includes support for most of the current C++ specification,
: including templates and exception handling.
Name : gcc-gfortran
Arch : x86_64
Version : 4.3.0
Release : 8
Size : 11 M
Repo : installed
Summary : Fortran 95 support
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv2+ with exceptions
Description: The gcc-gfortran package provides support for compiling Fortran 95
: programs with the GNU Compiler Collection.
Name : grep
Arch : x86_64
Version : 2.5.1
Release : 59.fc9
Size : 454 k
Repo : installed
Summary : The GNU versions of grep pattern matching utilities
URL : http://www.gnu.org/software/grep/
License : GPL
Description: The GNU versions of commonly used grep utilities. Grep searches
: through textual input for lines which contain a match to a specified
: pattern and then prints the matching lines. GNU's grep utilities
: include grep, egrep and fgrep.
:
: You should install grep on your system, because it is a very useful
: utility for searching through text.
Available Packages
Name : gcc-gnat
Arch : x86_64
Version : 4.3.0
Release : 8
Size : 13 M
Repo : fedora
Summary : Ada 95 support for GCC
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv2+ with exceptions
Description: GNAT is a GNU Ada 95 front-end to GCC. This package includes development tools,
: the documents and Ada 95 compiler.
Name : gcc-java
Arch : x86_64
Version : 4.3.0
Release : 8
Size : 3.3 M
Repo : fedora
Summary : Java support for GCC
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv2+ with exceptions
Description: This package adds support for compiling Java(tm) programs and
: bytecode into native code.
Name : gcc-objc
Arch : x86_64
Version : 4.3.0
Release : 8
Size : 3.3 M
Repo : fedora
Summary : Objective-C support for GCC
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv2+ with exceptions
Description: gcc-objc provides Objective-C support for the GCC.
: Mainly used on systems running NeXTSTEP, Objective-C is an
: object-oriented derivative of the C language.
Name : gcc-objc++
Arch : x86_64
Version : 4.3.0
Release : 8
Size : 3.5 M
Repo : fedora
Summary : Objective-C++ support for GCC
URL : http://gcc.gnu.org
License : GPLv3+ and GPLv2+ with exceptions
Description: gcc-objc++ package provides Objective-C++ support for the GCC.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.