How To Clean Out Unwanted/Unused Apps (SOLVED)

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
KamenRiderNecro
Level 3
Level 3
Posts: 172
Joined: Thu Sep 22, 2016 11:00 pm
Location: Dallas, TX, USA

How To Clean Out Unwanted/Unused Apps (SOLVED)

Post by KamenRiderNecro »

I am running Mint 18.1 Cinnamon and have noticed as of recently it's taking slightly longer to boot up than it used to, and I'm suspecting that it's due to apps I don't use that I thought I had to update. A lot of stuff having to do with things I just don't do on my system (such as video and photo editing, for example). What is a good safe terminal based way to clear my system of things I don't need or use on 18.1?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
"Is that gasoline, Mr. Gideon?"

"Jalapeno, what a headache!"

Mint 20.2 MATE, Intel core i5 9600K, MSI Z390M, Crucial Ballistix 16GB RAM, WD Black boot drive, WD HDDs
revian

Re: How To Clean Out Unwanted/Unused Apps

Post by revian »

I'm not a Linux expert, but I do know a fair bit about it. How would unused apps have anything to do with slowing a system over time? It seems to me that this would involve the accumulated cache of apps that you actually use rather than apps that are never opened.
KamenRiderNecro
Level 3
Level 3
Posts: 172
Joined: Thu Sep 22, 2016 11:00 pm
Location: Dallas, TX, USA

Re: How To Clean Out Unwanted/Unused Apps

Post by KamenRiderNecro »

revian wrote:I'm not a Linux expert, but I do know a fair bit about it. How would unused apps have anything to do with slowing a system over time? It seems to me that this would involve the accumulated cache of apps that you actually use rather than apps that are never opened.
Fair enough--I suppose then the question then is how to clean that cache safely?
"Is that gasoline, Mr. Gideon?"

"Jalapeno, what a headache!"

Mint 20.2 MATE, Intel core i5 9600K, MSI Z390M, Crucial Ballistix 16GB RAM, WD Black boot drive, WD HDDs
revian

Re: How To Clean Out Unwanted/Unused Apps

Post by revian »

KamenRiderNecro wrote:
revian wrote:I'm not a Linux expert, but I do know a fair bit about it. How would unused apps have anything to do with slowing a system over time? It seems to me that this would involve the accumulated cache of apps that you actually use rather than apps that are never opened.
Fair enough--I suppose then the question then is how to clean that cache safely?
Safely? I don't know. I would love to learn how to do that and then write a nice, safe, bash script to run every 30 days or so to clean things up.

What I currently do, and this is likely the extreme end of the available options, is to do a fresh install every 6 months. Thereafter, only copy back folders in $HOME that are vital; things like .mozilla, .thunderbird, etc. I don't even bother backing up ~/.cache or ~/.thumbnails, etc.. stuff that doesn't have any bearing on backups to begin with. This will result in a clean and fast system. It's a nice one-day project, though I have been able to bring the total project time down to about an hour.

But, again, most users aren't willing to take such an invasive path every 6 months.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How To Clean Out Unwanted/Unused Apps

Post by Flemur »

KamenRiderNecro wrote:I am running Mint 18.1 Cinnamon and have noticed as of recently it's taking slightly longer to boot up than it used to,
How much is "slightly"?
KamenRiderNecro wrote:and I'm suspecting that it's due to apps I don't use that I thought I had to update. A lot of stuff having to do with things I just don't do on my system (such as video and photo editing, for example).
That shouldn't slow down your booting. Unlike many windows programs, linux programs typically don't add a bunch of junk to your boot process.

To check the boot speed try

Code: Select all

systemd-analyze blame
and

Code: Select all

dmesg
KamenRiderNecro wrote:What is a good safe terminal based way to clear my system of things I don't need or use on 18.1?
Why terminal? Check your "startup" or "session and startup" programs - there's a GUI program in the menus somewhere.

