Howto dnf » Historie » Version 1
Jeremias Keihsler, 21.10.2021 09:59
1 | 1 | Jeremias Keihsler | h1. Update |
---|---|---|---|
2 | |||
3 | <pre><code class="shell"> |
||
4 | dnf update |
||
5 | </code></pre> |
||
6 | |||
7 | if for any reason your download fails due to bandwidth issues (e.g. VirtualBox-Repo), this will repeat @yum update@ until successful |
||
8 | <pre><code class="shell"> |
||
9 | dnf update -y ; until [ $? -eq 0 ]; do yum update -y; done |
||
10 | </code></pre> |
||
11 | |||
12 | h1. List Packages |
||
13 | |||
14 | h2. List installed Packages |
||
15 | |||
16 | <pre><code class="bash"> |
||
17 | dnf list installed |
||
18 | </code></pre> |
||
19 | |||
20 | h1. Package cleanup |
||
21 | |||
22 | h2. remove old kernels |
||
23 | |||
24 | You can optionally make use of @package-cleanup@ and remove a specified number of older kernels, as shown below. |
||
25 | <pre><code class="bash"> |
||
26 | package-cleanup --oldkernels --assumeyes --count=3 |
||
27 | </code></pre> |
||
28 | |||
29 | h1. Setting in yum.conf |
||
30 | |||
31 | h2. Specify the amount of concurrently installed kernels |
||
32 | |||
33 | taken from https://www.rootusers.com/how-to-free-boot-disk-space-in-linux/ |
||
34 | |||
35 | We can specify how many Linux kernels are allowed to be installed at any one time. By default the amount of Linux kernels that can be installed at the same time is 5. If you already have 5 different versions of the Linux kernel installed and you perform a ‘yum update’ and install a newer kernel, the oldest kernel will be uninstalled to make room for the newest one. |
||
36 | |||
37 | This is done in the @/etc/yum.conf@ file as shown below. |
||
38 | <pre /etc/yum.conf> |
||
39 | installonly_limit=6 |
||
40 | </pre> |