Skip to content

Commit

Permalink
something new: 2024-12-27 16:36:54
Browse files Browse the repository at this point in the history
  • Loading branch information
pew committed Dec 27, 2024
1 parent 931bc09 commit 476efc7
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions gist/playbook - ubuntu dist-upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
date created: Friday, December 27th 2024, 4:34:01 pm
date modified: Friday, December 27th 2024, 4:36:27 pm
tags:
---

# playbook - ubuntu dist-upgrade

upgrading ubuntu and managing configuration file changes, you might also want to use tools such as [etckeeper](https://etckeeper.branchable.com/)

## upgrade using `do-release-upgrade`

```shell
DEBIAN_FRONTEND=noninteractive do-release-upgrade
```

## post-upgrade: manage configuration file changes

### locate all changed configuration files

- **for `.dpkg-*` files:**

```shell
find /etc -name "*.dpkg-*"
```

- **for `.ucf-dist` files:**

```shell
find /etc -name "*.ucf-dist"
```

### compare and merge changes

- use `vimdiff` or a similar tool to compare the original file with the new version:

```shell
vimdiff /path/to/config.file /path/to/config.file.dpkg-dist
vimdiff /path/to/config.file /path/to/config.file.ucf-dist
```

### remove temporary files

- once resolved, delete `.dpkg-*` and `.ucf-dist` files:

```shell
rm /path/to/config.file.dpkg-dist
rm /path/to/config.file.ucf-dist
```

0 comments on commit 476efc7

Please sign in to comment.