aboutsummaryrefslogtreecommitdiff
path: root/content/docs/gentoo/upgrades.md
blob: 4984cd71252483ce4a494cf65d00ae999031c2c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---
title: "Gentoo Packages Upgrades"
description: Gentoo packages upgrades on adyxax.org
tags:
- gentoo
- linux
---

## Introduction

Here is my go to set of commands when I upgrade a gentoo box :
```sh
emerge-webrsync
eselect news read
```

The news have to be reviewed carefully and if I cannot act on it immediately I copy paste the relevant bits to my todolist.

## The upgrade process

I run the upgrade process in steps, the first one asking you to validate the upgrade path. You will also be prompted to validate before cleaning :
```sh
emerge -qAavutDN world --verbose-conflicts --keep-going --with-bdeps=y && emerge --depclean -a && revdep-rebuild -i -- -q --keep-going; eclean --deep distfiles && eclean --deep packages && date
```

After all this completes it is time to evaluate configuration changes :
```sh
etc-update
```

If a new kernel has been emerged, have a look at [the specific process for that]({{< ref "kernel_upgrades" >}}).

## Post-upgrade

Depending of the changes it is now time to :
- restart services that have been upgraded
- reboot if the kernel or a crucial system component (like openssl) has been upgraded