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?
* -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 -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
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?
* -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.
On 02-11-2024 07:39PM, Patrick Shanahan wrote:
* -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.
Ok, thanks for suggesting "meld" everything seems to have gone ok. I backed up the files and copied them over as such: -rw-r----- 1 root chrony 1.5K Oct 5 13:24 chrony.conf -rw-r----- 1 root root 1.3K Feb 11 21:18 chrony.conf.bak -rw-r----- 1 root root 1.5K Feb 11 21:21 chrony.conf.rpmnew.bak -rw-r--r-- 1 root root 33K Feb 11 22:02 main.cf -rw-r--r-- 1 root root 32K Feb 11 21:32 main.cf.bak -rw-r--r-- 1 root root 40K Feb 9 17:34 main.cf.default -rw-r--r-- 1 root root 33K Feb 11 21:48 main.cf.rpmnew.bak -I messed up on master.cf.bak though (see below). -rw-r--r-- 1 root root 8.6K Oct 9 03:51 master.cf -rw-r--r-- 1 root root 8.6K Feb 11 21:45 master.cf.rpmnew.bak Then passed 'postfix reload'. I was receiving the following: postfix: fatal: bad string length 0 < 1: myhostname = I opened "meld" as root, I compared /etc/postfix/main.cf *and* /etc/postfix/main.cf.bak then went down to the line: myhostname = *and* added localhost as shown in /etc/postfix/main.cf.bak . Saved the file and exited "meld". Now passing "postfix reload" postfix/postfix-script: refreshing the Postfix mail system . No errors from what is displayed. I would like to ask if I should keep these chrony.conf.rpmnew.bak , main.cf.rpmnew.bak and master.cf.rpmnew.bak ? There seems to be alot of changes at least in main.cf.rpmnew and main.cf when comparing with "meld". Also why is chrony.conf timestamp "Oct 5" when I just backed up and replaced it with the newer chrony.conf.rpmnew ? I just verified it's contents with "meld" and it has indeed the newer file contents. -Thanks
On 12/02/2024 01.36, 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?
https://en.opensuse.org/SDB:Offline_upgrade#Stale_configuration_files /etc/postfix/main.cf /master are complicated files. Unless you actually use postfix, ignore them and simply replace the config file with the rpmnew.
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
Much easier: meld /etc/cups/cupsd.conf.rpmnew /etc/cups/cupsd.conf transfer new parts from the rpmnew to your file (there are clickable arrows in meld indicating what you can do on each section), keeping the sections you want to keep from your file. Save changes, done. Then you can delete /etc/cups/cupsd.conf.rpmnew. Me, I do a backup of both files before starting. -- Saludos/Cheers Carlos E. R. (using Leap 15.2 on Andor)
Am 12.02.24 um 12:12 schrieb Carlos E. R.:
On 12/02/2024 01.36, 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?
https://en.opensuse.org/SDB:Offline_upgrade#Stale_configuration_files
/etc/postfix/main.cf /master are complicated files. Unless you actually use postfix, ignore them and simply replace the config file with the rpmnew.
Mh, postfix could be automatically enabled at your system and is working.. so do NOT use the new file. this will brake postfix. (the new file did not have ip-adresses etc. inculded)
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
Much easier:
meld /etc/cups/cupsd.conf.rpmnew /etc/cups/cupsd.conf
transfer new parts from the rpmnew to your file (there are clickable arrows in meld indicating what you can do on each section), keeping the sections you want to keep from your file. Save changes, done.
Then you can delete /etc/cups/cupsd.conf.rpmnew.
Me, I do a backup of both files before starting.
i prefer to use midnight commander "mc" there you could compare/edit files in an (for me) nice way in a left and right window. of course i would ALWAYS copy both files before editing to a save place, in my sytems i do it: /home/myhome/intallation/update20240104/rpmconfigchek/ and now here make subdirectorys like they are at the real filesystem: etc/postfix copy the files in. try to change the original files and check if the related things (in this case postfix) ist still working. expecially postfix you may have to learn a little bit before (read some stuff) until you know what is the best for your system. simoN -- www.becherer.de
* Simon Becherer <simon@becherer.de> [02-12-24 06:33]:
...
i prefer to use midnight commander "mc" there you could compare/edit files in an (for me) nice way in a left and right window. of course i would ALWAYS copy both files before editing to a save place, in my sytems i do it:
/home/myhome/intallation/update20240104/rpmconfigchek/ and now here make subdirectorys like they are at the real filesystem: etc/postfix copy the files in.
try to change the original files and check if the related things (in this case postfix) ist still working.
expecially postfix you may have to learn a little bit before (read some stuff) until you know what is the best for your system.
you should give a try to meld and tkdiff as both allow editing in place and keeping both files open for comparison at the same time. merely drag lines from one side to the other and save when finished. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet oftc
On 2024-02-12 12:30, Simon Becherer wrote:
Am 12.02.24 um 12:12 schrieb Carlos E. R.:
On 12/02/2024 01.36, 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?
https://en.opensuse.org/SDB:Offline_upgrade#Stale_configuration_files
/etc/postfix/main.cf /master are complicated files. Unless you actually use postfix, ignore them and simply replace the config file with the rpmnew.
Mh, postfix could be automatically enabled at your system and is working.. so do NOT use the new file. this will brake postfix. (the new file did not have ip-adresses etc. inculded)
well, phrase it as the admin having actively modified/configured postfix, manually or via yast mail module ;-) I certainly use postfix, you can see it in my headers.
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
Much easier:
meld /etc/cups/cupsd.conf.rpmnew /etc/cups/cupsd.conf
transfer new parts from the rpmnew to your file (there are clickable arrows in meld indicating what you can do on each section), keeping the sections you want to keep from your file. Save changes, done.
Then you can delete /etc/cups/cupsd.conf.rpmnew.
Me, I do a backup of both files before starting.
i prefer to use midnight commander "mc" there you could compare/edit files in an (for me) nice way in a left and right window. of course i would ALWAYS copy both files before editing to a save place, in my sytems i do it:
I am very familiar with mc, but for this task meld is superb (I am not that familiar with tkdiff). Meld simultaneously opens and displays both files, and marks the differences on each side. A click on the paragraph you want, and it gets copied to the other file. 'mc' simply can not do this job. -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
On 02-12-2024 05:12AM, Carlos E. R. wrote:
On 12/02/2024 01.36, 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?
https://en.opensuse.org/SDB:Offline_upgrade#Stale_configuration_files
Thanks for this specific information about "rpmconfigcheck". How were you able to have the link above (which you provided), point to that specific area on the webpage? This has also been a question for me for a long time. Thanks
/etc/postfix/main.cf /master are complicated files. Unless you actually use postfix, ignore them and simply replace the config file with the rpmnew.
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
Much easier:
meld /etc/cups/cupsd.conf.rpmnew /etc/cups/cupsd.conf
transfer new parts from the rpmnew to your file (there are clickable arrows in meld indicating what you can do on each section), keeping the sections you want to keep from your file. Save changes, done.
Then you can delete /etc/cups/cupsd.conf.rpmnew.
Me, I do a backup of both files before starting.
On 12.02.2024 20:54, -pj via openSUSE Users wrote:
https://en.opensuse.org/SDB:Offline_upgrade#Stale_configuration_files
Thanks for this specific information about "rpmconfigcheck". How were you able to have the link above (which you provided), point to that specific area on the webpage? This has also been a question for me for a long time.
Web page (HTML code) must contain an anchor (name) which you can then use after '#' sign as demonstrated above.
On 2024-02-12 18:54, -pj via openSUSE Users wrote:
On 02-12-2024 05:12AM, Carlos E. R. wrote:
https://en.opensuse.org/SDB:Offline_upgrade#Stale_configuration_files
Thanks for this specific information about "rpmconfigcheck". How were you able to have the link above (which you provided), point to that specific area on the webpage? This has also been a question for me for a long time.
Well, find the section on the "contents" table at the right hand panel of the wiki page, and click on it. Firefox now has the exact URL to that section in the URL box. Select, copy and paste :-) It is a feature of the wiki, having such an easy access to them. I changed the subject line ;-) -- Cheers / Saludos, Carlos E. R. (from openSUSE 15.5 (Laicolasse))
participants (5)
-
-pj
-
Andrei Borzenkov
-
Carlos E. R.
-
Patrick Shanahan
-
Simon Becherer