Updating configuration files

Anything that pertains to Portage

Moderator: Moderators

Post Reply
Isac
Baby Hen
Posts: 8
Joined: Thu Nov 27, 2008 22:46
Location: Sweden

Updating configuration files

Post by Isac » Fri Nov 28, 2008 22:47

Hi. Newbie question:

How do I update configuration files? Emerge tells me that I should do that, and also tells me to check the man page for Emerge, but that didn't teach me anything. Neither did Google, Gentoo Wiki, Gentoo Forums or Sabayon forums.

Thanks in advance,

I

edit: fixed a typo - I typed "configuration" but meant "Emerge" :P


Isac
Baby Hen
Posts: 8
Joined: Thu Nov 27, 2008 22:46
Location: Sweden

Re: Updating configuration files

Post by Isac » Fri Nov 28, 2008 23:21

Neither "etc-update" nor "dispatch-conf" work. They are installed (or they should be - I have emerged gentoolkit, which I need according to the Gentoo website, and I have the manpages), yet, when I try to run them, I get "command not found". What have I missed?

Well, I have to get some sleep now (it's 11:20 in the night here). I'll check back here first thing tomorrow. Good night!

wolfden
Sharecropper
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA
Contact:

Re: Updating configuration files

Post by wolfden » Sat Nov 29, 2008 0:06

as root u run them

Isac
Baby Hen
Posts: 8
Joined: Thu Nov 27, 2008 22:46
Location: Sweden

Re: Updating configuration files

Post by Isac » Sat Nov 29, 2008 14:01

Turns out I had a lot of things to do before I could check the forums, but now I'm back...
wolfden wrote:as root u run them
Yikes! I can't believe I didn't think of that! Now I'm ashamed... :oops:
Thanks a lot!

Isac
Baby Hen
Posts: 8
Joined: Thu Nov 27, 2008 22:46
Location: Sweden

Re: Updating configuration files

Post by Isac » Sat Nov 29, 2008 14:42

New question:

I ran "sudo dispatch-conf", and when it updated the second file that needed updating, I got this:

Code: Select all

>> (2 of 2) -- /etc/cups/mime.convs
>> q quit, h help, n next, e edit-new, z zap-new, u use-new [b]# here I pressed "u"[/b]
   m merge, t toggle-merge, l look-merge: dispatch-conf: Error renaming /etc/cups/._cfg0000_mime.convs to /etc/cups/mime.convs: [Errno 2] No such file or directory; fatal

Traceback (most recent call last):
  File "/usr/sbin/dispatch-conf", line 418, in <module>
    d.grind (portage.settings ['CONFIG_PROTECT'])
  File "/usr/sbin/dispatch-conf", line 284, in grind
    self.post_process(conf['current'])
  File "/usr/sbin/dispatch-conf", line 317, in post_process
    portage.dispatch_conf.file_archive_post_process(archive)
  File "//usr/lib/portage/pym/portage/dispatch_conf.py", line 161, in file_arch
There's one thing I don't understand here. Why did a file that supposedly doesn't exist make my computer say a file needed updating?

Well, at least

Code: Select all

sudo find /etc -iname '._cfg????_*'
doesn't give me anything anymore, and that's good, right?

wolfden
Sharecropper
Posts: 9051
Joined: Sat Jan 14, 2006 0:55
Location: Midwest USA
Contact:

Re: Updating configuration files

Post by wolfden » Sat Nov 29, 2008 23:46

if etc-update don't find anything - than your good

Post Reply