-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2024-02-11 at 17:05 -0600, -pj via openSUSE Users wrote:
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.
For those interested, I have a script that makes a backup of the files listed by rpmconfigcheck. I have a directory named ~/Upgrades. Inside, I create a directory named, for example, "From_154_to_155". I cd there and run the script "rpmconfigcheck_make_copy": #!/bin/bash echo "Will make a backup copy of files listed in /var/adm/rpmconfigcheck into the current directory." echo "Make sure we are in an appropriate directory and press enter, else ^C" read while read FILES ; do DEST=`echo "$FILES" | tr '[/]' '_'` base=`basename "$FILES"` stem=${base%.*} extension=${base##*.} dirname=`dirname "$FILES"` ORIG=$dirname/$stem DEST2=`echo "$ORIG" | tr '[/]' '_'` #echo "$FILES" "--\>" "$DEST === $dirname % $base % $stem % $extension" "--\>" $ORIG echo "$FILES" "--\>" "$DEST === $ORIG" "--\>" $DEST2 #/etc/zypp/zypp.conf.rpmnew --\> _etc_zypp_zypp.conf.rpmnew === /etc/zypp/zypp.conf --\> _etc_zypp_zypp.conf #/usr/share/info/dir.rpmnew --\> _usr_share_info_dir.rpmnew === /usr/share/info/dir --\> _usr_share_info_dir #/var/lib/scpm/active_groups.rpmsave --\> _var_lib_scpm_active_groups.rpmsave === /var/lib/scpm/active_groups --\> _var_lib_scpm_active_groups if [ -f "$ORIG" ]; then cp "$ORIG" "$DEST2" else echo "ORIGINAL: $FILES does not exist or is not regular file" ls -l "$FILES" fi if [ -f "$FILES" ]; then cp "$FILES" "$DEST" else echo "RPM: $FILES does not exist or is not regular file" ls -l "$FILES" fi done < /var/adm/rpmconfigcheck - -- Cheers, Carlos E. R. (from openSUSE 15.5 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCZcp/8Rwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfVzPUAnjEQLMuap6EBJY82fva8 bSSL2VuAAJ9wPHLqaVaSlnW3uFZ/gPvRJ60wgA== =kQs1 -----END PGP SIGNATURE-----