Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

(solved) Config file need updating on first Gentoo system.

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

(solved) Config file need updating on first Gentoo system.

  • Quote

Post by anarchosax » Sun Dec 07, 2025 4:19 pm

I am getting the following message:

Code: Select all

 * IMPORTANT: 4 config files in '/etc' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
I have done as suggested and read the relevant sections of the emerge man page. I understand that at least at this time, it is a good idea to keep the config protect variable, however, I don't understand what I can do to solve the situation...
Last edited by anarchosax on Mon Dec 08, 2025 7:18 pm, edited 1 time in total.
Top
GDH-gentoo
Advocate
Advocate
User avatar
Posts: 2115
Joined: Sat Jul 20, 2019 7:02 pm
Location: South America

  • Quote

Post by GDH-gentoo » Sun Dec 07, 2025 4:38 pm

Have a look at this part of the Handbook.
Ionen wrote:As a packager I just don't want things to get messier with weird build systems and multiple toolchains requirements though :)
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Dec 07, 2025 4:43 pm

anarchosax,

There are a couple of tools to help.

The old school way is

Code: Select all

etc-update
The newer way is

Code: Select all

conf-update
I predate conf-update, so I still use etc-update.
I'm not recommanding either.

conf-update will need to be emerged and configured to your taste. It can do things like backup files you are about to change, in case you want to go back.

In general that are two sorts of changes.
1. Updates to files you have not changed. You should probably accept those but do read the diff and make up your own mind.
2. Updates to files you have edited. Be careful with these. etc-update will offer the new default, which will throw away your changes. You won't want that. etc-update at least lets you merge the old and new files. Even then, you may need to edit the merged file.

Looking is free. You can always Ignore Update and come back to it later.
Its always a good idea to keep the config protect variable. Without that, portage will go ahead and overwrite you configuration files without asking.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sun Dec 07, 2025 4:45 pm

GDH-gentoo,

I must be getting old :)
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
flexibeast
l33t
l33t
Posts: 682
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Mon Dec 08, 2025 1:36 am

i've been using dispatch-conf, which i've not had any issues with; should i instead be using conf-update?
https://wiki.gentoo.org/wiki/User:Flexibeast
My most recent wiki contributions
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2403
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Mon Dec 08, 2025 9:55 am

You can use whatever floats your boat. IMHO etc-update and similar are for wimps - real men/women use "diff -yW200" and "nano". (Actually, that should read "emacs", but that's a can of worms into which I've never dipped a toe) :-)
Greybeard
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Mon Dec 08, 2025 4:16 pm

Goverp wrote:You can use whatever floats your boat. IMHO etc-update and similar are for wimps - real men/women use "diff -yW200" and "nano". (Actually, that should read "emacs", but that's a can of worms into which I've never dipped a toe) :-)
I am not at all adverse to KISS solutions, such as the one you suggest, if for no other reason than to learn, however as a new Gentoo user, I am wondering if there is as simple a way to determine which files the system message refers to? I realize that the mention of four files, refers to two versions of two files, but as I admittedly wasn't thinking of this issue at the time... I believe one should be /etc/portage/package.unmask, however the other, I am a bit more unclear about...
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56094
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Dec 08, 2025 4:33 pm

anarchosax,

Code: Select all

# etc-update
Scanning Configuration files...
The following is the list of files which need updating, each
configuration file is followed by a list of possible replacement files.
1) /etc/locale.gen (3)
2) /etc/sudoers (1)
3) /etc/libvirt/libvirtd.conf (1)
Please select a file to edit by entering the corresponding number.
              (don't use -3, -5, -7 or -9 if you're unsure what to do)
              (-1 to exit) (-3 to auto merge all files)
                           (-5 to auto-merge AND not use 'mv -i')
                           (-7 to discard all updates)
                           (-9 to discard all updates AND not use 'rm -i'):
gives a list of files that need to be reviewed for update.
I've not tried the other tools.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2185
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Mon Dec 08, 2025 4:41 pm

anarchosax wrote:
Goverp wrote:You can use whatever floats your boat. IMHO etc-update and similar are for wimps - real men/women use "diff -yW200" and "nano". (Actually, that should read "emacs", but that's a can of worms into which I've never dipped a toe) :-)
I am not at all adverse to KISS solutions, such as the one you suggest, if for no other reason than to learn, however as a new Gentoo user, I am wondering if there is as simple a way to determine which files the system message refers to? I realize that the mention of four files, refers to two versions of two files, but as I admittedly wasn't thinking of this issue at the time... I believe one should be /etc/portage/package.unmask, however the other, I am a bit more unclear about...
What is the "other" you refer to? other tools for manage configuration file?

