HOW TO: update, clean cache, and remove 'orphans' - 1click

Write tutorials here
More tutorials here http://community.linuxmint.com/tutorial/welcome
Forum rules
Do not start a support topic here please, Before you post please read this
GeneC
Level 7
Level 7
Posts: 1599
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

HOW TO: update, clean cache, and remove 'orphans' - 1click

Postby GeneC » Thu Jun 11, 2015 10:19 am

EDIT:
This is for LMDE only (not Mint main)...
AND, it ignores update levels, it will update everything.
SO, its not for everybody, just those who feel confident using it.... :wink:

-------------------------------

I have found this to be the simplest way to keep upgraded, PLUS is cleans the cache, AND removes all 'orphaned' packages with one command... 8)

The package is in the repos... (upgrade-system)

Disclaimer:
I have used it with no issues on several distros for years, BUT be advised - watch what orphans it removes, and you will have no surprises.
IF you do compiling and have lots of '*.dev files(development). IT WILL see those as orphans and remove them. This will not hurt your system, but you will need to re-install some ot them when compiling next.

Details (upgrade-system)
https://packages.debian.org/jessie/upgrade-system
Package: upgrade-system (1.7.2.2)
command for upgrading and sanitizing a Debian system

Upgrade-system offers a convenient way to keep a Debian system up-to-date, yet free from accumulated cruft such as obsolete libraries.

It is particularly useful on systems that mix packages from different releases (stable/testing/unstable) and on desktop systems where packages are frequently installed or removed according to evolving user tastes.

By default, it is configured to purge all packages that are not listed as another package's dependency. Less drastic settings are possible by editing /etc/upgrade-system.conf(5).



The command to launch is:

Code: Select all

sudo upgrade-system


I find it easiest to launch from "CliCompanion"
Image
Last edited by GeneC on Fri Jun 12, 2015 4:51 pm, edited 2 times in total.

GeneC
Level 7
Level 7
Posts: 1599
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby GeneC » Thu Jun 11, 2015 10:24 am

PS:
This is meant for LMDE only, not Mint main (With updated levels), as it will update everything available, nothing held back..

Just was notified that LMDE2 also uses update levels... Who would have 'thunk'.. :?: :lol:
(Seems a tad overcautious to me, but ...)
Last edited by GeneC on Fri Jun 12, 2015 4:52 pm, edited 1 time in total.

User avatar
killer de bug
Level 14
Level 14
Posts: 5313
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby killer de bug » Thu Jun 11, 2015 11:30 am

Thanks!

I had never heard about this tool. I belong to the guys doing this by hand...
Image
If it ain't broke, fix it until it is.

Habitual
Level 13
Level 13
Posts: 4866
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby Habitual » Thu Jun 11, 2015 12:14 pm

GeneC wrote:PS:
This is meant for LMDE only, not Mint main (With updated levels), as it will update everything available, nothing held back..

Yes, you may want to specify LMDE in the thread title?
Image

GeneC
Level 7
Level 7
Posts: 1599
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby GeneC » Thu Jun 11, 2015 12:40 pm

Its in the LMDE2 forum.
I would, but not enough space to add to title... :wink:
I will edit the OP post though..

Habitual
Level 13
Level 13
Posts: 4866
Joined: Sun Nov 21, 2010 8:31 pm
Location: 0.0.0.0

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby Habitual » Thu Jun 11, 2015 1:32 pm

How about a link here to that post there?
I ask a lot, don't I? :?:
Don't want new users to make any mistakes (at least one that is not their own, eg: Missing the LMDE reference)
Image

User avatar
xfrank
Level 5
Level 5
Posts: 587
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby xfrank » Thu Jun 11, 2015 1:48 pm

I did upgrade-system just now. It removed a lot of orphans in 5 steps. Maybe 300 orphans, I didn't check in details. Hope nothing important will be affected. :)
Linux everywhere. Active Distros in my many computers: LM17.3 (Cinnamon, Xfce); LM18.1 (Cinnamon,Xfce); LMDE 2 (Mate), MXLinux (Xfce), Debian 9 (Xfce).

User avatar
killer de bug
Level 14
Level 14
Posts: 5313
Joined: Tue Jul 08, 2008 1:49 pm
Location: Graz, Austria

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby killer de bug » Thu Jun 11, 2015 2:08 pm

Habitual wrote:Don't want new users to make any mistakes (at least one that is not their own, eg: Missing the LMDE reference)

If they don't know how to read... :lol:


xfrank wrote:It removed a lot of orphans in 5 steps. Maybe 300 orphans, I didn't check in details. Hope nothing important will be affected. :)


:shock: That's huge.... :?
Image
If it ain't broke, fix it until it is.

User avatar
xfrank
Level 5
Level 5
Posts: 587
Joined: Sat Nov 24, 2012 6:09 pm
Location: Mexico City
Contact:

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby xfrank » Thu Jun 11, 2015 7:45 pm

killer de bug wrote:
Habitual wrote:Don't want new users to make any mistakes (at least one that is not their own, eg: Missing the LMDE reference)

If they don't know how to read... :lol:


xfrank wrote:It removed a lot of orphans in 5 steps. Maybe 300 orphans, I didn't check in details. Hope nothing important will be affected. :)


:shock: That's huge.... :?


Yes but I never cleaned orphans in my LMDE since 2012 :lol:
Linux everywhere. Active Distros in my many computers: LM17.3 (Cinnamon, Xfce); LM18.1 (Cinnamon,Xfce); LMDE 2 (Mate), MXLinux (Xfce), Debian 9 (Xfce).

Monsta
Level 9
Level 9
Posts: 2998
Joined: Fri Aug 19, 2011 3:46 am

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby Monsta » Fri Jun 12, 2015 12:26 pm

I only needed to do such cleanups (using gtkorphan) after the upgrading from one Update Pack to another (and the last one - during the upgrade to LMDE 2).
I don't think it'll be needed from now on - update situation is totally different when your base is Debian Stable :)

Monsta
Level 9
Level 9
Posts: 2998
Joined: Fri Aug 19, 2011 3:46 am

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby Monsta » Fri Jun 12, 2015 12:29 pm

GeneC wrote:PS:
This is meant for LMDE only, not Mint main (With updated levels), as it will update everything available, nothing held back..

BTW, LMDE 2 has the same mintUpdate (with levels). Old mintupdate-debian package is left only in LMDE 1 repos.

GeneC
Level 7
Level 7
Posts: 1599
Joined: Fri Sep 03, 2010 1:59 pm
Location: Maine, USA

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby GeneC » Fri Jun 12, 2015 4:49 pm

Monsta

You know, I just noticed that myself... :oops: I guess after years of running Debian Testing and SID, (and not using LMDE update tool on LMDE2) I never expected a distro based on Debian Stable to have any restrictions on updates. This seems odd, but I guess they have a reason.
I'll edit the OP... :wink:

Monsta
Level 9
Level 9
Posts: 2998
Joined: Fri Aug 19, 2011 3:46 am

Re: HOW TO: update, clean cache, and remove 'orphans' - 1cli

Postby Monsta » Sat Jun 13, 2015 5:41 am

So, this tool can actually be used in the main Mint as well (it's present in Ubuntu repos), with the same disclaimer :)


Return to “Tutorials”