Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use Augeas to manage some options in yum.repos.d but it's not reading all repo files in there.

Any hint?

# ls -l /etc/yum.repos.d/
total 24
-rw-r--r-- 1 root root  200 Nov 10 15:50 3rd.repo
-rw-r--r-- 1 root root  279 Sep 10 14:21 Citrix.repo
-rw-r--r-- 1 root root  172 Nov 10 16:17 epel.repo
-rw-r--r-- 1 root root  172 Nov 10 15:21 ius.repo
-rw-r--r-- 1 root root 1308 Nov 10 15:21 os.repo

And in augtool:

# augtool ls /files/etc/yum.repos.d/
os.repo/ = (none)
Citrix.repo/ = (none)

Trying to debug in augtool:

# augtool ls /augeas/files/etc/yum.repos.d/
os.repo/ = (none)
Citrix.repo/ = (none)

Thanks in advance!

share|improve this question

I found that the not-loaded repo files had gpgkey= (without value) inside, and this was preventing augeas from loading them.

However, Augeas did not issue any errors. I had to find out myself.

share|improve this answer

Load errors can be found under /augeas//error. However, there used to be a bug where these kinds of errors where not reported in versions 0.7.2 and 0.7.3, which are shipped by default with quite a few versions of RedHat. This bug is now fixed and new versions of Augeas should report load errors properly.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.