Problem: During installation of CentOS the installer screen goes black. The terminal multiplexer is running in virtual console 1. To switch from the graphical installation environment to tmux, press Ctrl+Alt+F1. To go back to the main installation interface which runs in virtual console 6, press Ctrl+Alt+F6. Available tmux Windows Shortcut Contents Ctrl+b 1 Main installation […]
Posts
package-cleanup:
Using package-cleanup
command which is a part of yum-utils
package we can uninstall any number of old kernels automatically. As an example using --oldkernels --count=2
option with package-cleanup
command the command will remove all unused kernel while keeping last three most recent kernel versions installed.
1 |
package-cleanup --oldkernels --count=1 |
yum:
list installed kernels
1 |
run rpm -q kernel |
remove kernels no longer needed; listed above
1 |
yum remove kernel |
automated:
By default CentOS will keep last 5 kernels installed on your system. This behavior is defined by installonly_limit=5
line within /etc/yum.conf
file. Update the /etc/yum.conf
configuration file appropriately to keep desired number of old kernels on your system after update. The minimum value to be set is 2
.
Example of /etc/yum.conf
configuration file to keep only last two kernel versions:
1 2 3 4 5 6 7 8 9 10 11 12 |
[main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=0 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=2 bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum distroverpkg=centos-release |
read more: linuxconfig.org
Where to find us
Am Leitenbruennlein 22
91056 Erlangen
Germany
Get in touch with us
Phone: +49-9131-610-310
Fax: +49-9131-610-333
Email: info@f1-consult.com
Latest Blog Entries
- The CyberWire2020-04-18 - 00:40
- Common Vulnerabilities and Exposures – CVEannounce2019-01-14 - 11:47