Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

apt-get cannnot clean cache files

594 views
Skip to first unread message

Kuang He

unread,
Oct 30, 2004, 6:00:20 AM10/30/04
to
Hello, everyone!

I want to achieve the effects of ``apt-get clean'' after each 'apt-get
install foo' and I've put ``ATP::APT::Get::Clean "always";'' in
/etc/apt/apt.conf, but it seems not to work. What can I do?

Thank you very much!

James He


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Ron Johnson

unread,
Oct 30, 2004, 6:20:07 AM10/30/04
to
On Sat, 2004-10-30 at 17:56 +0800, Kuang He wrote:
> Hello, everyone!
>
> I want to achieve the effects of ``apt-get clean'' after each 'apt-get
> install foo' and I've put ``ATP::APT::Get::Clean "always";'' in
> /etc/apt/apt.conf, but it seems not to work. What can I do?

Any error messages?

Also, did you put:


ATP::APT::Get::Clean "always"

or
APT::Get::Clean "always"

--
-----------------------------------------------------------------
Ron Johnson, Jr.
Jefferson, LA USA
PGP Key ID 8834C06B

"Knowledge should be free for all."
Harcourt Fenton Mudd, Star Trek:TOS, "I, Mudd"

signature.asc

Maurits van Rees

unread,
Oct 30, 2004, 11:00:08 AM10/30/04
to
On Sat, Oct 30, 2004 at 05:56:28PM +0800, Kuang He wrote:
> Hello, everyone!
>
> I want to achieve the effects of ``apt-get clean'' after each 'apt-get
> install foo' and I've put ``ATP::APT::Get::Clean "always";'' in
> /etc/apt/apt.conf, but it seems not to work. What can I do?

ATP::APT::Get::Clean "always";

should quite likely be:
APT::Get::Clean "always";

Otherwise, try:
APT::Clean-Installed Yes;

At least that's what I have in /etc/apt/apt.conf and it seems to be
working. But maybe that is one of the other lines:

DSELECT::Clean auto;
which will do its magic when you are using dselect.

--
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands]
"Let your advance worrying become advance thinking and planning."
- Winston Churchill

Kuang He

unread,
Oct 30, 2004, 9:20:07 PM10/30/04
to
On Sat, 30 Oct 2004 16:50:13 +0200, Maurits van Rees
<mau...@vanrees.org> wrote:
> Otherwise, try:
> APT::Clean-Installed Yes;

I found that the following is the default setting:
APT::Clean-Installed "true";

It cannot meet my needs, for instance, I installed the package "screen"
but after installation,
/var/cache/apt/archives/screen_4.0.2-4_i386.deb still exists.

> DSELECT::Clean auto;
> which will do its magic when you are using dselect.

Sorry, I only use apt-get and aptitude :-)

Rob Bochan

unread,
Oct 30, 2004, 10:20:09 PM10/30/04
to
On Saturday 30 October 2004 09:11 pm, Kuang He wrote:

> It cannot meet my needs, for instance, I installed the package "screen"
> but after installation,
> /var/cache/apt/archives/screen_4.0.2-4_i386.deb still exists.

# ls /var/cache/apt/archives/
fontconfig_2.2.3-3_i386.deb
gftp-common_2.0.17+cvs20041029-1_i386.deb
gftp-gtk_2.0.17+cvs20041029-1_i386.deb
libfontconfig1_2.2.3-3_i386.deb
libxml1_1%3a1.8.17-9_i386.deb
libxml2_2.6.11-5_i386.deb
lock
partial

# apt-get clean
# ls /var/cache/apt/archives/
lock partial

HTH
HAND

--

...Rob
Return address is obfuscated.
You can reach me via mylaptop (at) twcny dot rr dot com

Kuang He

unread,
Oct 31, 2004, 7:40:05 AM10/31/04
to
I think you have not understood what I said. What I hate is to run
``apt-get clean'' manually from time to time. :)

On Sat, 30 Oct 2004 22:01:52 -0400, Rob Bochan
<debia...@lists.debian.org> wrote:
> # apt-get clean

Robert Vangel

unread,
Oct 31, 2004, 7:50:06 AM10/31/04
to
Cron :P

No, it isn't what you want, but yeah.

Rob Bochan

unread,
Oct 31, 2004, 10:10:08 AM10/31/04
to
On Sunday 31 October 2004 07:31 am, Kuang He wrote:
> I think you have not understood what I said. What I hate is to run
> ``apt-get clean'' manually from time to time. :)

So, unless I'm mistaken, you're too lazy to type a whopping TWELVE CHARACTERS
on your own? Oh my god, you're pathetic.
Cripes man, get a life, and set up a cron entry.

Sorry to the list for losing my temper, but geeeez... this is just pathetic.

/me wanderes off muttering about sniveling little whiners...

--

...Rob
Return address is obfuscated.
You can reach me via mylaptop (at) twcny dot rr dot com

Maurits van Rees

unread,
Oct 31, 2004, 11:30:12 AM10/31/04
to
On Sun, Oct 31, 2004 at 10:45:13AM -0400, Rob Bochan wrote:
> So, unless I'm mistaken, you're too lazy to type a whopping TWELVE
> CHARACTERS on your own?

I thought being lazy was one of the character traits of any good
programmer? ;-)

--
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands]
"Let your advance worrying become advance thinking and planning."
- Winston Churchill

Maurits van Rees

unread,
Oct 31, 2004, 11:30:13 AM10/31/04
to
On Sun, Oct 31, 2004 at 09:11:14AM +0800, Kuang He wrote:
> On Sat, 30 Oct 2004 16:50:13 +0200, Maurits van Rees
> > DSELECT::Clean auto;
> > which will do its magic when you are using dselect.
>
> Sorry, I only use apt-get and aptitude :-)

Alright then. I don't use aptitude, but apparantly I have it
installed. From /usr/share/aptitude/README:

--------
Option:Aptitude::Autoclean-After-Update

Default:false

Description: If this option is true, aptitude will clean up obsolete
files (see Actions->Clean obsolete files) every time you update the
package list.
--------

So putting

Aptitude::Autoclean-After-Update

in your apt.conf will delete all obsolete files in your package
cache. Deleting really everything doesn't seem to be an available
option, but maybe you can find it in that file.


--
Maurits van Rees | http://maurits.vanrees.org/ [Dutch/Nederlands]
"Let your advance worrying become advance thinking and planning."
- Winston Churchill

0 new messages