https://github.com/dev01d/unattended-upgrades
Quick unattended-upgrades config
https://github.com/dev01d/unattended-upgrades
ubuntu unattended-upgrades updates
Last synced: 7 months ago
JSON representation
Quick unattended-upgrades config
- Host: GitHub
- URL: https://github.com/dev01d/unattended-upgrades
- Owner: dev01d
- Created: 2020-08-28T00:59:43.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-28T01:11:06.000Z (about 5 years ago)
- Last Synced: 2025-01-31T07:12:53.031Z (8 months ago)
- Topics: ubuntu, unattended-upgrades, updates
- Homepage:
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: .github/readme.md
Awesome Lists containing this project
README
# Ubuntu unattended-upgrades
Semi-customized sane defaults
## Config steps
### 1. Get it
```bash
git clone https://github.com/dev01d/unattended-upgrades.git \
&& cd unattended-upgrades
```### 2. Edit the config files for your maintenance window
- `50unattended-upgrades` provides the `Automatic-Reboot-Time` option
- `download-override.conf` provides the time potential updates are pulled down
- `upgrade-override.conf` provides the time upgrades are performed### 3. Install it
'One-liner' install:
```bash
sudo cp -v *-upgrades /etc/apt/apt.conf.d/ \
&& sudo mkdir -p /etc/systemd/system/apt-daily.timer.d/ \
&& sudo mkdir -p /etc/systemd/system/apt-daily-upgrade.timer.d/ \
&& sudo cp -v download-override.conf /etc/systemd/system/apt-daily.timer.d/override.conf \
&& sudo cp -v upgrade-override.conf /etc/systemd/system/apt-daily-upgrade.timer.d/override.conf \
&& sudo systemctl restart apt-daily.timer \
&& sudo systemctl status apt-daily.timer \
&& sudo systemctl restart apt-daily-upgrade.timer \
&& sudo systemctl status apt-daily-upgrade.timer \
&& cd .. \
&& rm -rf unattended-upgrades
```## Usage
Test with:
```bash
unattended-upgrade -v --dry-run
```Manually upgrade with:
```bash
unattended-upgrade -v
```