Have you tried any of those tools suggested? I know for etc-update usually allow see which configuration file(s) need to change and with options to see the diff.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3534
Joined: Thu Feb 22, 2018 2:29 pm

  • Quote

Post by logrusx » Mon Dec 08, 2025 4:51 pm

flexibeast wrote:i've been using dispatch-conf, which i've not had any issues with; should i instead be using conf-update?
Use what works for you. Conf-update is in no way better than dispatch-conf. It's just different. It's the first time I'm hearing about it but a simple eix search tells me it's ncurses based. If you like ncurses interfaces, you may like it.

p.s. it seems to be 10 years old now.

Best Regards,
Georgi
Top
Goverp
Advocate
Advocate
User avatar
Posts: 2403
Joined: Wed Mar 07, 2007 6:41 pm

  • Quote

Post by Goverp » Mon Dec 08, 2025 6:06 pm

anarchosax wrote:I am not at all adverse to KISS solutions, such as the one you suggest, if for no other reason than to learn, however as a new Gentoo user, I am wondering if there is as simple a way to determine which files the system message refers to? I realize that the mention of four files, refers to two versions of two files, but as I admittedly wasn't thinking of this issue at the time... I believe one should be /etc/portage/package.unmask, however the other, I am a bit more unclear about...
Portage puts updates for protected config files into a new file with the prefix "._cfg####_", where #### is a 4-digit sequence number. So

Code: Select all

find /etc -name '._cfg????_*' -type f
will list them for you. I guess that command or some equivalent is buried in etc-update, cfg_update, conf_update and whatever else.
Greybeard
Top
anarchosax
n00b
n00b
Posts: 53
Joined: Thu Nov 13, 2025 2:10 pm

  • Quote

Post by anarchosax » Mon Dec 08, 2025 7:18 pm

Goverp wrote:
anarchosax wrote:I am not at all adverse to KISS solutions, such as the one you suggest, if for no other reason than to learn, however as a new Gentoo user, I am wondering if there is as simple a way to determine which files the system message refers to? I realize that the mention of four files, refers to two versions of two files, but as I admittedly wasn't thinking of this issue at the time... I believe one should be /etc/portage/package.unmask, however the other, I am a bit more unclear about...
Portage puts updates for protected config files into a new file with the prefix "._cfg####_", where #### is a 4-digit sequence number. So

Code: Select all

find /etc -name '._cfg????_*' -type f
will list them for you. I guess that command or some equivalent is buried in etc-update, cfg_update, conf_update and whatever else.
Very cool, thanks. In my case, there were four versions of the package.use file, from when I was futzing around with librewolf and firefox. neither were actually installed, so I just needed to ensure that the content in the files was indeed in connection to the two web browsers and then I just deleted the files. No need to use etc-update, conf-update or dispatch-conf.

Thanks for all of the replies, I consider this thread solved.
Top
flexibeast
l33t
l33t
Posts: 682
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Tue Dec 09, 2025 4:34 am

Goverp wrote:You can use whatever floats your boat. IMHO etc-update and similar are for wimps - real men/women use "diff -yW200" and "nano".
:lol:
Goverp wrote:(Actually, that should read "emacs", but that's a can of worms into which I've never dipped a toe) :-)
Heh. :) i've been using Emacs for almost 30 years (although i regularly use Vim / Vi as well), and there's always more to learn ....
https://wiki.gentoo.org/wiki/User:Flexibeast
My most recent wiki contributions
Top
flexibeast
l33t
l33t
Posts: 682
Joined: Mon Apr 04, 2022 4:15 am
Location: Naarm/Melbourne, Australia
Contact:
Contact flexibeast
Website

  • Quote

Post by flexibeast » Tue Dec 09, 2025 4:38 am

logrusx wrote:Conf-update is in no way better than dispatch-conf. It's just different. It's the first time I'm hearing about it but a simple eix search tells me it's ncurses based. If you like ncurses interfaces, you may like it.
Ah okay. i generally don't use ncurses-based stuff, with a few exceptions (e.g. btop / top).
it seems to be 10 years old now.
Interesting .... i see dispatch-conf was last updated in June by sam_, so given that i'm happy with dispatch-conf, i might stick with it.

Thanks!
https://wiki.gentoo.org/wiki/User:Flexibeast
My most recent wiki contributions
Top
Post Reply

14 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic