LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-15-2020, 06:45 PM   #1
danielsender1
Member
 
Registered: Nov 2017
Location: Berkeley, California, USA
Distribution: Ubuntu 20.04, Centos 7
Posts: 52

Rep: Reputation: Disabled
In my Centos 7 the /boot is getting full


I ran package-cleanup --oldkernels --count=2, but the img and vmlinuz files don't disappear, is there anything else that will free space?

Thanks
 
Old 07-15-2020, 07:24 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You could use the rm command, or better yum remove.
 
Old 07-15-2020, 07:26 PM   #3
danielsender1
Member
 
Registered: Nov 2017
Location: Berkeley, California, USA
Distribution: Ubuntu 20.04, Centos 7
Posts: 52

Original Poster
Rep: Reputation: Disabled
The rm command is a bit risky, is there any automated procedure.
 
Old 07-15-2020, 07:32 PM   #4
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Yes, yum remove.

Of course, it still requires you to remove the correct kernel version(s). Generate a list of installed kernel versions with a command like yum list installed kernel* or rpm -qa | grep kernel-, then yum remove the older ones.

Last edited by berndbausch; 07-15-2020 at 07:34 PM.
 
Old 07-15-2020, 07:34 PM   #5
danielsender1
Member
 
Registered: Nov 2017
Location: Berkeley, California, USA
Distribution: Ubuntu 20.04, Centos 7
Posts: 52

Original Poster
Rep: Reputation: Disabled
Yum remove, any particular indicator after the "remove"?
 
Old 07-15-2020, 07:35 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
If the kernels are not known to the package manager you have no other choice.
On Fedora I list the current ones know to dnf (does CentOS still use yum ?) and manually "dnf remove ..." the old ones I have laying around from manual installs.

Hmmm - you folks type too fast ...
 
Old 07-15-2020, 07:38 PM   #7
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by danielsender1 View Post
Yum remove, any particular indicator after the "remove"?
I updated my post.
 
Old 07-15-2020, 07:41 PM   #8
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by syg00 View Post
(does CentOS still use yum ?)
Centos/RHEL 7 does.
Centos/RHEL 8 uses dnf, but symbolically links it to yum, so that old people like me have an easier learning curve.
 
Old 07-15-2020, 07:54 PM   #9
danielsender1
Member
 
Registered: Nov 2017
Location: Berkeley, California, USA
Distribution: Ubuntu 20.04, Centos 7
Posts: 52

Original Poster
Rep: Reputation: Disabled
Sorry, can you be more specific in the command to use?
 
Old 07-15-2020, 07:56 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
How big is your /boot partition?

Post the output of the command
rpm -q kernel

Example to remove a specific kernel
yum remove kernel-3.10.0-327.36.3.el7.x86_64

Last edited by michaelk; 07-15-2020 at 08:01 PM.
 
Old 07-15-2020, 07:57 PM   #11
danielsender1
Member
 
Registered: Nov 2017
Location: Berkeley, California, USA
Distribution: Ubuntu 20.04, Centos 7
Posts: 52

Original Poster
Rep: Reputation: Disabled
[root@vivaldi boot]# rpm -q kernel
kernel-3.10.0-1127.10.1.el7.x86_64
kernel-3.10.0-1127.13.1.el7.x86_64

Size is 500 MB

Last edited by danielsender1; 07-15-2020 at 08:03 PM.
 
Old 07-15-2020, 08:06 PM   #12
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
Size is 209.7 GB
Your boot partition is 209 GB?

Typically a separate boot partition is created of about 1 GB. At the moment with 5 kernels my boot partition is only 391 MB i.e. 39% used. Post the output of the command

df -h
 
Old 07-15-2020, 08:17 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Ok correction 500 MB... I assume that you did not use the automatic partitioning when you installed version 7...

And which vmlinuz files are still in your /boot?
 
Old 07-15-2020, 08:51 PM   #14
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by danielsender1 View Post
Sorry, can you be more specific in the command to use?
I would not attempt to manage a Centos system before learning the foundation of software management with yum.

I said:

yum list installed kernel* or rpm -qa | grep kernel-, then yum remove the older ones.

Since I don't know the kernel versions that are installed on your server, I can't be more specific.

Last edited by berndbausch; 07-15-2020 at 08:53 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/tmp full - but not full ? turbo_acura Linux - Newbie 2 10-20-2010 08:20 AM
General Partitioning Limits: How full is too full to partition? orangesky Linux - Hardware 1 12-05-2009 06:27 PM
RHEL4 root directory says full but sum of use is nowhere near full. Why? SteveInTallyFL Linux - Server 11 02-05-2009 05:45 AM
Getting my screen full of L 9999999999 when i try to boot up Astropicachu Linux - General 2 09-23-2005 09:53 AM
Which distributions do not support --full-time for ls (ls --full-time)? GCS Linux - Distributions 0 07-28-2004 01:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration