yum not responding

kanassu

New Member
Credits
18
'Yum' command returns to the command prompt without returning any output/report.

/usr/bin does not has gcc executable file.

How to fix the problem with yum and gcc?

Below are few outputs:

Code:
$ rpm -q rpm
rpm-4.11.3-25.el7.x86_64

$ rpm -q yum
yum-3.4.3-154.el7.noarch

$ ps -ef|grep yum
kanassu  39483  21092  0 22:01 pts/0    00:00:00 grep --color=auto yum

$ rpm -qa | grep yum
yum-langpacks-0.4.2-7.el7.noarch
yum-utils-1.1.31-50.el7.noarch
yum-metadata-parser-1.1.4-10.el7.x86_64
yum-3.4.3-154.el7.noarch
PackageKit-yum-1.1.10-1.el7.x86_64
yum-rhn-plugin-2.0.1-9.el7.noarch

$ ps aux | grep yum
kanassu  39740  0.0  0.0 112664   972 pts/0    S+   22:02   0:00 grep --color=auto yum

$ rpm -V yum
S.5....T.    /usr/bin/yum
 


dos2unix

Well-Known Member
Credits
1,042
Which Linux? redhat8, centOS8, and Fedora have moved away from yum to something called dnf.
However it does appear that yum is installed on your system.

If you want gcc, you'll likely want all the other packages needed to make it work.

yum group install -y "C Development Tools and Libraries"

group install installs all the packages in the development group.
-y means don't ask any questions during the install, just do it.
Since there are spaces in the name of the group, you'll need to put the group name in double quotes.

If you're running a 8.x version use this command instead...

dnf group install -y "C Development Tools and Libraries"

yum insn't a daemon/process that shows up in the output of "ps".
It's a binary that runs on demand (when you command it to run).

yum info gcc
yum search gcc
yum install gcc
yum remove gcc
yum whatprovides gcc

These are few commands to get you started.
 

kanassu

New Member
Credits
18
Which Linux? redhat8, centOS8, and Fedora have moved away from yum to something called dnf.
However it does appear that yum is installed on your system.

If you want gcc, you'll likely want all the other packages needed to make it work.

yum group install -y "C Development Tools and Libraries"

group install installs all the packages in the development group.
-y means don't ask any questions during the install, just do it.
Since there are spaces in the name of the group, you'll need to put the group name in double quotes.

If you're running a 8.x version use this command instead...

dnf group install -y "C Development Tools and Libraries"

yum insn't a daemon/process that shows up in the output of "ps".
It's a binary that runs on demand (when you command it to run).

yum info gcc
yum search gcc
yum install gcc
yum remove gcc
yum whatprovides gcc

These are few commands to get you started.

It is Redhat 7.4.

not yum command works. It returns directly to the command prompt.

$ yum
$ yum info
$ gcc
bash: gcc: command not found...
Similar command is: 'gc'
 

dos2unix

Well-Known Member
Credits
1,042
This isn't 3 commands, it's all 1 command.

yum search gcc <enter>

yum info gcc <enter>

yum by itself does nothing.
yum info with no package name after it does nothing.

yum install gcc <enter>
 


Members online


Latest posts

Top