Projekt

Allgemein

Profil

Howto dnf » Historie » Version 2

Jeremias Keihsler, 10.10.2023 07:53

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 dnf.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 2 Jeremias Keihsler
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 3. If you already have 3 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 1 Jeremias Keihsler
37 2 Jeremias Keihsler
This is done in the @/etc/dnf/dnf.conf@ file as shown below.
38
<pre>
39 1 Jeremias Keihsler
installonly_limit=6
40
</pre>