LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-19-2007, 08:41 PM   #1
mirror_man
Member
 
Registered: Jan 2007
Distribution: Debian squeeze
Posts: 46

Rep: Reputation: 15
How to uninstall kernel + free up HD space


Just out of interest and to try and learn something, I recently compiled/installed the 2.6.20.3 kernel and now want to uninstall it and any files this process placed around the system. How do I best do this?

One of the reasons I want to uninstall it is that I checked the used/free disk space on my HD and found that around 5.5 GB of my 6.6 GB Root partition is being used. /usr is quite large and I wondered if the kernel install put files in there, it's 3.3 - 4 GB, depending on which app I use to get the information. The only other big thing I've installed is Dropline Gnome.

Maybe a kernel install doesn't put files in /usr at all but I can't seem to find this sort of information and just want to free up some space if I can. Even if the kernel install doesn't put files in /usr I would still like to know how to uninstall it.

Cheers.
 
Old 04-19-2007, 08:57 PM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
you can remove files in:
- /usr/src/linux-2.6.20.3
- /lib/modules/2.6.20.3
- /boot/*2.6.20.3.*
 
Old 04-19-2007, 09:20 PM   #3
mirror_man
Member
 
Registered: Jan 2007
Distribution: Debian squeeze
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by willysr
you can remove files in:
- /usr/src/linux-2.6.20.3
- /lib/modules/2.6.20.3
- /boot/*2.6.20.3.*
Thanks, I thought I might have to do - make uninstall, or some such thing. There is no /usr/src/linux-2.6.20.3 though, I compiled from a folder in my /home folder and the source is still there.

Maybe my /usr folder size is typical then, how big is yours?
 
Old 04-19-2007, 10:07 PM   #4
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
You can also remove the kernel by using the pkgtool.

As root:

Code:
 # pkgtool
It will look something like this:

http://www.sdconsult.no/linux/instal...e-pkgtool1.png

Navigate down to "Remove packages that are currently installed." You'll see an alphabetical listing of all installed packages. Make SURE that you only tick off removal of the particular kernel you're speaking of here. Don't inadvertently remove your booted kernel.

Luck!

Last edited by vtel57; 04-19-2007 at 10:08 PM.
 
Old 04-19-2007, 10:56 PM   #5
mirror_man
Member
 
Registered: Jan 2007
Distribution: Debian squeeze
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vtel57
You can also remove the kernel by using the pkgtool.

As root:

Code:
 # pkgtool
It will look something like this:

http://www.sdconsult.no/linux/instal...e-pkgtool1.png

Navigate down to "Remove packages that are currently installed." You'll see an alphabetical listing of all installed packages. Make SURE that you only tick off removal of the particular kernel you're speaking of here.
Ah, thanks. I didn't realise I could do that with something I'd compiled, I thought it had to be a slackpkg to be able to use the tool to unistall it.

Quote:
Don't inadvertently remove your booted kernel.
I will make every effort to avoid doing that...

Quote:
Luck!
Cheers.
 
Old 04-19-2007, 11:06 PM   #6
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Whoops! A compiled kernel? I should read the posts a little better, huh? I'm not sure if you can use pkgtool for a compiled kernel. You can try it. If it's listed, you should be able to remove it. If it's not listed, no harm in trying.

Luck!

~Eric
 
Old 04-19-2007, 11:19 PM   #7
mirror_man
Member
 
Registered: Jan 2007
Distribution: Debian squeeze
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vtel57
Whoops! A compiled kernel? I should read the posts a little better, huh? I'm not sure if you can use pkgtool for a compiled kernel. You can try it. If it's listed, you should be able to remove it. If it's not listed, no harm in trying.

Luck!

~Eric
Heh, no, it's not listed. Had a good browse through my installed packages though.
 
Old 04-19-2007, 11:27 PM   #8
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Oh well, sorry 'bout that. Willysr's method will work fine, though. Yeah. Pkgtool is a handy app to remember.
 
Old 04-19-2007, 11:35 PM   #9
mirror_man
Member
 
Registered: Jan 2007
Distribution: Debian squeeze
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vtel57
Oh well, sorry 'bout that. Willysr's method will work fine, though. Yeah. Pkgtool is a handy app to remember.
Hey, no problem. BTW, how big is /usr on your Slackware install?
 
Old 04-19-2007, 11:40 PM   #10
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Hang on. I'm in Ubuntu right now. Let me mount that partition and I'll let you know...

156062 items, totalling 2.3 GB
 
Old 04-20-2007, 12:15 AM   #11
mirror_man
Member
 
Registered: Jan 2007
Distribution: Debian squeeze
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by vtel57
Hang on. I'm in Ubuntu right now. Let me mount that partition and I'll let you know...

156062 items, totalling 2.3 GB
Right, thanks for that.
 
Old 04-20-2007, 10:28 AM   #12
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
4 GB for/usr doesn't sound too out of the ordinary for s fairly complete install, especially if you have GNOME in there. My /usr directory is 9.2 GB currently.

If it is that much of a problem, your best bet is to simply browse through the installed packages and pull out anything you aren't using. Especially relatively large applications, like the GIMP.

Since you compiled the kernel in your /home directory, it shouldn't have placed anything under /usr. So everything under there must be from installed applications.
 
Old 04-20-2007, 01:37 PM   #13
mirror_man
Member
 
Registered: Jan 2007
Distribution: Debian squeeze
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by MS3FGX
4 GB for/usr doesn't sound too out of the ordinary for s fairly complete install, especially if you have GNOME in there. My /usr directory is 9.2 GB currently.
Wow!

Quote:
If it is that much of a problem, your best bet is to simply browse through the installed packages and pull out anything you aren't using. Especially relatively large applications, like the GIMP.
Got just over 1 GB free space left on that partition so not at crisis point yet, looks like I'm going to need a new and bigger hard drive though.

Quote:
Since you compiled the kernel in your /home directory, it shouldn't have placed anything under /usr. So everything under there must be from installed applications.
Right, thanks for your reply.
 
  


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
Help removing free space to create Raw free space nightmare55 Linux - Newbie 11 10-01-2009 03:07 AM
No space left on device even though it has free space? enine Linux - General 8 05-30-2007 04:22 PM
Not enough free space on hard drive with 50g of free space??? auoq SUSE / openSUSE 5 10-13-2004 08:21 PM
Not enough space for root directory on a drive with 50g free space??? auoq Linux - Newbie 1 10-13-2004 12:44 PM
Formating free space: WinXP pro and RH9 dualboot with free space on 3rd drive Vermicious Linux - General 2 03-22-2004 05:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:54 PM.

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