-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |