Very useful. Thanks for all the tips.
Very useful. Thanks for all the tips.
PC: Shuttle XPC SN68SG2, AMD Athlon 64 X2 5200, NVIDIA GeForce 7025/nForce 630a chipset, 1 GB ram, 160 GB Serial ATA hard drive, Ubuntu 8.10 32 bit
Great tutorial! I removed over 250 packages with the first command =) I was busy selecting them all until I realized I could, of course, just use the shift key and do it all in two clicks..
Also freed another 100mb of space.. not bad. not bad at all!
Also, the system feel more responsive somehow
This is to remove a package AND all the packages it is dependant on (if they are not used anymore). eg.
will also remove the following if they are not needed else where.Code:sudo apt-get autoremove winedev
You may be wanting (note the addition of sudo)
This removes all the packages downloaded in the archive that are no longer in the repository lists (i.e they're gone or there is a newer version)Code:sudo apt-get autoclean
Except that in the latter case apt knowsCode:sudo apt-get clean
- where the configured archives folder is (it may not be the default linux location)
- the files are now gone. In any case it will simply download them again if necessary.
Last edited by Aliby; March 12th, 2008 at 10:25 AM.
Does anyone know how the "Temporary Files" settings under Synaptic | Settings | Preferences work?
Screen shot of the "Synaptic | Preferences"
I was hoping that it automates the "cleaning" processes in varying degrees:
- Code:"Does Nothing"
- Code:sudo apt-get clean
- Code:sudo apt-get autoclean
However, I don't know how to "trigger" the action?
Last edited by Aliby; March 12th, 2008 at 11:30 AM.
Another "valuable to me" trick I found was to remove the "CD-Rom/DVD" repositories from the sources lists before doing:
You can do it by unticking them in SynapticCode:sudo apt-get autoclean
autoclean seems to look at what is in the package lists and delete was is not there and the CD's often have old versions.
I then "check" them again to add these repos so I don't have to download anything that current and is on them already.
I have posted it as a "Wishlist" in Launchpad
We'll see whether anything comes of itI actually can't think of a reason to keep ANY packages in the archive that are listed on a CD-ROM/DVD repository?
It would be great to have the default, or an option/ flag, to ignore CD-ROM/DVD repositories when performing "apt-get autoclean"
1. I autoclean to keep delete old packages to reduce storage space
2. These packages are available on the CD anyway (I don't have to keep them on the hard drive)
3. It seems apt-get sees the "old" files in the CD-ROM lists thus does not delete them.
4. Most of the time online REPOS are also included, which have the latest packages listed anyway. (One option would be to ingore the CD-ROM repos, unless they are the only repos?)
I thought it would delete ALL old versions, but it deletes unlisted versions. So I currently achieve the above by:
* Temporarily removing the "CD-ROM/DVD" repositories from the lists
* Then doing a "apt-get autoclean". Older versions are now deleted from the archive (they no longer appear in active package lists)
* Adding the "CD-ROM/DVD" repositories again so new installs can access these packages if they are the latest versions and doesn't need to download them - saving bandwidth.
Ubuntu-Studio 7.10 _Gutsy Gibbon_ - Release i386 (20071015)
apt 0.7.6ubuntu14 0
Last edited by Aliby; March 12th, 2008 at 11:33 AM.
Well. this program has officially pissed me off. I ran it, it found a couple orphaned files ~40ish. I have it clean out the files. Not only did it clean out those files, it also cleaned out and deleted conky, figlet, a couple of my games, envy, and a couple other programs that i didnt tell it to do.
hell, conky was even running at the time!
the best part? it deleted its own GUI out when it was all finished.
Thanks for this HOWTO, everything went fine with me!
thnx a lot..... a very helpful howto...
Thank you for the Helpful how to