PDA

View Full Version : [ubuntu] How to remove DOWNLOADED packages?



OVERPOWER8
December 5th, 2009, 12:08 PM
Hello.

I have a lot of downloaded packages, that I want to remove.
I have installed much software using Synaptic Package Manager without option "Delete downloaded packages after installation".

After that I deleted a lot of that installed packages, but they are still downloaded and placed somewhere in my system.

How can I remove those downloaded packages? (Don't ask why, if u know, just tell how).

Thanks.

Bachstelze
December 5th, 2009, 12:11 PM
sudo rm /var/cache/apt/archives/*deb

Be careful about typos.

OVERPOWER8
December 5th, 2009, 12:13 PM
sudo rm /var/cache/apt/archives/*debBe careful about typos.

Thanks for reply, but that isn't working -
rm: cannot remove `/var/cache/apt/archives/*deb': No such file or directory

Or that means that packages are already removed?

alienclone
December 5th, 2009, 12:40 PM
Thanks for reply, but that isn't working -
rm: cannot remove `/var/cache/apt/archives/*deb': No such file or directory

Or that means that packages are already removed?


i ran the command once, it deleted what it was supposed to, then i ran it again and received the same msg you did, so i guess that means they are already deleted.

did it return to the bash prompt the first time you ran the command without saying it did anything? if so then it worked the first time you just didnt know it.

Bachstelze
December 5th, 2009, 12:41 PM
Thanks for reply, but that isn't working -
rm: cannot remove `/var/cache/apt/archives/*deb': No such file or directory

Or that means that packages are already removed?

Yes.

oldos2er
December 5th, 2009, 06:47 PM
sudo apt-get clean will also clear the cache directory.

OVERPOWER8
December 9th, 2009, 02:38 PM
Thanx Everyone for your replies.

Just freed my distro from some garbage.