Clearing cache and such is nice but it doesn't/shouldn't affect your boot speed.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
KamenRiderNecro
Level 3
Level 3
Posts: 172
Joined: Thu Sep 22, 2016 11:00 pm
Location: Dallas, TX, USA

Re: How To Clean Out Unwanted/Unused Apps

Post by KamenRiderNecro »

Flemur wrote:
KamenRiderNecro wrote:I am running Mint 18.1 Cinnamon and have noticed as of recently it's taking slightly longer to boot up than it used to,
How much is "slightly"?
KamenRiderNecro wrote:and I'm suspecting that it's due to apps I don't use that I thought I had to update. A lot of stuff having to do with things I just don't do on my system (such as video and photo editing, for example).
That shouldn't slow down your booting. Unlike a lot of windows programs, linux programs typically don't add a bunch of junk to your boot process.

To check the boot speed try

Code: Select all

systemd-analyze blame
and

Code: Select all

dmesg
KamenRiderNecro wrote:What is a good safe terminal based way to clear my system of things I don't need or use on 18.1?
Why terminal? Check your "startup" or "session and startup" programs - there's a GUI program in the menus somewhere.
Thank you for the input--here's what I got when I ran the first command:

9.691s NetworkManager-wait-online.service
454ms apt-daily.service
343ms apt-daily-upgrade.service
324ms lvm2-monitor.service
321ms dev-sda1.device
195ms networking.service
157ms loadcpufreq.service
139ms NetworkManager.service
129ms ModemManager.service
127ms accounts-daemon.service
123ms ufw.service
117ms grub-common.service
112ms thermald.service
94ms virtualbox-guest-utils.service
94ms systemd-logind.service
91ms irqbalance.service
71ms ondemand.service
70ms speech-dispatcher.service
66ms keyboard-setup.service
57ms systemd-update-utmp.service
53ms console-setup.service
47ms systemd-udev-trigger.service
44ms systemd-tmpfiles-setup.service
42ms iio-sensor-proxy.service

I ran the second command and got a HUGE block of script that I think I'd be better off having a person next to me reading it! Unless you maybe want me to DM it your way?
"Is that gasoline, Mr. Gideon?"

"Jalapeno, what a headache!"

Mint 20.2 MATE, Intel core i5 9600K, MSI Z390M, Crucial Ballistix 16GB RAM, WD Black boot drive, WD HDDs
revian

Re: How To Clean Out Unwanted/Unused Apps

Post by revian »

KamenRiderNecro wrote:I am running Mint 18.1 Cinnamon and have noticed as of recently it's taking slightly longer to boot up than it used to, and I'm suspecting that it's due to apps I don't use that I thought I had to update. A lot of stuff having to do with things I just don't do on my system (such as video and photo editing, for example). What is a good safe terminal based way to clear my system of things I don't need or use on 18.1?
Please accept my apologies, I must have missed the word "boot" in reading this post. I was under the impression you were referring to overall system sluggishness. My recent post in this thread would not be of any help in the boot department.

I haven't had my coffee today :(
KamenRiderNecro
Level 3
Level 3
Posts: 172
Joined: Thu Sep 22, 2016 11:00 pm
Location: Dallas, TX, USA

Re: How To Clean Out Unwanted/Unused Apps

Post by KamenRiderNecro »

revian wrote:
KamenRiderNecro wrote:I am running Mint 18.1 Cinnamon and have noticed as of recently it's taking slightly longer to boot up than it used to, and I'm suspecting that it's due to apps I don't use that I thought I had to update. A lot of stuff having to do with things I just don't do on my system (such as video and photo editing, for example). What is a good safe terminal based way to clear my system of things I don't need or use on 18.1?
Please accept my apologies, I must have missed the word "boot" in reading this post. I was under the impression you were referring to overall system sluggishness. My recent post in this thread would not be of any help in the boot department.

I haven't had my coffee today :(
No worries, man! :)
"Is that gasoline, Mr. Gideon?"

"Jalapeno, what a headache!"

Mint 20.2 MATE, Intel core i5 9600K, MSI Z390M, Crucial Ballistix 16GB RAM, WD Black boot drive, WD HDDs
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How To Clean Out Unwanted/Unused Apps

