Re: only .pkgnew and only for user-touched files
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 20 May 2026 14:05:42 UTC
On 5/20/26 03:00, Anthony Pankov wrote: > Hello, > > after upgrading minor upgrade with pkgbase I found many .pkgsave files such as: > .. > /etc/rc.d/noshutdown.pkgsave > /etc/rc.d/mountd.pkgsave > /etc/rc.d/FILESYSTEMS.pkgsave > /etc/rc.d/zfs.pkgsave > ... > > with changes that do not bothers me: > > diff /etc/rc.d/noshutdown.pkgsave /etc/rc.d/noshutdown > 6c6 > < # REQUIRE: var > --- >> # REQUIRE: FILESYSTEMS > ----- > > Is it possible during pkgbase upgrade to follow the next logic: > > IF configuration/script file is not modified (== identical to what was installed by package) then silently replace it with new file > ELSE just save new file as .pkgnew (do not touch existing) and print a note. > > Is there already any switches for pkg to do this? > > I ask because sshd_config was replaced and server control lost. But master.passwd was keeped. I'm not complaining just missing single logic. > My impression was that: ) pkg install is what generates pkg.save files, installing those new files ) pkg upgrade is what generates pkg.new files, not installing those new files (At least when files are not auto merged?) I'm not sure that the documentation is explicit about when each is used. -- === Mark Millard marklmi at yahoo.com