2021-04-16 17:42:55 +02:00
|
|
|
---
|
|
|
|
title: "Gentoo Packages Upgrades"
|
|
|
|
description: Gentoo packages upgrades on adyxax.org
|
2021-09-13 00:48:07 +02:00
|
|
|
tags:
|
|
|
|
- gentoo
|
|
|
|
- linux
|
2021-04-16 17:42:55 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
Here is my go to set of commands when I upgrade a gentoo box :
|
2023-04-23 22:33:49 +02:00
|
|
|
```sh
|
2021-04-16 17:42:55 +02:00
|
|
|
emerge-webrsync
|
|
|
|
eselect news read
|
2023-04-23 22:33:49 +02:00
|
|
|
```
|
2021-04-16 17:42:55 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-09-12 15:02:27 +02:00
|
|
|
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 :
|
2023-04-23 22:33:49 +02:00
|
|
|
```sh
|
2021-09-12 15:02:27 +02:00
|
|
|
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
|
2023-04-23 22:33:49 +02:00
|
|
|
```
|
2021-04-16 17:42:55 +02:00
|
|
|
|
|
|
|
After all this completes it is time to evaluate configuration changes :
|
2023-04-23 22:33:49 +02:00
|
|
|
```sh
|
2021-04-16 17:42:55 +02:00
|
|
|
etc-update
|
2023-04-23 22:33:49 +02:00
|
|
|
```
|
2021-04-16 17:42:55 +02:00
|
|
|
|
|
|
|
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
|