![]() ![]() copy the compressed file - cp /usr/share/doc/cron-apt/README.gz.change to the new directory - cd cron-apt_documentation.create a directory to work in - mkdir cron-apt_documentation.The package includes very good documentation, however it is gzipped. You can find more info and config options here To set the time it runs edit the /etc/cron.d/cron-apt file. One advantage this program provides over a simple cron solution is that it gives you control over what gets installed (only download new packages, install security updates or install all updates). Note that the default setup will not automatically install the updates (there are some good reasons to not do this), but you can config it to do so. This will send an email every time it runs, not only if it encounters an error. One thing I add to my configuration is: MAILON="always" The main configuration file is /etc/cron-apt/config Unattended-upgrades has that option, and in my experience reboot after kernel upgrade works with the fix above. I'm not sure cron-apt can automatically reboot your system after a kernel update. Cron-apt is your second-best option, because it's also designed for a similar purpose. ![]() Start by updating the repository package list: sudo apt update Note: If you are using the default user account pi, the password is raspberry. It's recommended to use unattended-updates and fix the package, because it's best suited for the purpose. Update Raspberry Pi Since Raspbian is based on Debian, you can update Raspberry Pi with the apt tool in a terminal window. ![]() You will probably need to install new apt keys for the debian repository. Your options are:Įcho 'Unattended-Upgrade::Origins-Pattern ' | sudo tee /etc/apt//51unattended-upgrades-raspbianįor faster security updates (but less stability, as the packages haven't been approved for rasbian), you can add debian-security packages to apt: echo 'deb buster/updates main contrib non-free' | sudo tee /etc/apt//debian-security.list It won't install crucial updates for the kernel and other software. In its default configuration, unattended-upgrades is broken in Raspbian Buster. ![]()
0 Comments
Leave a Reply. |