Projekt

Allgemein

Profil

Howto yum » Historie » Version 1

Jeremias Keihsler, 13.01.2017 10:20

1 1 Jeremias Keihsler
h1. Update
2
3
<pre><code class="bash">
4
yum 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="bash">
9
yum 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
yum 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>