Post by Flemur »

KamenRiderNecro wrote:9.691s NetworkManager-wait-online.service
There's your problem, everything else looks OK. And...you don't need that service, so you can disable it.
I ran the second command and got a HUGE block of script that I think I'd be better off having a person next to me reading it! Unless you maybe want me to DM it your way?
Well, do this

Code: Select all

dmesg | more 
and hit carriage-returns (or hold it down!) to see more. Basically you're looking for a big time gap in the left column, indicating something hanging or waiting.

Or you can

Code: Select all

dmesg > file.txt 
then open file.txt in a text editor.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
KamenRiderNecro
Level 3
Level 3
Posts: 172
Joined: Thu Sep 22, 2016 11:00 pm
Location: Dallas, TX, USA

Re: How To Clean Out Unwanted/Unused Apps

Post by KamenRiderNecro »

Flemur wrote:
KamenRiderNecro wrote:9.691s NetworkManager-wait-online.service
There's your problem, everything else looks OK. And...you don't need that service, so you can disable it.

Hmm, OK...what do I look for to disable it? I imagine I go to System Settings, and then what, after that? I'm poking around in there and not finding anything relevant, yet. I apologize for my newb questions!
"Is that gasoline, Mr. Gideon?"

"Jalapeno, what a headache!"

Mint 20.2 MATE, Intel core i5 9600K, MSI Z390M, Crucial Ballistix 16GB RAM, WD Black boot drive, WD HDDs
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How To Clean Out Unwanted/Unused Apps

Post by Flemur »

KamenRiderNecro wrote:Hmm, OK...what do I look for to disable it? I imagine I go to System Settings, and then what, after that? I'm poking around in there and not finding anything relevant, yet. I apologize for my newb questions!
It's not as simple as it should be.

Try this

Code: Select all

sudo systemctl disable NetworkManager-wait-online.service
and reboot and run the

Code: Select all

systemd-analyze blame
again and see if NetworkManager-wait-online is still running. (it shouldn't be).

I had one that was persistent and had to do this, so if it's still running (and taking 9 seconds!) after doing the above, run this:

Code: Select all

sudo systemctl mask NetworkManager-wait-online.service
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
KamenRiderNecro
Level 3
Level 3
Posts: 172
Joined: Thu Sep 22, 2016 11:00 pm
Location: Dallas, TX, USA

Re: How To Clean Out Unwanted/Unused Apps

Post by KamenRiderNecro »

Flemur wrote:
KamenRiderNecro wrote:Hmm, OK...what do I look for to disable it? I imagine I go to System Settings, and then what, after that? I'm poking around in there and not finding anything relevant, yet. I apologize for my newb questions!
It's not as simple as it should be.

Try this

Code: Select all

sudo systemctl disable NetworkManager-wait-online.service
and reboot and run the

Code: Select all

systemd-analyze blame
again and see if NetworkManager-wait-online is still running. (it shouldn't be).

I had one that was persistent and had to do this, so if it's still running (and taking 9 seconds!) after doing the above, run this:

Code: Select all

sudo systemctl mask NetworkManager-wait-online.service
Ran that command and it worked right away, thank you!
"Is that gasoline, Mr. Gideon?"

"Jalapeno, what a headache!"

Mint 20.2 MATE, Intel core i5 9600K, MSI Z390M, Crucial Ballistix 16GB RAM, WD Black boot drive, WD HDDs
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: How To Clean Out Unwanted/Unused Apps

Post by Flemur »

KamenRiderNecro wrote:Ran that command and it worked right away, thank you!
Cool. So is your boot time normal and fixed now?** If it slows down again run that "systemd-analyze blame" thing and if NetworkManager-wait-online service is back try the "systemctl mask". Also, updates and such might make it reappear.
IIRC, it just waits for the internet to connect.

**If so, please edit the title of your first post (click the pencil icon) and add SOLVED to it!
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Locked

Return to “Software & Applications”