I want to install C++ on LINUX machine.
# rpm -qa | grep gcc
compat-libgcc-296-2.96-138
compat-gcc-34-g77-3.4.6-4
libgcc-4.1.2-48.el5
compat-gcc-34-c++-3.4.6-4
gcc-java-4.1.2-48.el5
compat-gcc-34-3.4.6-4
gcc-4.1.2-48.el5
# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
# yum search gcc
Loaded plugins: security
Existing lock /var/run/yum.pid: another copy is running as pid 5232.
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 00:52 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 00:54 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 00:56 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 00:58 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 01:00 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 01:02 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 01:04 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 01:06 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 01:08 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: yum
Memory : 13 M RSS ( 24 MB VSZ)
Started: Sun Feb 26 20:27:07 2017 - 01:10 ago
State : Uninteruptable, pid: 5232
Another app is currently holding the yum lock; waiting for it to exit...
# ps -ef | grep yum
root 5245 5074 0 20:27 pts/2 00:00:00 /usr/bin/python /usr/bin/yum search gcc
root 5266 4712 0 20:29 pts/1 00:00:00 grep yum