2

Every time I run the yum command in Linux Redhat I get this error message:

CRITICAL:yum.cli:Config Error: Error accessing file for config file:///etc/yum.conf

I don't have any files regarding yum in my /etc directory. But I still seem to have yum installed since I get this message when I run "rpm -qi yum":

Name        : yum                          Relocations: (not relocatable)
Version     : 3.2.29                            Vendor: CentOS
Release     : 75.el6.centos                 Build Date: Tue Jul 12 11:45:52 2016
Install Date: Tue Oct 18 16:44:21 2016         Build Host: worker1.bsys.centos.org
Group       : System Environment/Base       Source RPM: yum-3.2.29-75.el6.centos.src.rpm
Size        : 4826214                          License: GPLv2+
Signature   : RSA/SHA1, Tue Jul 12 12:13:09 2016, Key ID 0946fca2c105b9de
Packager    : CentOS BuildSystem <http://bugs.centos.org>
URL         : http://yum.baseurl.org/
Summary     : RPM package installer/updater/manager
Description :
Yum is a utility that can check for and automatically download and
install updated RPM packages. Dependencies are obtained and downloaded
automatically, prompting the user for permission as necessary.
[email protected] [~]#

Any Idea why this is happening?

8
  • does whereis yum give you anything?
    – Narzard
    Jan 19, 2017 at 20:53
  • @Narzard It gives me this: yum: /usr/bin/yum /usr/share/man/man8/yum.8.gz Jan 19, 2017 at 20:55
  • is there a .conf file in that directory?
    – Narzard
    Jan 19, 2017 at 21:00
  • The problem is I can't even find the usr/bin directory Jan 19, 2017 at 21:03
  • 1
    When I type su - It again says I don't have permission. I'm on a web host called eHosts btw. Jan 19, 2017 at 22:13

1 Answer 1

3

When I type su - It again says I don't have permission. I'm on a web host called eHosts btw.

Are you on a shared hosting ? If yes, I think that, depending on the offer you paid for, you're not allowed to install packages.

You need to use sudo with yum, and if the root/admin user didn't added you to the sudoers list, then you can't install anything.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .