LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-02-2012, 09:38 PM   #1
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
How to clean up /var/cache/apt/archives


I've been reading the "The Debian Administrators Handbook" and it explained that the /var/cache/apt/archives file takes up a lot of space and the author recommendends to clean up this file.

Now, I'm not sure but I (think) that this file gets so full from all the updates-

Anyway,I don't understand how to use
Code:
aptitude autoclean
for this file. Would I just run:
Code:
aptitude autoclean /var/cache/apt/archives ?
Right? Or would I use Nano?

Last edited by Ztcoracat; 10-02-2012 at 09:40 PM.
 
Old 10-02-2012, 09:51 PM   #2
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
Quote:
Originally Posted by Ztcoracat View Post
I've been reading the "The Debian Administrators Handbook" and it explained that the /var/cache/apt/archives file takes up a lot of space and the author recommendends to clean up this file.

Now, I'm not sure but I (think) that this file gets so full from all the updates-

Anyway,I don't understand how to use
Code:
aptitude autoclean
for this file. Would I just run:
Code:
aptitude autoclean /var/cache/apt/archives ?
Right? Or would I use Nano?
All you need to do to clean up old packages, ones that are no longer available in the repositories, is
Code:
aptitude autoclean
if you want to empty the cache completely (not a good idea sometimes) you do
Code:
aptitude clean
nothing more nothing less so don't worry about adding locations because it is already known to the command.
 
1 members found this post helpful.
Old 10-02-2012, 10:00 PM   #3
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
K3lt01:

Got it!

How often should I run ?
Code:
aptitude autoclean
 
Old 10-02-2012, 10:12 PM   #4
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,900

Rep: Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637Reputation: 637
I do it once a month just to make sure things are ok. You could run it each time you updated (after you update) if you wanted but I don't see the need to do it so often.
 
1 members found this post helpful.
Old 10-02-2012, 10:22 PM   #5
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484

Original Poster
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Once a month it is!

Thanks k3lt01!
 
  


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
[SOLVED] Is it ok to delete everything in /var/cache/apt/archives? QueenZ Linux - Newbie 5 08-04-2010 01:08 PM
How to prevent apt from deleting packages in /var/cache/apt/archives ? abc.linux Debian 11 11-07-2009 11:46 AM
Can I remove files at /var/cache/apt/archives ? sarajevo Debian 2 05-08-2007 08:52 AM
/var/cache/apt/archives/lock error digsby0007 Linux - Software 3 06-23-2006 06:17 AM
Where are my .deb packages from /var/cache/apt/archives? bruno buys Debian 3 02-13-2005 07:21 AM

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

All times are GMT -5. The time now is 08:13 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