LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
 
LinkBack Search this Thread
Old 04-07-2009, 04:17 PM   #1
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 32
how do I get rid of autoremove


How do I set apt-get to not use autoremove?

Yes, I still use apt-get...I tried aptitude but it seems to apply autoremove automatically which is a disaster waiting to happen. So far it has tried to remove virtually all of kde several times and it did manage to completely kill my operating system by removing all kernel-images on one occasion....which eventually led to scrapping the computer but that is a whole 'nother ugly story.

I have used "aptitude keep-all" command which appears to clear the autoremove list but it has to be re-issued every time something is added to the list.
 
Old 04-07-2009, 05:44 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Either edit apt.conf and/or apt.conf.d or create it if it doesn't exist.

// auto-remove breaks on meta packages
APT::Get::AutomaticRemove "0";
APT::Get::HideAutoRemove "1";

// Recommends are as of now still abused in many packages
APT::Install-Recommends "0";
APT::Install-Suggests "0";
Debug::pkgAutoRemove "0";
 
Old 04-07-2009, 05:51 PM   #3
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Original Poster
Rep: Reputation: 32
Thank You.

Do those double slashes before lines turn the line into a comment?
 
Old 04-08-2009, 12:04 PM   #4
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by CrashedAgain View Post
Thank You.

Do those double slashes before lines turn the line into a comment?
Yes.
 
Old 04-08-2009, 06:55 PM   #5
alioop
Member
 
Registered: Mar 2004
Location: Houston,Texas
Distribution: Via Debian!!!
Posts: 113

Rep: Reputation: 21
Quote:
Originally Posted by CrashedAgain View Post
How do I set apt-get to not use autoremove?

Yes, I still use apt-get...I tried aptitude but it seems to apply autoremove automatically which is a disaster waiting to happen. So far it has tried to remove virtually all of kde several times and it did manage to completely kill my operating system by removing all kernel-images on one occasion....which eventually led to scrapping the computer but that is a whole 'nother ugly story.

I have used "aptitude keep-all" command which appears to clear the autoremove list but it has to be re-issued every time something is added to the list.
Don't know where you're coming from but I have to disagree with you. 'Autoremove' has not posed a problem with my Debian OS at all. I'm a new user to Aptitude (former apt-get user) and I have learned to do an 'Aptitude keep-all' before going forth. Boy did I learn that the hard way. But nothing after that command, and I mean nothing has been deleted or removed unless I so request. Same for 'autoclean'.
 
Old 04-08-2009, 09:13 PM   #6
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Original Poster
Rep: Reputation: 32
....but what you are doing is exactly what I was doing, namely NOT using autoremove.

"Aptitude keep-all" issued before using aptitude will clear the autoremove list thus 'disabling' auto remove since it has nothing to remove.

So why not just disable it altogether? Suppose you remove something trivial that was installed at part of a big meta-package (like "kde") then just happen to forget to 'keep all' next time you use aptitude. All of a sudden EVERYTHING related to kde is history.

There is another thread on this http://www.linuxquestions.org/questi...e-lies-698024/
wherein somebody suggests not using meta-packages.

Doesn't it make more sense to not use autoremove?

....and, as I said in my initial post, autoremove did manage to remove my operating kernel, which of course completely trashed the entire system. This was on an old laptop which needed a pcmcia insert internet card. Support for that card was lost beginning with kernel 2.6.25. All install disks I had available used newer kernels so could not be used for reinstall since there was no way to connect to internet. I finally found one very old knoppix disk that would work. I reinstalled using that system (knoppix 3.3, about 2004 vintage) but it broke every time I tried to upgrade it. I bought a "Retail Plus" usb wireless because it was supposed to work with linux....but it doesn't. It came with a linux driver source code but I could not compile it (googling tells me nobody else can either). I tried ndiswrapper but it must be compiled to match the operating kernel which was so old I could not find the necessary dependencies for compiling. I installed a newer system (newer kernel) but then couldn't get all the necessary dependencies for compiling with it either because no internet connection. I tried matching the kernel on my other computer, compiling ndiswrapper then transferring the file over but that didn't work either. I spent a long, very frustrating time (weeks) doing this but finally had to give up and scrap the computer.

If not for autoremove I would still have a laptop.

It IS a disaster waiting to happen.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apt-get autoremove, LIES!! BigglesPiP Debian 18 01-24-2009 11:22 AM
building deb - official way puts amarok in autoremove nowshining Linux - Software 2 09-10-2008 12:32 PM
Significant change caused by apt-get-autoremove, new package, or full disk- which? sonichedgehog Debian 0 02-06-2008 06:36 PM
Autoremove question mikieboy Debian 1 08-27-2007 02:52 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 06:58 PM.

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