LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2014, 12:25 AM   #1
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,530

Rep: Reputation: 93
how to use 'apt-get autoremove' to remove unnecessary packages


I was installing something and ran into this (in the terminal). So just how do I remove them? Thanks!

The following packages were automatically installed and are no longer required:
libpostproc52 linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic
linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic
Use 'apt-get autoremove' to remove them.
 
Old 12-04-2014, 01:42 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

you run exactly that command with root privs. Eg open a terminal an run
Code:
sudo apt-get autoremove
Evo2.
 
Old 12-05-2014, 12:59 AM   #3
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,530

Original Poster
Rep: Reputation: 93
Quote:
Originally Posted by evo2 View Post
Hi,

you run exactly that command with root privs. Eg open a terminal an run
Code:
sudo apt-get autoremove
Evo2.
Thanks Evo2. Is this how it would work out step by step?

So I run:

sudo apt-get autoremove

then I run:

libpostproc52 linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic

then I run:

sudo apt-get autoremove

then I run:

linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic
 
Old 12-05-2014, 01:03 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

no you just have to run:
Code:
sudo apt-get autoremove
That's all.

Evo2.
 
Old 12-05-2014, 01:19 AM   #5
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,530

Original Poster
Rep: Reputation: 93
Quote:
Originally Posted by evo2 View Post
Hi,

no you just have to run:
Code:
sudo apt-get autoremove
That's all.

Evo2.
Evo, I did it and it wants to remove more than what I mentioned.

gregory@UpstairsComputer:~/Desktop$ sudo apt-get autoremove
[sudo] password for gregory:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libpostproc52 linux-headers-3.13.0-24 linux-headers-3.13.0-24-generic
linux-image-3.13.0-24-generic linux-image-extra-3.13.0-24-generic
wine-gecko2.21 wine-mono0.0.8
0 upgraded, 0 newly installed, 7 to remove and 2 not upgraded.
After this operation, 290 MB disk space will be freed.
Do you want to continue? [Y/n]

I don't know what those other things do, so I said no. Should I go back in run it again and say yes? Which is another way of saying, 'Are those other things important or should I get rid of them?'

And 290MB seems a fair amount of file size. Maybe some of that stuff is imporant? I know I've been trying to do some stuff with WINE lately.

Is there any way to remove just the ones I mentioned?
 
Old 12-05-2014, 02:15 AM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,753

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
Hi,

from the apt-get man page:
Code:
       autoremove
           autoremove is used to remove packages that were automatically
           installed to satisfy dependencies for other packages and are now no
           longer needed.
So I think you can just remove them. If you want more information about each package you can use apt-cache. Eg
Code:
apt-cache show <packagename>
If you just want to remove specific packages you can do:
Code:
sudo apt-get remove <packagename>
Or if you want to remove its configuration files too (you usually do).
Code:
sudo apt-get purge <packagename>
I recommend you read some apt tutorials online to learn how to use it.

HTH,

Evo2.
 
1 members found this post helpful.
Old 12-05-2014, 02:44 AM   #7
Gregg Bell
Senior Member
 
Registered: Mar 2014
Location: Illinois
Distribution: Xubuntu
Posts: 1,530

Original Poster
Rep: Reputation: 93
Quote:
Originally Posted by evo2 View Post
Hi,

from the apt-get man page:
Code:
       autoremove
           autoremove is used to remove packages that were automatically
           installed to satisfy dependencies for other packages and are now no
           longer needed.
So I think you can just remove them. If you want more information about each package you can use apt-cache. Eg
Code:
apt-cache show <packagename>
If you just want to remove specific packages you can do:
Code:
sudo apt-get remove <packagename>
Or if you want to remove its configuration files too (you usually do).
Code:
sudo apt-get purge <packagename>
I recommend you read some apt tutorials online to learn how to use it.

HTH,

Evo2.
Thanks, Evo2, for the superb information. I will definitely learn more about removing them too. Really appreciate your effort.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
apt-get wants to autoremove a lot of packages that came with gnome-desktop-environmen werner291 Linux - Newbie 6 04-14-2012 11:01 AM
Ubuntu Netbook - remove all unnecessary packages to run a server role fantasygoat Linux - Server 5 11-25-2010 01:55 PM
cannot remove two packages with apt-get Hystoriker Ubuntu 4 05-11-2009 02:05 PM
Remove unnecessary packages on a Fedora 10 install Roflcopter Linux - Software 5 04-12-2009 12:01 PM
apt-get wants to remove need packages fastTalker Linux - Software 1 02-15-2006 08:04 PM


All times are GMT -5. The time now is 07:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration