Do not blindly overwrite active files with the
.new version: you may lose important local settings.1. Find .new files
find /etc -name "*.new" -print
slackpkg new-config2. Compare before replacing
diff -u /etc/ssh/sshd_config /etc/ssh/sshd_config.new
vimdiff /etc/ssh/sshd_config /etc/ssh/sshd_config.new # if available3. Recommended approach
- Backup the current file
- Compare with
.new - Manually merge useful differences
- Test the service
- Remove the
.newonly after verification
cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak-$(date +%F)4. Typical examples
sshd_config.newhttpd.conf.newntp.conf.new- configs in
/etc/rc.d/or services installed/updated
5. Final cleanup
After merge and tests you can remove the related .new file.
rm /etc/ssh/sshd_config.newKeep a backup copy until you confirm everything works after reboot/service restarts.
Quick checklist
[ ] find /etc -name "*.new" completed
[ ] Critical files compared with diff/vimdiff
[ ] Backup created before merge
[ ] Services tested after changes
[ ] .new files removed only after verification