LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 09-21-2009, 08:37 AM   #1
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Rep: Reputation: 15
apt-get autoremove


If I use apt to install new software it always starts by telling me that there are a lot of files that were "automatically installed and no longer required" and suggesting that I should run apt-get autoremove. The trouble is that in the list are files I use all the time like kview and kwifimanager and even gdm which I definitely need because it is gdm that fires up KDE and logs me in.
I don't want to autoremove the files because there may be others that I also need and so the list just gets longer and longer.I am just curious to know why apt behaves in this way; why does it think they are no longer required?
 
Old 09-21-2009, 09:30 AM   #2
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Weird, I only experienced this when I installed something and removed it later, all the dependencies that were installed alongwith those packages "were no longer required" hence it gave me that warning.
 
Old 09-21-2009, 10:30 AM   #3
highfructose327
Member
 
Registered: Mar 2008
Location: Ohio, USA
Distribution: Mint, Fedora
Posts: 64

Rep: Reputation: 21
If you have used aptitude to install some packages you can try
Quote:
sudo aptitude keep-all
I saw this at this link http://ubuntuforums.org/archive/inde...t-1014938.html
 
Old 09-21-2009, 10:53 AM   #4
whittycat
Member
 
Registered: Nov 2004
Location: Wellington Somerset UK
Distribution: Debian lenny, also DSL-N
Posts: 32

Original Poster
Rep: Reputation: 15
Thanks for the ubuntu forum link. apt doesn't remove them it just invites me to if I want. Since I don't know what I need and what I don't I think I'll just keep them all and stop worrying about it.
 
Old 09-21-2009, 12:21 PM   #5
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,007

Rep: Reputation: 366Reputation: 366Reputation: 366Reputation: 366
apt keeps a cache of the files it used to install stuff.

Once the stuff is installed, they really aren't needed. You might like to look in
/var/cache/apt/archives to see what is there.

Also, if kview version 1.01 is updated to version 1.02, then you don't really need to keep the installation files for version 1.01.

But, if you have plenty of disk space, you can safely just ignore apt's suggestions (I do).
 
Old 09-22-2009, 02:13 AM   #6
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian jessie/sid; OpenSuSE; Fedora
Posts: 1,591

Rep: Reputation: 162Reputation: 162
Use deborphan.

sudo apt-get install deborphan
sudo deborphan | sudo xargs dpkg --purge "$1"

Keep running the second command until it doesn't find anything more to remove. Apt-get autoremove needs a little work.
 
  


Reply

Tags
apt, debian


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 autoremove cccc Debian 2 07-26-2009 02:55 PM
how do I get rid of autoremove CrashedAgain Debian 5 04-08-2009 09:13 PM
apt-get autoremove, LIES!! BigglesPiP Debian 18 01-24-2009 11:22 AM
Significant change caused by apt-get-autoremove, new package, or full disk- which? sonichedgehog Debian 0 02-06-2008 06:36 PM
"apt-get autoremove" in Debian Etch/Sid available? deepclutch Debian 1 12-27-2006 09:20 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration