* -pj via openSUSE Users <users@lists.opensuse.org> [02-11-24 20:33]:
On 02-11-2024 06:36PM, Patrick Shanahan wrote:
* -pj via openSUSE Users <users@lists.opensuse.org> [02-11-24 18:08]:
Hi, I was reading a post here (if interested): https://forums.opensuse.org/t/do-i-have-to-babysit-updates-and-other-questio...
I decided to then pass rpmconfigcheck in Konsole.
Thinkcentre-M57p:~ # rpmconfigcheck Searching for unresolved configuration files Please check the following files (see /var/adm/rpmconfigcheck): /etc/chrony.conf.rpmnew /etc/postfix/main.cf.rpmnew /etc/postfix/master.cf.rpmnew Thinkcentre-M57p:~ # cat /var/adm/rpmconfigcheck /etc/chrony.conf.rpmnew /etc/postfix/main.cf.rpmnew /etc/postfix/master.cf.rpmnew Thinkcentre-M57p:~ #
In the post link above, one speaks of using 'diff' but it is unclear of how to use this to compare .rpm packages. How should I think of these rpmnew packages I see listed above?
meld/tkdiff /etc/cups/cupsd.conf.rpmnew /etc/cups/cupsd.con
transfer your personale changes from /etc/cups/cupsd.conf to /etc/cups/cupsd.conf.rpmnew, remove /etc/cups/cupsd.conf and save /etc/cups/cupsd.conf.rpmnew as /etc/cups/cupsd.conf
or copy the new parameters/lines from /etc/cups/cupsd.conf.rpmnew to /etc/cups/cupsd.conf, save and rm /etc/cups/cupsd.conf.rpmnew
Ok, so I would like to use the /etc/chrony.conf and /etc/chrony.conf.rpmnew files as an example. When I look at when they began life, I see: -rw-r----- 1 root chrony 1.3K Oct 10 2020 chrony.conf -rw-r----- 1 root chrony 1.5K Oct 5 13:24 chrony.conf.rpmnew
I believe chrony.rpm.new is more recent. diff -y chrony.conf chrony.conf.rpmnew shows the followwing information.
# Use public servers from the pool.ntp.org project. # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/j | # Please consider joining the pool (https://www.pool.ntp.org/ pool 0.opensuse.pool.ntp.org iburst < pool 1.opensuse.pool.ntp.org iburst < pool 2.opensuse.pool.ntp.org iburst < pool 3.opensuse.pool.ntp.org iburst < ! pool pool.ntp.org iburst ! pool pool.ntp.org iburst
# Record the rate at which the system clock gains/losses time # Record the rate at which the system clock gains/losses time driftfile /var/lib/chrony/drift driftfile /var/lib/chrony/drift
# Allow the system clock to be stepped in the first three upd # Allow the system clock to be stepped in the first three upd # if its offset is larger than 1 second. # if its offset is larger than 1 second. makestep 1.0 3 makestep 1.0 3
# Enable kernel synchronization of the real-time clock (RTC). # Enable kernel synchronization of the real-time clock (RTC). rtcsync rtcsync
# Enable hardware timestamping on all interfaces that support # Enable hardware timestamping on all interfaces that support #hwtimestamp * #hwtimestamp *
# Increase the minimum number of selectable sources required # Increase the minimum number of selectable sources required # the system clock. # the system clock. #minsources 2 #minsources 2
# Allow NTP client access from local network. # Allow NTP client access from local network. #allow 192.168.0.0/16 #allow 192.168.0.0/16
# Serve time even if not synchronized to a time source. # Serve time even if not synchronized to a time source. #local stratum 10 #local stratum 10
> # Require authentication (nts or key option) for all NTP sour > #authselectmode require > # Specify file containing keys for NTP authentication. # Specify file containing keys for NTP authentication. #keyfile /etc/chrony.keys #keyfile /etc/chrony.keys
> # Save NTS keys and cookies. > ntsdumpdir /var/lib/chrony > > # Insert/delete leap seconds by slewing instead of stepping. > #leapsecmode slew > # Get TAI-UTC offset and leap seconds from the system tz data # Get TAI-UTC offset and leap seconds from the system tz data #leapsectz right/UTC #leapsectz right/UTC
# Specify directory for log files. # Specify directory for log files. logdir /var/log/chrony logdir /var/log/chrony
# Select which information is logged. # Select which information is logged. #log measurements statistics tracking #log measurements statistics tracking
# Also include any directives found in configuration files in # Also include any directives found in configuration files in include /etc/chrony.d/*.conf include /etc/chrony.d/*.conf > > # Add sourcedir needed by NetworkManager DHCP dispatcher > sourcedir /run/chrony-dhcp > Thinkcentre-M57p:/etc #
How can I know which of the chrony type files contains the best options for my needs? In the case of this chrony.conf situation it appears most everything was added except for removal of pool 0-3 (at the top of the file). Is this common to review rpmconfigcheck? What is the best way to proceed with which options to put in these files? Where should I follow up with this more?
it will be much easier for you to compare the files using graphic editor such as "meld" or "tkdiff" the xxx.conf.rpmnew will contain different/new settings that you would apply to your xxx.conf you are the admin on your boxes. which need to be used is you decision. but it should be nearly obvious. "diff" if generally for a more knowledgable operator.