3 ms·
Debian based systems will change some config files on updates; I had a systemd customization that was overwritten out from under me, and I evntually found there
by aidenn0 5y ago
Debian based systems will change some config files on updates; I had a systemd customization that was overwritten out from under me, and I evntually found there was one place for apt to manage and a different for me to manage.
- ayushnix 5y ago> Debian based systems will change some config files on updates; I had a systemd customization that was overwritten out from under me, and I evntually found there was one place for apt to manage and a different for me to manage. The only place where a package manager should overwrite changes is /usr. If you made any changes inside /usr, then yes, it'll be overwritten. A user isn't supposed to mess around inside /usr, unless there's a very good reason for it. There's /usr/local but it's better to just use $HOME/.local instead.
- aidenn0 5y agoIt's entirely possible it wasn't in /etc but somewhere else. This was a case of "I need to fix this urgently" and the first workaround I could find on stackoverflow suggested changing it in one place. After the problem came up again after an update I did a bit more digging to figure out where I could change it and apt would not overwrite it.
- oauea 5y agoapt will tell you the file was changed and ask you what to do (keep current, use new, show diff & merge). so you must've chosen to replace it, or used some gui updater that made the choice for you.
- floren 5y agoYou mean the scary prompts that I just mash "Y" on??? (can you tell that I've shipped Debian packages before?)
- goodpoint 5y agoNo, Debian always asks before overwriting anything in /etc and provides convenient options like showing a diff during the process.
- iso1210 5y agoOnly if you've changed from the default config file, and it's not anything in /etc, it's anything specified in the conffiles file in the .deb, which I believe should include things in /etc according to policy, but can include others (and doesn't have to include things in /etc if you ignore policy) And of course you can do anything you want in a postinst script (again setting aside policy)
- goodpoint 5y ago"setting aside policy" any software can do rm -rf / The whole point of Linux distributions is having policies to protect the end user and enforcing them.