obsolete files

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
User avatar
chazb
Level 4
Level 4
Posts: 418
Joined: Wed Nov 30, 2016 2:56 am
Location: Oklahoma

Re: obsolete files

Post by chazb »

Ok, here is the deal,,,,,Some times when upgrades, I bother to read through what is being upgraded, and I usually see a line that suggest I use "apt-get" to remove certain files that are being upgraded. I tried this once and nothing happened. So I quit trying to remove those files.
But the thought occurs to me that there must be a large quantity of these old un-used files building up in my system. So I produced this thread to get an idea of what I might do, like is there an all in one command or program that removes these old files, like in Microsoft XP.
minitux
Level 5
Level 5
Posts: 854
Joined: Tue Sep 12, 2017 10:05 am

Re: obsolete files

Post by minitux »

in the discussion, I have already reported the program, in this post above, there is the link to the download

viewtopic.php?f=90&t=255336#p1376245
User avatar
Pjotr
Level 22
Level 22
Posts: 15504
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: obsolete files

Post by Pjotr »

chazb wrote:But the thought occurs to me that there must be a large quantity of these old un-used files building up in my system.
That assumption isn't correct. Whenever you see this:

Code: Select all

The following packages were automatically installed and are no longer required:
... you don't have to do anything at all. Meaning: just ignore that message and simply let those "superfluous" packages remain in your system. They do no harm, and they don't take up much space. So why risk breakage?

As I already said earlier in this thread: Linux doesn't pollute much over time; the only stuff that you might want to remove from time to time are old, unused kernels. And perhaps old update packages.

Linux is pretty well designed, also in the respect of cruft prevention.

Again: see this how-to for safe cleaning: https://sites.google.com/site/easylinuxtipsproject/4

Stick to that, and you don't risk breakage.... :)
Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
jsb
Level 3
Level 3
Posts: 104
Joined: Sat Feb 11, 2017 11:20 am

Re: obsolete files

Post by jsb »

Pjotr wrote: Again: see this how-to for safe cleaning: https://sites.google.com/site/easylinuxtipsproject/4
Does doing this:
2. Launch Synaptic Package Manager.
Panel of Synaptic: Settings - Preferences - Files
Put the dot at: Delete downloaded packages after installation
And leaving it set that way, mean there is no need to subsequently go back and do this again:
Press the button: Delete cached package files
:?:
jsb
Level 3
Level 3
Posts: 104
Joined: Sat Feb 11, 2017 11:20 am

Re: obsolete files

Post by jsb »

Another question, are any of these:
minitux wrote:

Code: Select all

sudo apt-get clean

Code: Select all

sudo apt-get autoremove

Code: Select all

dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge
doing the same thing as any of the suggestions here:
Pjotr wrote:Again: see this how-to for safe cleaning: https://sites.google.com/site/easylinuxtipsproject/4
:?:
User avatar
Pjotr
Level 22
Level 22
Posts: 15504
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: obsolete files

Post by Pjotr »

jsb wrote:Launch Synaptic Package Manager.
Panel of Synaptic: Settings - Preferences - Files
Put the dot at: Delete downloaded packages after installation
And leaving it set that way, mean there is no need to subsequently go back and do this again:
Press the button: Delete cached package files :?:
Correct.
Tip: 10 things to do after installing Linux Mint 20 Ulyana
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.
Post Reply

Return to “Newbie Questions”