Stop google Chrome cron job?

Ralf Mardorf kde.lists at yahoo.com
Wed May 10 15:53:25 UTC 2023


On Wed, 2023-05-10 at 09:27 -0600, Stuart McGraw wrote:
> [snip]

Hi,

you can use "dpkg-divert --add --rename --divert" to change the file
location and/or name automatically, each time the package gets upgraded.

I've done this to prevent two commands from getting automatically
launched.

$ dpkg-divert --list | grep local
local diversion of /usr/sbin/grub-mkconfig to /usr/sbin/grub-mkconfig.real
local diversion of /usr/sbin/update-grub to /usr/sbin/update-grub.real

Nothing can run grub-mkconfig or update-grub automatically anymore,
because they get renamed to grub-mkconfig.real and update-grub.real each
time an update wants to save the files by their original path and
filename.

You could even test, if you can "install" the cronjob to /dev/null by
dpkg-divert. I've never tested it.
You only run "dpkg-divert --add --rename --divert" one time, then it
does change the file location and/or name for each upgrade
automatically. To get rid of it you need to run
"dpkg-divert --rename --remove".

Regards,
Ralf




More information about the ubuntu-users mailing list